浏览代码

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 年之前
父节点
当前提交
a7d1f47329
共有 1 个文件被更改,包括 4 次插入4 次删除
  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):