[GRASS-SVN] r36195 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Mar 4 01:56:26 EST 2009


Author: cmbarton
Date: 2009-03-04 01:56:26 -0500 (Wed, 04 Mar 2009)
New Revision: 36195

Modified:
   grass/trunk/gui/wxpython/gui_modules/dbm.py
Log:
backport from develbranch_6 r36194. Fixing dbm.py freezing on the Mac because wx.StaticBox needs to be defined before any controls that go into the wx.StaticBox

Modified: grass/trunk/gui/wxpython/gui_modules/dbm.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/dbm.py	2009-03-04 06:50:05 UTC (rev 36194)
+++ grass/trunk/gui/wxpython/gui_modules/dbm.py	2009-03-04 06:56:26 UTC (rev 36195)
@@ -560,6 +560,15 @@
                 continue
 
             panel = wx.Panel(parent=self.browsePage, id=wx.ID_ANY)
+            
+            #IMPORTANT NOTE: wx.StaticBox MUST be defined BEFORE any of the 
+            #   controls that are placed IN the wx.StaticBox, or it will freeze
+            #   on the Mac
+            
+            listBox = wx.StaticBox(parent=panel, id=wx.ID_ANY,
+                       label=" %s " % _("Attribute data - right-click to edit/manage records"))
+            listSizer = wx.StaticBoxSizer(listBox, wx.VERTICAL)
+            
             win = VirtualAttributeList(panel, self.log,
                                        self.mapDBInfo, layer)
             if win.IsEmpty():
@@ -575,11 +584,7 @@
 
             pageSizer = wx.BoxSizer(wx.VERTICAL)
 
-            # attribute data
-            listBox = wx.StaticBox(parent=panel, id=wx.ID_ANY,
-                                   label=" %s " % _("Attribute data - right-click to edit/manage records"))
-            listSizer = wx.StaticBoxSizer(listBox, wx.VERTICAL)
-            
+            # attribute data            
             sqlBox = wx.StaticBox(parent=panel, id=wx.ID_ANY,
                                   label=" %s " % _("SQL Query"))
 



More information about the grass-commit mailing list