dabo Commit
Revision 5529
Date: 2009-11-15 07:49:48 -0800 (Sun, 15 Nov 2009)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5529
Changed:
U trunk/dabo/ui/uiwx/dGridSizer.py
Log:
Attempt to address the problem in Trac ticket #1295: saves failing because of
spurious error in the grid sizer code. I cannot reproduce the error, but going
through the code logically, this is the only solution that seems possible.
I will need those who reported getting this error to try out this new version,
and let me know if it a) works perfectly, b) doesn't crash, but also doesn't
save correctly, or c) still throws errors.
Diff:
Modified: trunk/dabo/ui/uiwx/dGridSizer.py
===================================================================
--- trunk/dabo/ui/uiwx/dGridSizer.py 2009-11-15 03:01:55 UTC (rev 5528)
+++ trunk/dabo/ui/uiwx/dGridSizer.py 2009-11-15 15:49:48 UTC (rev 5529)
@@ -302,7 +302,7 @@
szit = obj.ControllingSizerItem
try:
row, col = szit.GetPos()
- except wx.PyAssertionError:
+ except (wx.PyAssertionError, AttributeError):
# Window isn't controlled by this sizer
row, col = None, None
return (row, col)
_______________________________________________
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]