[GRASS-SVN] r49873 - grass/branches/develbranch_6/gui/wxpython/dbmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 23 04:22:43 EST 2011


Author: martinl
Date: 2011-12-23 01:22:43 -0800 (Fri, 23 Dec 2011)
New Revision: 49873

Modified:
   grass/branches/develbranch_6/gui/wxpython/dbmgr/dialogs.py
Log:
wxGUI/dbmgr: fix ModifyTableRecord on Windows (don't use wx.Panel for wx.Dialogs)

Modified: grass/branches/develbranch_6/gui/wxpython/dbmgr/dialogs.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/dbmgr/dialogs.py	2011-12-23 09:12:10 UTC (rev 49872)
+++ grass/branches/develbranch_6/gui/wxpython/dbmgr/dialogs.py	2011-12-23 09:22:43 UTC (rev 49873)
@@ -546,17 +546,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
@@ -636,13 +634,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