瀏覽代碼

update text in a button

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@59326 15284696-431f-4ddb-bdfa-cd5b030d7da7
Luca Delucchi 11 年之前
父節點
當前提交
99d7488c40
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. 3 4
      gui/wxpython/rlisetup/frame.py

+ 3 - 4
gui/wxpython/rlisetup/frame.py

@@ -100,8 +100,8 @@ class ViewFrame(wx.Frame):
         """File input interactively entered"""
         """File input interactively entered"""
         self.text = event.GetString()
         self.text = event.GetString()
 
 
-class RLiSetupFrame(wx.Frame):
 
 
+class RLiSetupFrame(wx.Frame):
     def __init__(self, parent, giface=None, id=wx.ID_ANY, title=_("GRASS" \
     def __init__(self, parent, giface=None, id=wx.ID_ANY, title=_("GRASS" \
                  " GIS Setup for r.li modules"),
                  " GIS Setup for r.li modules"),
                  style=wx.DEFAULT_FRAME_STYLE | wx.RESIZE_BORDER, **kwargs):
                  style=wx.DEFAULT_FRAME_STYLE | wx.RESIZE_BORDER, **kwargs):
@@ -136,8 +136,8 @@ class RLiSetupFrame(wx.Frame):
                                     label=_("Rename"))
                                     label=_("Rename"))
         self.btn_rename.SetToolTipString(_('Rename a configuration file'))
         self.btn_rename.SetToolTipString(_('Rename a configuration file'))
         self.btn_view = wx.Button(parent=self, id=wx.ID_ANY,
         self.btn_view = wx.Button(parent=self, id=wx.ID_ANY,
-                                    label=_("View"))
-        self.btn_view.SetToolTipString(_('View a configuration file'))
+                                    label=_("View/Edit"))
+        self.btn_view.SetToolTipString(_('View and edit a configuration file'))
         #set action for button
         #set action for button
         self.btn_close.Bind(wx.EVT_BUTTON, self.OnClose)
         self.btn_close.Bind(wx.EVT_BUTTON, self.OnClose)
         self.btn_help.Bind(wx.EVT_BUTTON, self.OnHelp)
         self.btn_help.Bind(wx.EVT_BUTTON, self.OnHelp)
@@ -147,7 +147,6 @@ class RLiSetupFrame(wx.Frame):
         self.btn_view.Bind(wx.EVT_BUTTON, self.OnView)
         self.btn_view.Bind(wx.EVT_BUTTON, self.OnView)
         self._layout()
         self._layout()
         ###END BUTTONS
         ###END BUTTONS
-
         ###SIZE FRAME
         ###SIZE FRAME
         self.SetMinSize(self.GetBestSize())
         self.SetMinSize(self.GetBestSize())
         ##Please check this because without this the size it is not the min
         ##Please check this because without this the size it is not the min