dabo Commit
Revision 3612
Date: 2007-11-02 11:25:07 -0700 (Fri, 02 Nov 2007)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/3612
Changed:
U trunk/dabo/ui/uiwx/dDialog.py
Log:
Fixed AutoSize in dDialog to happen after the dialog is shown, and not before.
It was failing to take into account labels that were WordWrapped otherwise.
Diff:
Modified: trunk/dabo/ui/uiwx/dDialog.py
===================================================================
--- trunk/dabo/ui/uiwx/dDialog.py 2007-11-02 16:22:01 UTC (rev 3611)
+++ trunk/dabo/ui/uiwx/dDialog.py 2007-11-02 18:25:07 UTC (rev 3612)
@@ -72,7 +72,7 @@
def show(self):
if self.AutoSize:
- self.Fit()
+ wx.CallAfter(self.Fit)
if self.Centered:
wx.CallAfter(self.Centre)
retVals = {wx.ID_OK : kons.DLG_OK,
_______________________________________________
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/dabo-dev/[EMAIL PROTECTED]