[GRASS-SVN] r50325 - in grass/branches/develbranch_6/gui/wxpython: core lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jan 20 13:39:31 EST 2012


Author: martinl
Date: 2012-01-20 10:39:31 -0800 (Fri, 20 Jan 2012)
New Revision: 50325

Modified:
   grass/branches/develbranch_6/gui/wxpython/core/globalvar.py
   grass/branches/develbranch_6/gui/wxpython/lmgr/layertree.py
Log:
wxGUI: remove globalvar.HIST_WINDOW_SIZE


Modified: grass/branches/develbranch_6/gui/wxpython/core/globalvar.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/core/globalvar.py	2012-01-20 17:42:49 UTC (rev 50324)
+++ grass/branches/develbranch_6/gui/wxpython/core/globalvar.py	2012-01-20 18:39:31 UTC (rev 50325)
@@ -99,7 +99,6 @@
 DIALOG_COLOR_SIZE = (30, 30)
 
 MAP_WINDOW_SIZE = (800, 600)
-HIST_WINDOW_SIZE = (500, 350)
 GM_WINDOW_SIZE = (500, 600)
 
 """!File name extension binaries/scripts"""

Modified: grass/branches/develbranch_6/gui/wxpython/lmgr/layertree.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/lmgr/layertree.py	2012-01-20 17:42:49 UTC (rev 50324)
+++ grass/branches/develbranch_6/gui/wxpython/lmgr/layertree.py	2012-01-20 18:39:31 UTC (rev 50325)
@@ -566,16 +566,15 @@
                                "raster map. No map name defined."))
             return
         
-        histogramFrame = HistogramFrame(parent = self,
-                                        id = wx.ID_ANY,
-                                        pos = wx.DefaultPosition, size = globalvar.HIST_WINDOW_SIZE,
-                                        style = wx.DEFAULT_FRAME_STYLE)
-        histogramFrame.Show()
-        histogramFrame.SetHistLayer(mapLayer.GetName())
-        histogramFrame.HistWindow.UpdateHist()
-        histogramFrame.Refresh()
-        histogramFrame.Update()
+        win = HistogramFrame(parent = self)
         
+        win.CentreOnScreen()
+        win.Show()
+        win.SetHistLayer(mapLayer.GetName())
+        win.HistWindow.UpdateHist()
+        win.Refresh()
+        win.Update()
+        
     def OnUnivariateStats(self, event):
         """!Univariate raster statistics"""
         name = self.GetPyData(self.layer_selected)[0]['maplayer'].GetName()



More information about the grass-commit mailing list