dabo Commit
Revision 5925
Date: 2010-07-14 11:40:29 -0700 (Wed, 14 Jul 2010)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5925
Changed:
U trunk/ide/wizards/AppWizard/spec-FrmReportBase.py.txt
U trunk/ide/wizards/AppWizard/spec-Grd.py.txt
U trunk/ide/wizards/AppWizard/spec-PagEdit.py.txt
U trunk/ide/wizards/AppWizard/spec-PagSelect.py.txt
Log:
Changed addObject() calls to the more direct approach.
Diff:
Modified: trunk/ide/wizards/AppWizard/spec-FrmReportBase.py.txt
===================================================================
--- trunk/ide/wizards/AppWizard/spec-FrmReportBase.py.txt 2010-07-11
17:13:01 UTC (rev 5924)
+++ trunk/ide/wizards/AppWizard/spec-FrmReportBase.py.txt 2010-07-14
18:40:29 UTC (rev 5925)
@@ -24,8 +24,7 @@
def addControls(self):
- preview = self.addObject(dabo.ui.dButton, Caption="Run Report",
- RegID="cmdRunReport")
+ preview = dabo.ui.dButton(self, Caption="Run Report",
RegID="cmdRunReport")
hs = dabo.ui.dSizer("h")
hs.append(preview, alignment="right", border=self.SizerBorder)
self.Sizer.append(hs, alignment="bottom",
border=self.SizerBorder)
Modified: trunk/ide/wizards/AppWizard/spec-Grd.py.txt
===================================================================
--- trunk/ide/wizards/AppWizard/spec-Grd.py.txt 2010-07-11 17:13:01 UTC (rev
5924)
+++ trunk/ide/wizards/AppWizard/spec-Grd.py.txt 2010-07-14 18:40:29 UTC (rev
5925)
@@ -20,7 +20,7 @@
class TestForm(Frm%(tableName)s):
def afterInit(self): pass
frm = TestForm(Caption="Test Of Grd%(tableName)s", Testing=True)
- test = frm.addObject(Grd%(tableName)s)
+ test = Grd%(tableName)s(frm)
frm.Sizer.append1x(test)
frm.show()
app.start()
Modified: trunk/ide/wizards/AppWizard/spec-PagEdit.py.txt
===================================================================
--- trunk/ide/wizards/AppWizard/spec-PagEdit.py.txt 2010-07-11 17:13:01 UTC
(rev 5924)
+++ trunk/ide/wizards/AppWizard/spec-PagEdit.py.txt 2010-07-14 18:40:29 UTC
(rev 5925)
@@ -21,7 +21,7 @@
class TestForm(Frm%(tableName)s):
def afterInit(self): pass
frm = TestForm(Caption="Test Of PagEdit%(tableName)s", Testing=True)
- test = frm.addObject(PagEdit%(tableName)s)
+ test = PagEdit%(tableName)s(frm)
test.createItems()
frm.Sizer.append1x(test)
frm.show()
Modified: trunk/ide/wizards/AppWizard/spec-PagSelect.py.txt
===================================================================
--- trunk/ide/wizards/AppWizard/spec-PagSelect.py.txt 2010-07-11 17:13:01 UTC
(rev 5924)
+++ trunk/ide/wizards/AppWizard/spec-PagSelect.py.txt 2010-07-14 18:40:29 UTC
(rev 5925)
@@ -22,7 +22,7 @@
class TestForm(Frm%(tableName)s):
def afterInit(self): pass
frm = TestForm(Caption="Test Of PagSelect%(tableName)s", Testing=True)
- test = frm.addObject(PagSelect%(tableName)s)
+ test = PagSelect%(tableName)s(frm)
test.createItems()
frm.Sizer.append1x(test)
frm.show()
_______________________________________________
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/[email protected]