# HG changeset patch # User greg # Date 1244014703 -7200 # Node ID deee68313770dac3fe54a6b810a435550e62b1d3 # Parent 5eb9c5536334d92a4125bea0778224f0a212ebb4 Bug when plcopeneditor without Beremiz fixed diff -r 5eb9c5536334 -r deee68313770 graphics/GraphicCommons.py --- a/graphics/GraphicCommons.py Tue Jun 02 17:35:22 2009 +0200 +++ b/graphics/GraphicCommons.py Wed Jun 03 09:38:23 2009 +0200 @@ -230,14 +230,15 @@ self.LastRefreshTime = time.time() - if register_tick: + if register_tick and debug: self.DataProducer.SubscribeDebugIECVariable("__tick__", self) self.RefreshTimer = wx.Timer(self, -1) self.Bind(wx.EVT_TIMER, self.OnRefreshTimer, self.RefreshTimer) def __del__(self): - self.DataProducer.UnsubscribeDebugIECVariable("__tick__", self) + if self.Debug: + self.DataProducer.UnsubscribeDebugIECVariable("__tick__", self) self.DeleteDataConsumers() self.RefreshTimer.Stop()