Fix bug in reorganization of toolbars after refreshing them
authorlaurent
Mon, 11 Jun 2012 01:22:20 +0200
changeset 766 42c0062655a7
parent 765 ef221ba41dec
child 767 36e823a90d94
Fix bug in reorganization of toolbars after refreshing them
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()