--- a/graphics/GraphicCommons.py Fri Dec 04 15:28:08 2009 +0100
+++ b/graphics/GraphicCommons.py Sun Dec 06 21:20:55 2009 +0100
@@ -267,6 +267,19 @@
if iec_path is not None:
self.DataProducer.UnsubscribeDebugIECVariable(iec_path, consumer)
+ def GetDataType(self, iec_path):
+ if self.DataProducer is not None:
+ return self.DataProducer.GetDebugIECVariableType(iec_path)
+ return None
+
+ def ForceDataValue(self, iec_path, value):
+ if self.DataProducer is not None:
+ self.DataProducer.ForceDebugIECVariable(iec_path, value)
+
+ def ReleaseDataValue(self, iec_path):
+ if self.DataProducer is not None:
+ self.DataProducer.ReleaseDebugIECVariable(iec_path)
+
def DeleteDataConsumers(self):
if self.DataProducer is not None:
for consumer, iec_path in self.DataConsumers.iteritems():
@@ -1757,7 +1770,7 @@
self.ToolTip.SetTip(self.ComputedValue)
if len(self.ComputedValue) > 4:
self.ComputedValue = self.ComputedValue[:4] + "..."
- if isinstance(self.ComputedValue, StringType):
+ if isinstance(self.ComputedValue, (StringType, UnicodeType)):
self.ValueSize = self.Parent.GetMiniTextExtent(self.ComputedValue)
else:
self.ValueSize = None