equal
deleted
inserted
replaced
24 import re |
24 import re |
25 import datetime |
25 import datetime |
26 |
26 |
27 import wx |
27 import wx |
28 |
28 |
29 #------------------------------------------------------------------------------- |
29 # ------------------------------------------------------------------------------- |
30 # Helpers |
30 # Helpers |
31 #------------------------------------------------------------------------------- |
31 # ------------------------------------------------------------------------------- |
32 |
32 |
33 LOCATIONDATATYPES = {"X": ["BOOL"], |
33 LOCATIONDATATYPES = {"X": ["BOOL"], |
34 "B": ["SINT", "USINT", "BYTE", "STRING"], |
34 "B": ["SINT", "USINT", "BYTE", "STRING"], |
35 "W": ["INT", "UINT", "WORD", "WSTRING"], |
35 "W": ["INT", "UINT", "WORD", "WSTRING"], |
36 "D": ["DINT", "UDINT", "REAL", "DWORD"], |
36 "D": ["DINT", "UDINT", "REAL", "DWORD"], |
159 "TIME": gettime, |
159 "TIME": gettime, |
160 "DATE": getdate, |
160 "DATE": getdate, |
161 "DT": getdatetime, |
161 "DT": getdatetime, |
162 "TOD": gettimeofday} |
162 "TOD": gettimeofday} |
163 |
163 |
164 #------------------------------------------------------------------------------- |
164 # ------------------------------------------------------------------------------- |
165 # Force Variable Dialog |
165 # Force Variable Dialog |
166 #------------------------------------------------------------------------------- |
166 # ------------------------------------------------------------------------------- |
167 |
167 |
168 |
168 |
169 class ForceVariableDialog(wx.TextEntryDialog): |
169 class ForceVariableDialog(wx.TextEntryDialog): |
170 |
170 |
171 def __init__(self, parent, iec_type, defaultValue=""): |
171 def __init__(self, parent, iec_type, defaultValue=""): |