浏览代码

wxGUI: fix after changes in statusbar API (#1665)

Fixes #1657
Linda Kladivova 3 年之前
父节点
当前提交
469dcb887d
共有 3 个文件被更改,包括 4 次插入4 次删除
  1. 1 1
      gui/wxpython/core/workspace.py
  2. 1 1
      gui/wxpython/lmgr/workspace.py
  3. 2 2
      gui/wxpython/mapdisp/main.py

+ 1 - 1
gui/wxpython/core/workspace.py

@@ -933,7 +933,7 @@ class WriteWorkspaceFile(object):
                     int(mapdisp.mapWindowProperties.showRegion),
                     int(mapdisp.mapWindowProperties.alignExtent),
                     int(mapdisp.mapWindowProperties.resolution),
-                    int(mapdisp.statusbarManager.IsShown()),
+                    int(mapdisp.IsStatusbarShown()),
                     int(mapdisp.GetMapToolbar().IsShown()),
                     displayPos[0],
                     displayPos[1],

+ 1 - 1
gui/wxpython/lmgr/workspace.py

@@ -262,7 +262,7 @@ class WorkspaceManager:
                     region["n"], region["s"], region["e"], region["w"]
                 )
             if "showStatusbar" in display and not display["showStatusbar"]:
-                mapdisp.statusbarManager.Show(False)
+                mapdisp.ShowStatusbar(False)
             if "showToolbars" in display and not display["showToolbars"]:
                 for toolbar in mapdisp.GetToolbarNames():
                     mapdisp.RemoveToolbar(toolbar)

+ 2 - 2
gui/wxpython/mapdisp/main.py

@@ -460,13 +460,13 @@ class DMonGrassInterface(StandaloneGrassInterface):
         if not self._mapframe.statusbarManager:
             self._mapframe.CreateStatusbar()
 
-        self._mapframe.statusbarManager.Show(show)
+        self._mapframe.ShowStatusbar(show)
 
     def IsStatusbarShown(self):
         if not self._mapframe.statusbarManager:
             return False
 
-        return self._mapframe.statusbarManager.IsShown()
+        return self._mapframe.IsStatusbarShown()
 
     def ShowAllToolbars(self, show=True):
         if not show:  # hide