dabo Commit
Revision 4220
Date: 2008-07-02 10:40:30 -0700 (Wed, 02 Jul 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4220
Changed:
U trunk/dabo/ui/uiwx/dDialog.py
Log:
Enabled skipping the dialog-ending behavior by returning False from the
runOK/Cancel/Yes/No methods.
Diff:
Modified: trunk/dabo/ui/uiwx/dDialog.py
===================================================================
--- trunk/dabo/ui/uiwx/dDialog.py 2008-07-01 03:22:36 UTC (rev 4219)
+++ trunk/dabo/ui/uiwx/dDialog.py 2008-07-02 17:40:30 UTC (rev 4220)
@@ -345,8 +345,8 @@
except AttributeError:
# New code should not have onOK
pass
- self.runOK()
- self.EndModal(kons.DLG_OK)
+ if self.runOK() is not False:
+ self.EndModal(kons.DLG_OK)
def _onCancel(self, evt):
try:
self.onCancel()
@@ -358,14 +358,15 @@
# New code should not have onCancel
pass
self.runCancel()
- self.EndModal(kons.DLG_CANCEL)
+ if self.runCancel() is not False:
+ self.EndModal(kons.DLG_CANCEL)
def _onYes(self, evt):
self.Accepted = True
- self.runYes()
- self.EndModal(kons.DLG_YES)
+ if self.runYes() is not False:
+ self.EndModal(kons.DLG_YES)
def _onNo(self, evt):
- self.runNo()
- self.EndModal(kons.DLG_NO)
+ if self.runNo() is not False:
+ self.EndModal(kons.DLG_NO)
def _onHelp(self, evt):
self.runHelp()
_______________________________________________
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]