[GRASS-SVN] r36194 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Mar 4 01:50:05 EST 2009


Author: cmbarton
Date: 2009-03-04 01:50:05 -0500 (Wed, 04 Mar 2009)
New Revision: 36194

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py
Log:
wx.StaticBox must be defined BEFORE any control that goes in the box or the control will freeze on the Mac. Fixing.

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py	2009-03-03 19:19:18 UTC (rev 36193)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py	2009-03-04 06:50:05 UTC (rev 36194)
@@ -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