dabo Commit
Revision 6776
Date: 2011-08-09 15:19:42 -0700 (Tue, 09 Aug 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6776
Changed:
U trunk/dabo/ui/dialogs/htmlAbout.py
Log:
- Fix "RuntimeError: maximum recursion depth exceeded while calling a Python
object" on dialog closing issue.
- Remove redundant onClose method.
Diff:
Modified: trunk/dabo/ui/dialogs/htmlAbout.py
===================================================================
--- trunk/dabo/ui/dialogs/htmlAbout.py 2011-08-09 13:54:58 UTC (rev 6775)
+++ trunk/dabo/ui/dialogs/htmlAbout.py 2011-08-09 22:19:42 UTC (rev 6776)
@@ -27,7 +27,7 @@
pnlBack.Sizer = sz = dabo.ui.dSizer("v")
self.htmlBox = dabo.ui.dHtmlBox(self)
- self.htmlBox.Size = (400,300)
+ self.htmlBox.Size = (400, 300)
sz.append1x(self.htmlBox, halign="center", valign="center",
border=30)
@@ -41,13 +41,18 @@
hsz.appendSpacer(20)
hsz.append(btnClose)
sz.append(hsz, halign="right", border=30, borderSides=["right"])
- sz.append((0,20))
+ sz.append((0, 20))
self.Layout()
self.htmlBox.Source = self.writeHtmlPage()
def onClose(self, evt):
- self.close()
+ if self.Modal:
+ self.EndModal(0)
+ if self.Parent is None:
+ # Since this is a dialog, we need to explicitly remove
+ # it or the app will hang.
+ self.close(True)
def writeHtmlPage(self):
@@ -75,10 +80,6 @@
self.release()
- def onClose(self, evt=None):
- self.release()
-
-
def getPageData(self):
"""Basic Template structure of the About box."""
return """
_______________________________________________
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]