[GRASS-SVN] r32565 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Aug 6 05:46:50 EDT 2008
Author: martinl
Date: 2008-08-06 05:46:50 -0400 (Wed, 06 Aug 2008)
New Revision: 32565
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/vdigit.py
grass/branches/develbranch_6/gui/wxpython/gui_modules/wxgui_utils.py
Log:
wxGUI/vdigit: close settings dialog properly
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/vdigit.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/vdigit.py 2008-08-06 09:37:40 UTC (rev 32564)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/vdigit.py 2008-08-06 09:46:50 UTC (rev 32565)
@@ -1631,7 +1631,9 @@
mainSizer.Add(item=notebook, proportion=1, flag=wx.EXPAND | wx.ALL, border=5)
mainSizer.Add(item=btnSizer, proportion=0,
flag=wx.EXPAND | wx.ALL | wx.ALIGN_CENTER, border=5)
-
+
+ self.Bind(wx.EVT_CLOSE, self.OnCancel)
+
self.SetSizer(mainSizer)
mainSizer.Fit(self)
@@ -2117,6 +2119,8 @@
self.parent.toolbars['vdigit'].settingsDialog = None
self.Close()
+ event.Skip()
+
def UpdateSettings(self):
"""Update UserSettings"""
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/wxgui_utils.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/wxgui_utils.py 2008-08-06 09:37:40 UTC (rev 32564)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/wxgui_utils.py 2008-08-06 09:46:50 UTC (rev 32565)
@@ -129,7 +129,6 @@
self.rast_icon = il.Add(trgif)
trgif = Icons["addrast3d"].GetBitmap(bmpsize)
- print Icons["addrast3d"]
self.rast3d_icon = il.Add(trgif)
trgif = Icons["addrgb"].GetBitmap(bmpsize)
More information about the grass-commit
mailing list