equal
deleted
inserted
replaced
21 # You should have received a copy of the GNU General Public License |
21 # You should have received a copy of the GNU General Public License |
22 # along with this program; if not, write to the Free Software |
22 # along with this program; if not, write to the Free Software |
23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
24 |
24 |
25 |
25 |
26 from __future__ import absolute_import |
26 |
27 from threading import Lock, Timer |
27 from threading import Lock, Timer |
28 from time import time as gettime |
28 from time import time as gettime |
29 |
29 |
30 import wx |
30 import wx |
31 |
31 |
128 """ |
128 """ |
129 Set consumer value update inhibit flag |
129 Set consumer value update inhibit flag |
130 @param inhibit: Inhibit flag |
130 @param inhibit: Inhibit flag |
131 """ |
131 """ |
132 # Inhibit every data consumers in list |
132 # Inhibit every data consumers in list |
133 for consumer, _iec_path in self.DataConsumers.iteritems(): |
133 for consumer, _iec_path in self.DataConsumers.items(): |
134 consumer.Inhibit(inhibit) |
134 consumer.Inhibit(inhibit) |
135 |
135 |
136 # Save inhibit flag |
136 # Save inhibit flag |
137 self.Inhibited = inhibit |
137 self.Inhibited = inhibit |
138 |
138 |
190 # Unscribe tick if needed |
190 # Unscribe tick if needed |
191 if self.SubscribeTick and tick and self.Debug: |
191 if self.SubscribeTick and tick and self.Debug: |
192 self.DataProducer.UnsubscribeDebugIECVariable("__tick__", self) |
192 self.DataProducer.UnsubscribeDebugIECVariable("__tick__", self) |
193 |
193 |
194 # Unsubscribe all data consumers in list |
194 # Unsubscribe all data consumers in list |
195 for consumer, iec_path in self.DataConsumers.iteritems(): |
195 for consumer, iec_path in self.DataConsumers.items(): |
196 self.DataProducer.UnsubscribeDebugIECVariable(iec_path, consumer) |
196 self.DataProducer.UnsubscribeDebugIECVariable(iec_path, consumer) |
197 |
197 |
198 self.DataConsumers = {} |
198 self.DataConsumers = {} |
199 |
199 |
200 def GetDataType(self, iec_path): |
200 def GetDataType(self, iec_path): |