[GRASS-SVN] r56083 - grass/trunk/gui/wxpython/psmap
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu May 2 09:47:31 PDT 2013
Author: annakrat
Date: 2013-05-02 09:47:30 -0700 (Thu, 02 May 2013)
New Revision: 56083
Modified:
grass/trunk/gui/wxpython/psmap/frame.py
Log:
wxGUI/composer: fix showing and hiding statusbar messages
Modified: grass/trunk/gui/wxpython/psmap/frame.py
===================================================================
--- grass/trunk/gui/wxpython/psmap/frame.py 2013-05-02 16:45:12 UTC (rev 56082)
+++ grass/trunk/gui/wxpython/psmap/frame.py 2013-05-02 16:47:30 UTC (rev 56083)
@@ -365,6 +365,8 @@
grass.try_remove(event.userData['instrFile'])
if event.userData['temp']:
grass.try_remove(event.userData['filename'])
+
+ wx.CallLater(4000, lambda: self.SetStatusText("", 0))
def getFile(self, wildcard):
suffix = []
@@ -1143,6 +1145,7 @@
self.idLinePointsTmp = (wx.NewId(), wx.NewId()) # ids of marks for moving line vertices
self.resizeBoxSize = wx.Size(8, 8)
+ self.showResizeHelp = False # helper for correctly working statusbar
@@ -1372,9 +1375,12 @@
if foundResize and foundResize[0] in (self.idResizeBoxTmp,) + self.idLinePointsTmp:
self.SetCursor(self.cursors["sizenwse"])
self.parent.SetStatusText(_('Click and drag to resize object'), 0)
+ self.showResizeHelp = True
else:
- self.parent.SetStatusText('', 0)
- self.SetCursor(self.cursors["default"])
+ if self.showResizeHelp:
+ self.parent.SetStatusText('', 0)
+ self.SetCursor(self.cursors["default"])
+ self.showResizeHelp = False
def OnLeftDown(self, event):
"""!Left mouse button pressed.
More information about the grass-commit
mailing list