[GRASS-SVN] r54502 - grass/trunk/gui/wxpython/iclass

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 2 09:16:38 PST 2013


Author: martinl
Date: 2013-01-02 09:16:37 -0800 (Wed, 02 Jan 2013)
New Revision: 54502

Modified:
   grass/trunk/gui/wxpython/iclass/dialogs.py
   grass/trunk/gui/wxpython/iclass/toolbars.py
Log:
wxGUI/iclass: windows-related fixes


Modified: grass/trunk/gui/wxpython/iclass/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/iclass/dialogs.py	2013-01-02 16:54:45 UTC (rev 54501)
+++ grass/trunk/gui/wxpython/iclass/dialogs.py	2013-01-02 17:16:37 UTC (rev 54502)
@@ -168,9 +168,9 @@
         self.Bind(wx.EVT_CLOSE, self.OnClose)
         
         panel.SetSizer(mainSizer)
-        mainSizer.Fit(panel)
+        mainSizer.Fit(self)
 
-        self.SetSize((-1, 250))
+        self.SetSize((400, 250))
 
         self.Layout()
 

Modified: grass/trunk/gui/wxpython/iclass/toolbars.py
===================================================================
--- grass/trunk/gui/wxpython/iclass/toolbars.py	2013-01-02 16:54:45 UTC (rev 54501)
+++ grass/trunk/gui/wxpython/iclass/toolbars.py	2013-01-02 17:16:37 UTC (rev 54502)
@@ -61,9 +61,8 @@
         # add tool to toggle active map window
         self.togglemapid = wx.NewId()
         self.togglemap = wx.Choice(parent = self, id = self.togglemapid,
-                                   choices = [_('Training'), _('Preview')],
-                                   style = wx.CB_READONLY)
-
+                                   choices = [_('Training'), _('Preview')])
+        
         self.InsertControl(9, self.togglemap)
 
         self.SetToolShortHelp(self.togglemapid, '%s %s %s' % (_('Set map canvas for '),



More information about the grass-commit mailing list