Przeglądaj źródła

wxGUI: All toolbars in one row and first is workspace toolbar (#1485)

Vector toolbar is no longer in the main window toolbars.

Fixes #1321.
Linda Kladivova 4 lat temu
rodzic
commit
a7d1f47329
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      gui/wxpython/lmgr/frame.py

+ 4 - 4
gui/wxpython/lmgr/frame.py

@@ -477,8 +477,8 @@ class GMFrame(wx.Frame):
         self._auimgr.GetPane('toolbarNviz').Show()
         # reorder other toolbars
         for pos, toolbar in enumerate(
-                ('toolbarVector', 'toolbarTools', 'toolbarMisc', 'toolbarNviz')):
-            self._auimgr.GetPane(toolbar).Row(2).Position(pos)
+                ('toolbarWorkspace', 'toolbarTools', 'toolbarMisc', 'toolbarNviz')):
+            self._auimgr.GetPane(toolbar).Row(1).Position(pos)
         self._auimgr.Update()
 
         # create nviz tools tab
@@ -510,8 +510,8 @@ class GMFrame(wx.Frame):
         # hide toolbar
         self._auimgr.GetPane('toolbarNviz').Hide()
         for pos, toolbar in enumerate(
-                ('toolbarVector', 'toolbarTools', 'toolbarMisc')):
-            self._auimgr.GetPane(toolbar).Row(2).Position(pos)
+                ('toolbarWorkspace', 'toolbarTools', 'toolbarMisc')):
+            self._auimgr.GetPane(toolbar).Row(1).Position(pos)
         self._auimgr.Update()
 
     def WorkspaceChanged(self):