[GRASS-SVN] r70533 - in grass/trunk/gui/wxpython: . psmap
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Feb 11 13:23:15 PST 2017
Author: wenzeslaus
Date: 2017-02-11 13:23:15 -0800 (Sat, 11 Feb 2017)
New Revision: 70533
Modified:
grass/trunk/gui/wxpython/gis_set.py
grass/trunk/gui/wxpython/psmap/frame.py
Log:
wxGUI: center dialogs on their parents in startup and psmap
Modified: grass/trunk/gui/wxpython/gis_set.py
===================================================================
--- grass/trunk/gui/wxpython/gis_set.py 2017-02-11 21:22:16 UTC (rev 70532)
+++ grass/trunk/gui/wxpython/gis_set.py 2017-02-11 21:23:15 UTC (rev 70533)
@@ -540,13 +540,13 @@
'name': gWizard.georeffile}
dlg = wx.MessageDialog(parent=self, message=message, caption=_(
"Import data?"), style=wx.YES_NO | wx.YES_DEFAULT | wx.ICON_QUESTION)
- dlg.CenterOnScreen()
+ dlg.CenterOnParent()
if dlg.ShowModal() == wx.ID_YES:
self.ImportFile(gWizard.georeffile)
dlg.Destroy()
if gWizard.default_region:
defineRegion = RegionDef(self, location=gWizard.location)
- defineRegion.CenterOnScreen()
+ defineRegion.CenterOnParent()
defineRegion.ShowModal()
defineRegion.Destroy()
Modified: grass/trunk/gui/wxpython/psmap/frame.py
===================================================================
--- grass/trunk/gui/wxpython/psmap/frame.py 2017-02-11 21:22:16 UTC (rev 70532)
+++ grass/trunk/gui/wxpython/psmap/frame.py 2017-02-11 21:23:15 UTC (rev 70533)
@@ -514,7 +514,7 @@
"""Specify paper size, margins and orientation"""
id = self.instruction.FindInstructionByType('page').id
dlg = PageSetupDialog(self, id=id, settings=self.instruction)
- dlg.CenterOnScreen()
+ dlg.CenterOnParent()
val = dlg.ShowModal()
if val == wx.ID_OK:
self.canvas.SetPage()
More information about the grass-commit
mailing list