Parcourir la source

wxGUI/forms: change working from 'interactively' to 'directly', add colon and tooltips

It is a direct input of file content. It is not interactive which usually means that there are some actions and reactions.


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@62153 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras il y a 10 ans
Parent
commit
356f6db2a3
1 fichiers modifiés avec 10 ajouts et 2 suppressions
  1. 10 2
      gui/wxpython/gui_core/forms.py

+ 10 - 2
gui/wxpython/gui_core/forms.py

@@ -1517,12 +1517,20 @@ class CmdPanel(wx.Panel):
                         ifbb.Bind(wx.EVT_TEXT, self.OnFileText)
                         
                         btnLoad = wx.Button(parent = which_panel, id = wx.ID_ANY, label = _("&Load"))
+                        btnLoad.SetToolTipString(_("Load and edit content of a file"))
                         btnLoad.Bind(wx.EVT_BUTTON, self.OnFileLoad)
                         btnSave = wx.Button(parent = which_panel, id = wx.ID_ANY, label = _("&Save as"))
+                        btnSave.SetToolTipString(_("Save content to a file for further use"))
                         btnSave.Bind(wx.EVT_BUTTON, self.OnFileSave)
                         
-                        which_sizer.Add(item = wx.StaticText(parent = which_panel, id = wx.ID_ANY,
-                                                             label = _('or enter values interactively')),
+                        fileContentLabel = wx.StaticText(parent=which_panel,
+                            id=wx.ID_ANY,
+                            label=_('or enter values directly:'))
+                        fileContentLabel.SetToolTipString(
+                            _("Enter file content directly instead of specifying"
+                              " a file."
+                              " Temporary file will be automatically created."))
+                        which_sizer.Add(item=fileContentLabel,
                                         proportion = 0,
                                         flag = wx.EXPAND | wx.RIGHT | wx.LEFT | wx.BOTTOM, border = 5)
                         which_sizer.Add(item = ifbb, proportion = 1,