daboide Commit
Revision 849
Date: 2007-05-27 08:34:32 -0700 (Sun, 27 May 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/daboide/changeset/849
Changed:
U trunk/wizards/AppWizard/AppWizard.py
U trunk/wizards/QuickLayoutWizard.py
Log:
Updated both wizards to work with the recent changes to the wizard classes.
Diff:
Modified: trunk/wizards/AppWizard/AppWizard.py
===================================================================
--- trunk/wizards/AppWizard/AppWizard.py 2007-05-20 21:57:50 UTC (rev
848)
+++ trunk/wizards/AppWizard/AppWizard.py 2007-05-27 15:34:32 UTC (rev
849)
@@ -26,8 +26,8 @@
class PageIntro(AppWizardPage):
- def __init__(self, parent, title=_("Introduction")):
- super(PageIntro, self).__init__(parent=parent, Title=title)
+ def __init__(self, parent, Caption=_("Introduction")):
+ super(PageIntro, self).__init__(parent=parent, Caption=Caption)
def createBody(self):
txt = _("Use this wizard to quickly create an application "
@@ -49,8 +49,8 @@
class PageDatabase(AppWizardPage):
- def __init__(self, parent, title=_("Database Parameters")):
- super(PageDatabase, self).__init__(parent=parent, Title=title)
+ def __init__(self, parent, Caption=_("Database Parameters")):
+ super(PageDatabase, self).__init__(parent=parent,
Caption=Caption)
def createBody(self):
@@ -324,8 +324,8 @@
class PageTableSelection(AppWizardPage):
- def __init__(self, parent, title=_("Table Selection")):
- super(PageTableSelection, self).__init__(parent=parent,
Title=title)
+ def __init__(self, parent, Caption=_("Table Selection")):
+ super(PageTableSelection, self).__init__(parent=parent,
Caption=Caption)
def createBody(self):
@@ -388,7 +388,7 @@
if not self.Form.selectedTables:
dabo.ui.stop(_("No tables were selected. " +
"Please select the tables you
want to include in your application"),
- title=_("No Tables Selected"))
+ Caption=_("No Tables Selected"))
return False
self.fillFieldDict()
return True
@@ -418,8 +418,8 @@
class PageOutput(AppWizardPage):
- def __init__(self, parent, title=_("Output Options")):
- self.super(parent=parent, Title=title)
+ def __init__(self, parent, Caption=_("Output Options")):
+ self.super(parent=parent, Caption=Caption)
def createBody(self):
@@ -531,8 +531,8 @@
class PageGo(AppWizardPage):
- def __init__(self, parent, title=_("Create Application")):
- super(PageGo, self).__init__(parent=parent, Title=title)
+ def __init__(self, parent, Caption=_("Create Application")):
+ super(PageGo, self).__init__(parent=parent, Caption=Caption)
txt = _("""Press 'Finish' to create your application, or
'Back' to edit any information.""")
lbl = dLabel(self, Caption=txt)
@@ -561,7 +561,7 @@
super(AppWizard, self).__init__(parent=parent, *args, **kwargs)
self.Caption = _("Dabo Application Wizard")
- self.Image = "daboIcon064"
+ self.Picture = "daboIcon064"
self.Size = (520, 560)
self.wizDir = sys.path[0]
Modified: trunk/wizards/QuickLayoutWizard.py
===================================================================
--- trunk/wizards/QuickLayoutWizard.py 2007-05-20 21:57:50 UTC (rev 848)
+++ trunk/wizards/QuickLayoutWizard.py 2007-05-27 15:34:32 UTC (rev 849)
@@ -14,7 +14,7 @@
class PgConnectionSelect(WizardPage):
def createBody(self):
- self.Title = _("Select Data Connection")
+ self.Caption = _("Select Data Connection")
self.HorizontalScroll = False
sz = self.Sizer
sz.DefaultBorder = 16
@@ -102,7 +102,7 @@
class PgSelect(WizardPage):
def createBody(self):
- self.Title = _("Select Fields to Add")
+ self.Caption = _("Select Fields to Add")
self._currTable = None
sz = self.Sizer
@@ -199,7 +199,7 @@
class PgLayout(WizardPage):
def createBody(self):
- self.Title = _("Layout Selection")
+ self.Caption = _("Layout Selection")
self.layouts = []
# select a layout type
lt = self.layoutType = dabo.ui.dListBox(self,
@@ -240,7 +240,7 @@
class PgOrdering(WizardPage):
def createBody(self):
- self.Title = _("Order Fields")
+ self.Caption = _("Order Fields")
# lbl = dabo.ui.dLabel(self, Caption="""Select a field, and then
use the buttons
# to change its order""")
@@ -263,7 +263,7 @@
class PgSample(WizardPage):
def createBody(self):
- self.Title = _("Sample")
+ self.Caption = _("Sample")
self.HorizontalScroll = False
self.lastStyle = ""
self.lastFldList = []
@@ -676,7 +676,7 @@
class PgBiz(WizardPage):
def createBody(self):
- self.Title = _("Bizobj Code")
+ self.Caption = _("Bizobj Code")
lbl = dabo.ui.dLabel(self, Alignment="Center")
lbl.Caption = """
You can optionally have the Wizard add code
@@ -697,7 +697,7 @@
super(QuickLayoutWizard, self).__init__(parent=parent)
self.Modal = True
self.Caption = _("Add From Data Environment")
- self.Image = "daboIcon128"
+ self.Picture = "daboIcon096"
self.Size = (520, 560)
self._dataEnv = {}
self._connectionName = ""
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]