[GRASS-SVN] r49875 - grass/trunk/gui/wxpython/dbmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 23 04:38:07 EST 2011


Author: martinl
Date: 2011-12-23 01:38:07 -0800 (Fri, 23 Dec 2011)
New Revision: 49875

Modified:
   grass/trunk/gui/wxpython/dbmgr/dialogs.py
Log:
wxGUI/dbmgr: fix ModifyTableRecord on Windows (don't use wx.Panel for wx.Dialogs)
	     (merge r49873 from devbr6)


Modified: grass/trunk/gui/wxpython/dbmgr/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/dbmgr/dialogs.py	2011-12-23 09:32:17 UTC (rev 49874)
+++ grass/trunk/gui/wxpython/dbmgr/dialogs.py	2011-12-23 09:38:07 UTC (rev 49875)
@@ -550,17 +550,15 @@
         
         self.keyId = keyEditable[0]
         
-        self.panel = wx.Panel(parent = self, id = wx.ID_ANY)
-        
-        box = wx.StaticBox(parent = self.panel, id = wx.ID_ANY)
+        box = wx.StaticBox(parent = self, id = wx.ID_ANY)
         box.Hide()
-        self.dataPanel = scrolled.ScrolledPanel(parent = self.panel, id = wx.ID_ANY,
+        self.dataPanel = scrolled.ScrolledPanel(parent = self, id = wx.ID_ANY,
                                                 style = wx.TAB_TRAVERSAL)
         self.dataPanel.SetupScrolling(scroll_x = False)
         
         # buttons
-        self.btnCancel = wx.Button(self.panel, wx.ID_CANCEL)
-        self.btnSubmit = wx.Button(self.panel, wx.ID_OK, _("&Submit"))
+        self.btnCancel = wx.Button(self, wx.ID_CANCEL)
+        self.btnSubmit = wx.Button(self, wx.ID_OK, _("&Submit"))
         self.btnSubmit.SetDefault()
         
         # data area
@@ -640,13 +638,11 @@
                   flag = wx.EXPAND | wx.ALL, border = 5)
         
         framewidth = self.GetSize()[0]
-        self.SetMinSize((framewidth,150))
-        self.SetMaxSize((framewidth,300))
+        self.SetMinSize((framewidth,250))
         
-        # sizer.SetSizeHints(self.panel)
-        self.panel.SetAutoLayout(True)
-        self.panel.SetSizer(sizer)
-        sizer.Fit(self.panel)
+        self.SetAutoLayout(True)
+        self.SetSizer(sizer)
+        sizer.Fit(self)
         
         self.Layout()
         



More information about the grass-commit mailing list