Add support for reorganizing toolbars when their size changed
authorlaurent
Sun, 10 Jun 2012 20:20:09 +0200
changeset 765 ef221ba41dec
parent 764 f338651eca36
child 766 42c0062655a7
Add support for reorganizing toolbars when their size changed
Beremiz.py
--- a/Beremiz.py	Sun Jun 10 20:18:34 2012 +0200
+++ b/Beremiz.py	Sun Jun 10 20:20:09 2012 +0200
@@ -401,7 +401,7 @@
         self.Panes["StatusToolBar"] = StatusToolBar
         self.AUIManager.AddPane(StatusToolBar, wx.aui.AuiPaneInfo().
                   Name("StatusToolBar").Caption(_("Status ToolBar")).
-                  ToolbarPane().Top().Position(2).
+                  ToolbarPane().Top().Position(1).
                   LeftDockable(False).RightDockable(False))
         
         self.AUIManager.Update()
@@ -704,6 +704,8 @@
             self.AUIManager.GetPane("StatusToolBar").BestSize(StatusToolBar.GetBestSize()).Show()
         else:
             self.AUIManager.GetPane("StatusToolBar").Hide()
+        self.AUIManager.GetPane("EditorToolBar").Position(1)
+        self.AUIManager.GetPane("StatusToolBar").Position(1)
         self.AUIManager.Update()
     
     def RefreshConfNodeMenu(self):