[GRASS-CVS] [addons] r1240 - trunk/grassaddons/gui/gui_modules

grass-commit-addons at grass.itc.it grass-commit-addons at grass.itc.it
Wed Dec 5 00:16:26 EST 2007


Author: barton
Date: 2007-12-05 06:16:17 +0100 (Wed, 05 Dec 2007)
New Revision: 1240

Modified:
   trunk/grassaddons/gui/gui_modules/dbm.py
Log:
Commented out display selected and extract selected buttons because these functions are now on the contrextual menu.

Modified: trunk/grassaddons/gui/gui_modules/dbm.py
===================================================================
--- trunk/grassaddons/gui/gui_modules/dbm.py	2007-12-04 16:35:00 UTC (rev 1239)
+++ trunk/grassaddons/gui/gui_modules/dbm.py	2007-12-05 05:16:17 UTC (rev 1240)
@@ -491,27 +491,27 @@
             listSizer = wx.StaticBoxSizer(listBox, wx.VERTICAL)
             
             # display or extract selected records buttons
-            btnDisplay = wx.Button(parent=panel, id=wx.ID_ANY,
-                                   label=_("Display selected"),
-                                   size=(150, -1))
-            btnDisplay.SetToolTip(wx.ToolTip (_("Display selected objects in highlight color")))
-            btnDisplay.SetDefault()
-            btnDisplay.Bind(wx.EVT_BUTTON, self.OnDataDrawSelected)
-            if not self.map:
-                btnDisplay.Enable(False)
+            #btnDisplay = wx.Button(parent=panel, id=wx.ID_ANY,
+            #                       label=_("Display selected"),
+            #                       size=(150, -1))
+            #btnDisplay.SetToolTip(wx.ToolTip (_("Display selected objects in highlight color")))
+            #btnDisplay.SetDefault()
+            #btnDisplay.Bind(wx.EVT_BUTTON, self.OnDataDrawSelected)
+            #if not self.map:
+            #    btnDisplay.Enable(False)
+            #
+            #btnExtract = wx.Button(parent=panel, id=wx.ID_ANY,
+            #                       label=_("Extract selected"),
+            #                       size=(150, -1))
+            #btnExtract.SetToolTip(wx.ToolTip (_("Extract selected objects to "
+            #                                    "new vector map layer")))
+            #btnExtract.Bind(wx.EVT_BUTTON, self.OnExtractSelected)
+            #
+            #btnsizer = wx.BoxSizer(wx.HORIZONTAL)
+            #btnsizer.Add(btnDisplay, 0, wx.ALIGN_LEFT | wx.EXPAND)
+            #btnsizer.Add((10,10), 1, wx.ALIGN_CENTRE_HORIZONTAL | wx.EXPAND)
+            #btnsizer.Add(btnExtract, 0, wx.ALIGN_RIGHT | wx.EXPAND)
 
-            btnExtract = wx.Button(parent=panel, id=wx.ID_ANY,
-                                   label=_("Extract selected"),
-                                   size=(150, -1))
-            btnExtract.SetToolTip(wx.ToolTip (_("Extract selected objects to "
-                                                "new vector map layer")))
-            btnExtract.Bind(wx.EVT_BUTTON, self.OnExtractSelected)
-
-            btnsizer = wx.BoxSizer(wx.HORIZONTAL)
-            btnsizer.Add(btnDisplay, 0, wx.ALIGN_LEFT | wx.EXPAND)
-            btnsizer.Add((10,10), 1, wx.ALIGN_CENTRE_HORIZONTAL | wx.EXPAND)
-            btnsizer.Add(btnExtract, 0, wx.ALIGN_RIGHT | wx.EXPAND)
-
             sqlBox = wx.StaticBox(parent=panel, id=wx.ID_ANY,
                                   label=" %s " % _("SQL Query"))
 
@@ -526,11 +526,11 @@
             listSizer.Add(item=win, proportion=1,
                           flag=wx.EXPAND | wx.ALL,
                           border=3)
-            listSizer.Add(item=btnsizer,
-                          flag=wx.ALIGN_CENTRE_HORIZONTAL |
-                          wx.EXPAND |
-                          wx.ALL,
-                          border=3)
+            #listSizer.Add(item=btnsizer,
+            #              flag=wx.ALIGN_CENTRE_HORIZONTAL |
+            #              wx.EXPAND |
+            #              wx.ALL,
+            #              border=3)
 
             # sql statement box
             btnSqlBuilder = wx.Button(parent=panel, id=wx.ID_ANY, label=_("SQL Builder"))



More information about the grass-commit mailing list