dabo Commit
Revision 2779
Date: 2007-02-04 13:06:44 -0800 (Sun, 04 Feb 2007)
Author: Paul

Changed:
U   trunk/dabo/ui/uiwx/dDialog.py

Log:
Added showModal() and showModeless() helper methods to dDialog. This was
mostly to override the default showModal(), defined in dPemMixin, which
doesn't really result in modal functionality.


Diff:
Modified: trunk/dabo/ui/uiwx/dDialog.py
===================================================================
--- trunk/dabo/ui/uiwx/dDialog.py       2007-02-04 20:42:07 UTC (rev 2778)
+++ trunk/dabo/ui/uiwx/dDialog.py       2007-02-04 21:06:44 UTC (rev 2779)
@@ -48,7 +48,21 @@
                super(dDialog, self)._afterInit()
                self.bindKey("esc", self._onEscape)
 
-               
+
+       def showModal(self):
+               """Show the dialog modally."""
+               ## pkm: We had to override this, because the default in 
dPemMixin doesn't 
+               ##      actually result in a modal dialog.
+               self.Modal = True
+               self.show()
+
+
+       def showModeless(self):
+               """Show the dialog non-modally."""
+               self.Modal = False
+               self.show()
+
+
        def show(self):
                if self.AutoSize:
                        self.Fit()




_______________________________________________
Post Messages to: Dabo-dev@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to