dabo Commit
Revision 6586
Date: 2011-04-27 17:10:14 -0700 (Wed, 27 Apr 2011)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6586
Changed:
U trunk/ide/ClassDesigner.py
Log:
Fixed issue when re-opening a pageframe. Reported by Mark Stanton.
Diff:
Modified: trunk/ide/ClassDesigner.py
===================================================================
--- trunk/ide/ClassDesigner.py 2011-04-27 22:04:40 UTC (rev 6585)
+++ trunk/ide/ClassDesigner.py 2011-04-28 00:10:14 UTC (rev 6586)
@@ -2534,8 +2534,7 @@
if self.UseSizers:
# Grab the first LayoutPanel
lps = [ch for ch in obj.Children
- if isinstance(ch, LayoutPanel)
- and len(ch.Children)==0]
+ if isinstance(ch, LayoutPanel)]
try:
ret = lps[0]
except:
@@ -2555,6 +2554,11 @@
# controls programmatically.
if self.UseSizers and isinstance(pnl, (dui.dPage, dui.dForm,
dui.dFormMain)):
pnl = self.getMainLayoutPanel(pnl)
+ try:
+ pnl.Sizer.release(releaseContents=True)
+ except AttributeError:
+ # No sizer, so ignore
+ pass
elif pnl is None and not self.UseSizers:
pnl = self.CurrentForm.ActiveContainer
return pnl
_______________________________________________
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]