[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/designer/src TemplateChooser.py
From: |
Arturas Kriukovas |
Subject: |
gnue/designer/src TemplateChooser.py |
Date: |
Wed, 03 Jul 2002 11:13:52 -0400 |
CVSROOT: /home/cvs
Module name: gnue
Changes by: Arturas Kriukovas <address@hidden> 02/07/03 11:13:52
Modified files:
designer/src : TemplateChooser.py
Log message:
Prepared strings for i18n.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/designer/src/TemplateChooser.py.diff?cvsroot=OldCVS&tr1=1.11&tr2=1.12&r1=text&r2=text
Patches:
Index: gnue/designer/src/TemplateChooser.py
diff -c gnue/designer/src/TemplateChooser.py:1.11
gnue/designer/src/TemplateChooser.py:1.12
*** gnue/designer/src/TemplateChooser.py:1.11 Fri Jun 28 00:03:37 2002
--- gnue/designer/src/TemplateChooser.py Wed Jul 3 11:13:52 2002
***************
*** 41,47 ****
def run(self):
! self.chooser = wxDialog(None, -1, 'Choose Wizard to Run...',
style=wxDEFAULT_DIALOG_STYLE|wxDIALOG_MODAL)
--- 41,47 ----
def run(self):
! self.chooser = wxDialog(None, -1, _('Choose Wizard to Run...'),
style=wxDEFAULT_DIALOG_STYLE|wxDIALOG_MODAL)
***************
*** 49,56 ****
self.notebook = wxNotebook(self.panel, -1)
self.chooser.SetClientSize(wxSize(400,340))
! self.chooseButton = wxButton(self.panel, -1, 'Run Wizard')
! self.cancelButton = wxButton(self.panel, -1, 'Cancel')
self.chooseButton.SetDefault()
--- 49,56 ----
self.notebook = wxNotebook(self.panel, -1)
self.chooser.SetClientSize(wxSize(400,340))
! self.chooseButton = wxButton(self.panel, -1, _('Run Wizard'))
! self.cancelButton = wxButton(self.panel, -1, _('Cancel'))
self.chooseButton.SetDefault()
***************
*** 106,116 ****
# style=wxLC_REPORT|wxLC_SINGLE_SEL|wxSTATIC_BORDER)
#wxLC_HRULES|wxLC_VRULES|)
ctrl = wxListCtrl(self.notebook, -1,wxPoint(5,5), wxSize(w-10,h-10),
style=wxLC_REPORT|wxLC_SINGLE_SEL|wxSTATIC_BORDER)
#wxLC_HRULES|wxLC_VRULES|)
! ctrl.InsertColumn(0, "Name", format=wxLIST_FORMAT_LEFT, width=-1)
! ctrl.InsertColumn(1, "Description", format=wxLIST_FORMAT_LEFT, width=-1)
! ctrl.InsertColumn(2, "Type", format=wxLIST_FORMAT_LEFT, width=-1)
! ctrl.InsertColumn(3, "Author", format=wxLIST_FORMAT_LEFT, width=-1)
! ctrl.InsertColumn(4, "Version", format=wxLIST_FORMAT_LEFT, width=-1)
EVT_LIST_ITEM_SELECTED(self.chooser, ctrl.GetId(), self.OnSelect)
EVT_LIST_ITEM_ACTIVATED(self.chooser, ctrl.GetId(), self.OnSelected)
--- 106,116 ----
# style=wxLC_REPORT|wxLC_SINGLE_SEL|wxSTATIC_BORDER)
#wxLC_HRULES|wxLC_VRULES|)
ctrl = wxListCtrl(self.notebook, -1,wxPoint(5,5), wxSize(w-10,h-10),
style=wxLC_REPORT|wxLC_SINGLE_SEL|wxSTATIC_BORDER)
#wxLC_HRULES|wxLC_VRULES|)
! ctrl.InsertColumn(0, _("Name"), format=wxLIST_FORMAT_LEFT, width=-1)
! ctrl.InsertColumn(1, _("Description"), format=wxLIST_FORMAT_LEFT,
width=-1)
! ctrl.InsertColumn(2, _("Type"), format=wxLIST_FORMAT_LEFT, width=-1)
! ctrl.InsertColumn(3, _("Author"), format=wxLIST_FORMAT_LEFT, width=-1)
! ctrl.InsertColumn(4, _("Version"), format=wxLIST_FORMAT_LEFT, width=-1)
EVT_LIST_ITEM_SELECTED(self.chooser, ctrl.GetId(), self.OnSelect)
EVT_LIST_ITEM_ACTIVATED(self.chooser, ctrl.GetId(), self.OnSelected)
***************
*** 126,147 ****
if template.has_key('Description'):
ctrl.SetStringItem(i, 1, template['Description'])
else:
! ctrl.SetStringItem(i, 1, 'Unknown')
if template['Product'] == TemplateBase.TEMPLATE:
ctrl.SetStringItem(i, 2, 'Template')
elif template['Product'] == TemplateBase.WIZARD:
! ctrl.SetStringItem(i, 2, 'Wizard')
if template.has_key('Author'):
ctrl.SetStringItem(i, 3, template['Author'])
else:
! ctrl.SetStringItem(i, 3, 'Unknown')
if template.has_key('Version'):
ctrl.SetStringItem(i, 4, template['Version'])
else:
! ctrl.SetStringItem(i, 4, 'Unknown')
ctrl.SetItemData(i, lookupIndex)
self.lookup[notebookIndex][lookupIndex] = template
--- 126,147 ----
if template.has_key('Description'):
ctrl.SetStringItem(i, 1, template['Description'])
else:
! ctrl.SetStringItem(i, 1, _('Unknown'))
if template['Product'] == TemplateBase.TEMPLATE:
ctrl.SetStringItem(i, 2, 'Template')
elif template['Product'] == TemplateBase.WIZARD:
! ctrl.SetStringItem(i, 2, _('Wizard'))
if template.has_key('Author'):
ctrl.SetStringItem(i, 3, template['Author'])
else:
! ctrl.SetStringItem(i, 3, _('Unknown'))
if template.has_key('Version'):
ctrl.SetStringItem(i, 4, template['Version'])
else:
! ctrl.SetStringItem(i, 4, _('Unknown'))
ctrl.SetItemData(i, lookupIndex)
self.lookup[notebookIndex][lookupIndex] = template
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue/designer/src TemplateChooser.py,
Arturas Kriukovas <=