dabo Commit
Revision 4456
Date: 2008-08-26 15:15:23 -0700 (Tue, 26 Aug 2008)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/4456

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

Log:
Received this traceback. I guess the user tried to Select All when 
the current control was the pageframe.

Traceback (most recent call last):
  File "dabo\ui\uiwx\dMenuItem.pyo", line 55, in __onWxHit
  File "dabo\ui\uiwx\dPemMixin.pyo", line 922, in raiseEvent
  File "dabo\lib\eventMixin.pyo", line 92, in raiseEvent
  File "dabo\dApp.pyo", line 1035, in onEditSelectAll
  File "dabo\ui\uiwx\uiApp.pyo", line 499, in onEditSelectAll
  File "wx\_controls.pyo", line 2976, in SetSelection
<type 'exceptions.TypeError'>: BookCtrlBase_SetSelection() takes exactly 2 
arguments (3 given)




Diff:
Modified: trunk/dabo/ui/uiwx/uiApp.py
===================================================================
--- trunk/dabo/ui/uiwx/uiApp.py 2008-08-26 20:15:01 UTC (rev 4455)
+++ trunk/dabo/ui/uiwx/uiApp.py 2008-08-26 22:15:23 UTC (rev 4456)
@@ -497,7 +497,7 @@
                                except AttributeError:
                                        try:
                                                win.SetSelection(-1, -1)
-                                       except AttributeError:
+                                       except (TypeError, AttributeError):
                                                pass
 
                        




_______________________________________________
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]

Reply via email to