浏览代码

wxGUI: fix typos in variable names

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@45979 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 14 年之前
父节点
当前提交
f1a8ea0821
共有 2 个文件被更改,包括 2 次插入3 次删除
  1. 1 1
      gui/wxpython/gui_modules/gdialogs.py
  2. 1 2
      gui/wxpython/gui_modules/mcalc_builder.py

+ 1 - 1
gui/wxpython/gui_modules/gdialogs.py

@@ -1244,7 +1244,7 @@ class GdalImportDialog(ImportDialog):
     def OnCmdDialog(self, event):
     def OnCmdDialog(self, event):
         """!Show command dialog"""
         """!Show command dialog"""
         name = self._getCommand()
         name = self._getCommand()
-        menuform.GUI(parentframe = self, modal = True).ParseCommand(cmd = [name])
+        menuform.GUI(parent = self, modal = True).ParseCommand(cmd = [name])
                 
                 
 class DxfImportDialog(ImportDialog):
 class DxfImportDialog(ImportDialog):
     """!Dialog for bulk import of DXF layers""" 
     """!Dialog for bulk import of DXF layers""" 

+ 1 - 2
gui/wxpython/gui_modules/mcalc_builder.py

@@ -566,8 +566,7 @@ class MapCalcFrame(wx.Frame):
             expr += '='
             expr += '='
         expr += mctxt
         expr += mctxt
         
         
-        menuform.GUI().ParseCommand(cmd = [self.cmd, 'expression=' + expr],
-                                    parentframe = self)
+        menuform.GUI(parent = self).ParseCommand(cmd = [self.cmd, 'expression=' + expr])
         
         
 if __name__ == "__main__":
 if __name__ == "__main__":
     app = wx.App(0)
     app = wx.App(0)