[GRASS-SVN] r40072 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Dec 19 14:05:05 EST 2009
Author: martinl
Date: 2009-12-19 14:05:04 -0500 (Sat, 19 Dec 2009)
New Revision: 40072
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py
Log:
keep wxGUI coding rules
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py 2009-12-19 18:55:41 UTC (rev 40071)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py 2009-12-19 19:05:04 UTC (rev 40072)
@@ -165,7 +165,8 @@
style=wx.GA_HORIZONTAL)
self.console_progressbar.Bind(EVT_CMD_PROGRESS, self.OnCmdProgress)
# abort
- self.btn_abort = wx.Button(self, -1, "Abort command", size=(125,-1))
+ self.btn_abort = wx.Button(parent = self, id = wx.ID_ANY, label = _("Abort command"),
+ size=(125,-1))
self.btn_abort.SetToolTipString(_("Abort the running command"))
self.btn_abort.Bind(wx.EVT_BUTTON, self.OnCmdAbort)
self.btn_abort.Enable(False)
@@ -200,9 +201,12 @@
#
# buttons
#
- self.console_clear = wx.Button(self, -1, "Clear output", size=(125,-1))
- self.cmd_clear = wx.Button(self, -1, "Clear command", size=(125,-1))
- self.console_save = wx.Button(self, -1, "Save output", size=(125,-1))
+ self.console_clear = wx.Button(parent = self, id = wx.ID_ANY,
+ label = _("Clear output"), size=(125,-1))
+ self.cmd_clear = wx.Button(parent = self, id = wx.ID_ANY,
+ label = _("Clear command"), size=(125,-1))
+ self.console_save = wx.Button(parent = self, id = wx.ID_ANY,
+ label = _("Save output"), size=(125,-1))
self.Bind(wx.EVT_BUTTON, self.cmd_prompt.OnCmdErase, self.cmd_clear)
self.Bind(wx.EVT_BUTTON, self.ClearHistory, self.console_clear)
self.Bind(wx.EVT_BUTTON, self.SaveHistory, self.console_save)
More information about the grass-commit
mailing list