[GRASS-SVN] r32514 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Aug 4 11:54:13 EDT 2008
Author: cmbarton
Date: 2008-08-04 11:54:13 -0400 (Mon, 04 Aug 2008)
New Revision: 32514
Modified:
grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py
Log:
Cosmetics: opacity and properties dialogs now CentreOnParent rather than open at upper left corner.
Modified: grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py 2008-08-04 15:53:00 UTC (rev 32513)
+++ grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py 2008-08-04 15:54:13 UTC (rev 32514)
@@ -94,7 +94,7 @@
# init associated map display
self.mapdisplay = mapdisp.MapFrame(self,
- id=wx.ID_ANY, pos=wx.DefaultPosition,
+ id=wx.ID_ANY, pos=wx.Point(50,50),
size=globalvar.MAP_WINDOW_SIZE,
style=wx.DEFAULT_FRAME_STYLE,
tree=self, notebook=self.notebook,
@@ -466,6 +466,7 @@
dlg = gdialogs.SetOpacityDialog(self, opacity=current_opacity,
title=_("Set opacity <%s>") % maplayer.GetName())
+ dlg.CentreOnParent()
if dlg.ShowModal() == wx.ID_OK:
new_opacity = dlg.GetOpacity() # string
@@ -699,6 +700,8 @@
self.GetPyData(layer)[0]['propwin'].SetFocus()
else:
self.GetPyData(layer)[0]['propwin'].Show()
+
+ self.GetPyData(layer)[0]['propwin'].CentreOnParent()
return
completed = ''
@@ -768,6 +771,8 @@
pass
elif ltype == 'group':
pass
+
+ self.GetPyData(layer)[0]['propwin'].CentreOnParent()
def OnActivateLayer(self, event):
"""Double click on the layer item.
More information about the grass-commit
mailing list