Bläddra i källkod

wxGUI/iclass: windows-related fixes

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54502 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 år sedan
förälder
incheckning
1af540c9cd
2 ändrade filer med 4 tillägg och 5 borttagningar
  1. 2 2
      gui/wxpython/iclass/dialogs.py
  2. 2 3
      gui/wxpython/iclass/toolbars.py

+ 2 - 2
gui/wxpython/iclass/dialogs.py

@@ -168,9 +168,9 @@ class IClassCategoryManagerDialog(wx.Dialog):
         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()
 

+ 2 - 3
gui/wxpython/iclass/toolbars.py

@@ -61,9 +61,8 @@ class IClassMapToolbar(BaseToolbar):
         # 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 '),