[GRASS-SVN] r49487 - in grass/trunk/gui/wxpython: . modules

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 2 07:05:18 EST 2011


Author: martinl
Date: 2011-12-02 04:05:18 -0800 (Fri, 02 Dec 2011)
New Revision: 49487

Modified:
   grass/trunk/gui/wxpython/modules/vclean.py
   grass/trunk/gui/wxpython/wxgui.py
Log:
wxGUI: fix VectorCleaningFrame


Modified: grass/trunk/gui/wxpython/modules/vclean.py
===================================================================
--- grass/trunk/gui/wxpython/modules/vclean.py	2011-12-02 10:38:18 UTC (rev 49486)
+++ grass/trunk/gui/wxpython/modules/vclean.py	2011-12-02 12:05:18 UTC (rev 49487)
@@ -34,7 +34,7 @@
         """!
         Dialog for interactively defining vector cleaning tools
         """
-        wx.Frame.__init__(self, parent, id, title, pos, size, style)
+        wx.Frame.__init__(self, parent, id, title, style =  style, **kwargs)
 
         self.parent = parent # GMFrame
         if self.parent:

Modified: grass/trunk/gui/wxpython/wxgui.py
===================================================================
--- grass/trunk/gui/wxpython/wxgui.py	2011-12-02 10:38:18 UTC (rev 49486)
+++ grass/trunk/gui/wxpython/wxgui.py	2011-12-02 12:05:18 UTC (rev 49487)
@@ -1137,11 +1137,7 @@
     def OnVectorCleaning(self, event, cmd = ''):
         """!Init interactive vector cleaning
         """
-        
-        if event:
-            cmd = self.GetMenuCmd(event)
-
-        win = VectorCleaningFrame(parent = self, cmd = cmd[0])
+        win = VectorCleaningFrame(parent = self)
         win.CentreOnScreen()
         win.Show()
 



More information about the grass-commit mailing list