dabo Commit
Revision 4176
Date: 2008-06-24 08:13:31 -0700 (Tue, 24 Jun 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4176
Changed:
U trunk/ide/ClassDesigner.py
U trunk/ide/ClassDesignerFormMixin.py
Log:
Update the dialogs to use CancelOnEscape instead of ReleaseOnEscape. Also set
the minimum value for the slot count in the sizer dialogs to 1.
Diff:
Modified: trunk/ide/ClassDesigner.py
===================================================================
--- trunk/ide/ClassDesigner.py 2008-06-21 12:35:04 UTC (rev 4175)
+++ trunk/ide/ClassDesigner.py 2008-06-24 15:13:31 UTC (rev 4176)
@@ -3339,7 +3339,7 @@
self.Sizer.DefaultSpacing = 10
hsz = dui.dSizer("h")
lbl = dui.dLabel(self, Caption=_("Number of
Slots:"))
- txt = dui.dSpinner(self, RegID="slotcount",
Value=defaultSlotCount)
+ txt = dui.dSpinner(self, RegID="slotcount",
Value=defaultSlotCount, Min=1)
hsz.append(lbl, halign="right")
hsz.appendSpacer(4)
hsz.append(txt, 1, halign="left")
Modified: trunk/ide/ClassDesignerFormMixin.py
===================================================================
--- trunk/ide/ClassDesignerFormMixin.py 2008-06-21 12:35:04 UTC (rev 4175)
+++ trunk/ide/ClassDesignerFormMixin.py 2008-06-24 15:13:31 UTC (rev 4176)
@@ -1472,7 +1472,8 @@
elif isinstance(self, dabo.ui.dDialog):
ret["AutoSize"] = {"type" : bool, "readonly" : False}
ret["Centered"] = {"type" : bool, "readonly" : False}
- ret["ReleaseOnEscape"] = {"type" : bool, "readonly" :
False}
+ if isinstance(self, dabo.ui.dStandardButtonDialog):
+ ret["CancelOnEscape"] = {"type" : bool,
"readonly" : False}
return ret
_______________________________________________
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]