PLCOpenEditor.py
changeset 241 64e584348a5b
parent 240 714000906db1
child 245 fdd05081c966
--- 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: