--- a/IDEFrame.py Wed Aug 16 12:30:31 2017 +0300
+++ b/IDEFrame.py Wed Aug 16 12:48:08 2017 +0300
@@ -215,6 +215,7 @@
else:
parent.Append(helpString=help, id=id, kind=kind, item=text)
+
[TITLE, EDITORTOOLBAR, FILEMENU, EDITMENU, DISPLAYMENU, PROJECTTREE,
POUINSTANCEVARIABLESPANEL, LIBRARYTREE, SCALING, PAGETITLES
] = range(10)
@@ -244,6 +245,7 @@
remove_function(self.Controler, name)
return DeleteElementFunction
+
if wx.Platform == '__WXMSW__':
TAB_BORDER = 6
NOTEBOOK_BORDER = 6
@@ -329,6 +331,7 @@
# IDEFrame Base Class
#-------------------------------------------------------------------------------
+
UNEDITABLE_NAMES_DICT = dict([(_(name), name) for name in UNEDITABLE_NAMES])
@@ -2553,6 +2556,7 @@
# Viewer Printout
#-------------------------------------------------------------------------------
+
UPPER_DIV = lambda x, y: (x / y) + {True: 0, False: 1}[(x % y) == 0]