controls/DebugVariablePanel/DebugVariableItem.py
changeset 1767 c74815729afd
parent 1766 c1e5b9f19483
child 1774 ac0fe8aabb5e
equal deleted inserted replaced
1766:c1e5b9f19483 1767:c74815729afd
   333 
   333 
   334             # Get index of nearest data from tick given
   334             # Get index of nearest data from tick given
   335             idx = self.GetNearestData(tick, 0)
   335             idx = self.GetNearestData(tick, 0)
   336 
   336 
   337             # Get value and forced flag at given index
   337             # Get value and forced flag at given index
   338             value, forced = self.RawData[int(self.Data[idx, 2])] \
   338             value, forced = \
   339                             if self.VariableType in ["STRING", "WSTRING"] \
   339                 self.RawData[int(self.Data[idx, 2])] \
   340                             else self.Data[idx, 1:3]
   340                 if self.VariableType in ["STRING", "WSTRING"] \
       
   341                 else self.Data[idx, 1:3]
   341 
   342 
   342             # Get raw value if asked
   343             # Get raw value if asked
   343             if not raw:
   344             if not raw:
   344                 value = TYPE_TRANSLATOR.get(
   345                 value = TYPE_TRANSLATOR.get(
   345                         self.VariableType, str)(value)
   346                         self.VariableType, str)(value)