Changeset 30510
- Timestamp:
- Mar 9, 2008, 12:33:54 PM (16 years ago)
- File:
-
- 1 edited
-
grass/trunk/gui/wxpython/gui_modules/menuform.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
grass/trunk/gui/wxpython/gui_modules/menuform.py
r30503 r30510 212 212 p['name'][:lparam] == aParam: 213 213 return p 214 raise ValueError, _("Parameter not found : %s") % aParam214 raise ValueError, _("Parameter not found: %s") % aParam 215 215 216 216 def set_param(self, aParam, aValue): … … 228 228 if f['name'] == aFlag: 229 229 return f 230 raise ValueError, _("Flag not found : %s") % aFlag230 raise ValueError, _("Flag not found: %s") % aFlag 231 231 232 232 def set_flag(self, aFlag, aValue): … … 802 802 """General 'about' information""" 803 803 dlg = wx.MessageDialog(self, _("This is a sample program for\n" 804 "GRASS command interface parsing\n"805 "and automatic GUI building.\n%s") %(__version__),806 _("About GrassGUI"), wx.OK | wx.ICON_INFORMATION)804 "GRASS command interface parsing\n" 805 "and automatic GUI building.\n%s") %(__version__), 806 _("About wxPython GRASS GUI"), wx.OK | wx.ICON_INFORMATION) 807 807 dlg.ShowModal() 808 808 dlg.Destroy() … … 1034 1034 flag=wx.RIGHT | wx.LEFT | wx.TOP | wx.EXPAND, border=5) 1035 1035 1036 if p.get('type','string') == 'string': 1036 if p.get('multiple','yes') == 'yes' or \ 1037 p.get('type','string') == 'string': 1037 1038 txt3 = wx.TextCtrl(parent=which_panel, value = p.get('default',''), 1038 size = (STRING_ENTRY_WIDTH, ENTRY_HEIGHT))1039 size = (STRING_ENTRY_WIDTH, ENTRY_HEIGHT)) 1039 1040 txt3.Bind(wx.EVT_TEXT, self.OnSetValue) 1040 1041 else: … … 1291 1292 cmdout = os.popen(cmd + r' --interface-description', "r").read() 1292 1293 if not len(cmdout) > 0 : 1293 raise IOError, _(" Couldn't fetch interface description for command <%s>.") % cmd1294 raise IOError, _("Unable to fetch interface description for command '%s'.") % cmd 1294 1295 p = re.compile( '(grass-interface.dtd)') 1295 1296 p.search( cmdout )
Note:
See TracChangeset
for help on using the changeset viewer.
