dabodemo Commit
Revision 391
Date: 2006-03-23 12:26:52 -0800 (Thu, 23 Mar 2006)
Author: ed
Changed:
U trunk/simpleDemo1.py
Log:
Added a background panel to make the demo look better on Windows, and also
removed the tabs from the docstrings.
Diff:
Modified: trunk/simpleDemo1.py
===================================================================
--- trunk/simpleDemo1.py 2006-03-23 17:51:49 UTC (rev 390)
+++ trunk/simpleDemo1.py 2006-03-23 20:26:52 UTC (rev 391)
@@ -38,21 +38,23 @@
def afterInit(self):
self.Caption = "DocString Demo"
self.Size = (660, 400)
+ self.pnl = dabo.ui.dPanel(self)
+ self.Sizer.append1x(self.pnl)
- self.btn = dabo.ui.dButton(self, Left=50, Top=50,
RegID="button",
+ self.btn = dabo.ui.dButton(self.pnl, Left=50, Top=50,
RegID="button",
Width=320, Caption="Click Me to Populate the
Dropdown List")
- self.dd = dabo.ui.dDropdownList(self, Width=150, Left=50,
+ self.dd = dabo.ui.dDropdownList(self.pnl, Width=150, Left=50,
Top=100, RegID="ddList")
- self.edt = dabo.ui.dEditBox(self, Width=360, Height=200,
+ self.edt = dabo.ui.dEditBox(self.pnl, Width=360, Height=200,
Left=250, Top=100, DataSource="form",
DataField="getdocstring")
- self.spnPos = dabo.ui.dSpinner(self, Left=50, Top=200,
+ self.spnPos = dabo.ui.dSpinner(self.pnl, Left=50, Top=200,
DataSource="ddList", DataField="PositionValue")
- lbl = dabo.ui.dLabel(self, Left=50, Top=180,
+ lbl = dabo.ui.dLabel(self.pnl, Left=50, Top=180,
Caption="Selected Item")
@@ -84,7 +86,7 @@
val = self.dd.StringValue
if val:
try:
- ret = eval("self.btn.__class__.%s.__doc__" %
val)
+ ret = eval("self.btn.__class__.%s.__doc__" %
val).replace("\t", "")
except:
ret = None
if ret is None:
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev