# HG changeset patch # User laurent # Date 1339370540 -7200 # Node ID 42c0062655a77eb7c2d605c13ae966e2d4ef4a88 # Parent ef221ba41dec3858356834f8824f56f55ed83f48 Fix bug in reorganization of toolbars after refreshing them diff -r ef221ba41dec -r 42c0062655a7 Beremiz.py --- a/Beremiz.py Sun Jun 10 20:20:09 2012 +0200 +++ b/Beremiz.py Mon Jun 11 01:22:20 2012 +0200 @@ -686,6 +686,12 @@ if callback is not None: self.Bind(wx.EVT_MENU, callback, id=id) + def RefreshEditorToolBar(self): + IDEFrame.RefreshEditorToolBar(self) + self.AUIManager.GetPane("EditorToolBar").Position(2) + self.AUIManager.GetPane("StatusToolBar").Position(1) + self.AUIManager.Update() + def RefreshStatusToolBar(self): StatusToolBar = self.Panes["StatusToolBar"] StatusToolBar.ClearTools() @@ -704,7 +710,7 @@ self.AUIManager.GetPane("StatusToolBar").BestSize(StatusToolBar.GetBestSize()).Show() else: self.AUIManager.GetPane("StatusToolBar").Hide() - self.AUIManager.GetPane("EditorToolBar").Position(1) + self.AUIManager.GetPane("EditorToolBar").Position(2) self.AUIManager.GetPane("StatusToolBar").Position(1) self.AUIManager.Update()