[GRASS-SVN] r29623 - in grass/trunk/gui/wxpython: gui_modules images

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 8 17:02:23 EST 2008


Author: martinl
Date: 2008-01-08 17:02:23 -0500 (Tue, 08 Jan 2008)
New Revision: 29623

Added:
   grass/trunk/gui/wxpython/images/qgis_world.png
Modified:
   grass/trunk/gui/wxpython/gui_modules/location_wizard.py
Log:
Location wizard: show sample map in region settings dialog (ticket #8). Used world map from qgis/plugins/grass.

Modified: grass/trunk/gui/wxpython/gui_modules/location_wizard.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/location_wizard.py	2008-01-08 21:13:05 UTC (rev 29622)
+++ grass/trunk/gui/wxpython/gui_modules/location_wizard.py	2008-01-08 22:02:23 UTC (rev 29623)
@@ -2033,6 +2033,12 @@
         self.bset.SetDefault()
 
         #
+        # image
+        #
+        self.img = wx.Image(os.path.join(os.getenv("GISBASE"), "etc", "wx", "images",
+                                         "qgis_world.png"), wx.BITMAP_TYPE_PNG).ConvertToBitmap()
+
+        #
         # set current working environment to PERMANENT mapset
         # in selected location in order to set default region (WIND)
         #
@@ -2271,7 +2277,8 @@
                       wx.ALIGN_CENTER_VERTICAL |
                       wx.ALL, border=5,  pos=(2, 1))
 
-        gridSizer.Add(item=self.MakeLabel("+"),
+        gridSizer.Add(item=wx.StaticBitmap(self, wx.ID_ANY, self.img, (-1, -1),
+                                           (self.img.GetWidth(), self.img.GetHeight())),
                       flag=wx.ALIGN_CENTER |
                       wx.ALIGN_CENTER_VERTICAL |
                       wx.ALL, border=5, pos=(2, 2))
@@ -2437,6 +2444,7 @@
 
 if __name__ == "__main__":
     app = wx.PySimpleApp()
-    gWizard = LocationWizard(None, "")
+    # gWizard = LocationWizard(None, "")
+    gWizard = RegionDef(None)
     gWizzard.Show()
     app.MainLoop()

Added: grass/trunk/gui/wxpython/images/qgis_world.png
===================================================================
(Binary files differ)


Property changes on: grass/trunk/gui/wxpython/images/qgis_world.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream



More information about the grass-commit mailing list