# HG changeset patch # User lbessard # Date 1219836788 -7200 # Node ID 64e584348a5b550d04e02471c530e70cb4fd3498 # Parent 714000906db1387a5bdba83bd7d7ce6fee8e5487 Bug on Windows with LibraryTree fixed diff -r 714000906db1 -r 64e584348a5b 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: