Bug on Windows with LibraryTree fixed
authorlbessard
Wed, 27 Aug 2008 13:33:08 +0200
changeset 241 64e584348a5b
parent 240 714000906db1
child 242 5b3e1c4569e6
Bug on Windows with LibraryTree fixed
PLCOpenEditor.py
--- 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: