--- a/PLCOpenEditor.py Wed Aug 27 13:30:13 2008 +0200
+++ b/PLCOpenEditor.py Wed Aug 27 13:33:08 2008 +0200
@@ -486,8 +486,6 @@
0), size=wx.Size(0, 0), style=0)
self.AUIManager.AddPane(self.LibraryPanel, wx.aui.AuiPaneInfo().Caption("Library").Right().Layer(0).BestSize(wx.Size(250, 400)).CloseButton(False))
- self.AUIManager.Update()
-
if wx.Platform == '__WXMSW__':
treestyle = wx.TR_HAS_BUTTONS|wx.TR_SINGLE|wx.SUNKEN_BORDER
else:
@@ -508,6 +506,9 @@
self._init_sizers()
+ if wx.VERSION >= (2, 8, 0):
+ self.AUIManager.Update()
+
def __init__(self, parent, controler = None, fileOpen = None):
self.ModeSolo = controler == None
if self.ModeSolo: