[GRASS-SVN] r42370 -
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat May 29 06:02:57 EDT 2010
Author: martinl
Date: 2010-05-29 06:02:57 -0400 (Sat, 29 May 2010)
New Revision: 42370
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/histogram.py
Log:
wxGUI/histogram: minor fixes
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/histogram.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/histogram.py 2010-05-29 09:52:41 UTC (rev 42369)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/histogram.py 2010-05-29 10:02:57 UTC (rev 42370)
@@ -284,22 +284,23 @@
Uses d.histogram rendered onto canvas
"""
- def __init__(self, parent=None, id = wx.ID_ANY, title="Histogram of image or raster map",
+ def __init__(self, parent=None, id = wx.ID_ANY,
+ title= _("GRASS GIS Histogram of image or raster map"),
pos=wx.DefaultPosition, size=wx.DefaultSize,
style=wx.DEFAULT_FRAME_STYLE):
wx.Frame.__init__(self, parent, id, title, pos, size, style)
-
+ self.SetIcon(wx.Icon(os.path.join(globalvar.ETCICONDIR, 'grass.ico'), wx.BITMAP_TYPE_ICO))
+
toolbar = self.__createToolBar()
-
+
self.Map = render.Map() # instance of render.Map to be associated with display
self.layer = None # reference to layer with histogram
#
# Set the size & cursor
#
self.SetClientSize(size)
- self.iconsize = (16, 16)
-
+
# Init variables
self.params = {} # previously set histogram parameters
self.propwin = '' # ID of properties dialog
@@ -344,12 +345,14 @@
def __createToolBar(self):
"""Creates toolbar"""
-
toolbar = self.CreateToolBar()
+ toolbar.SetToolBitmapSize(globalvar.toolbarSize)
for each in self.toolbarData():
self.AddToolbarButton(toolbar, *each)
toolbar.Realize()
-
+
+ return toolbar
+
def AddToolbarButton(self, toolbar, label, icon, help, handler):
"""Adds buttons to the toolbar"""
More information about the grass-commit
mailing list