dabo Commit
Revision 6164
Date: 2010-10-25 05:41:44 -0700 (Mon, 25 Oct 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6164
Changed:
U trunk/dabo/ui/uiwx/dShell.py
Log:
Added a callAfter() to the setting of focus to the code editor when activating
that page.
Diff:
Modified: trunk/dabo/ui/uiwx/dShell.py
===================================================================
--- trunk/dabo/ui/uiwx/dShell.py 2010-10-25 12:36:20 UTC (rev 6163)
+++ trunk/dabo/ui/uiwx/dShell.py 2010-10-25 12:41:44 UTC (rev 6164)
@@ -431,7 +431,9 @@
# Show/hide the code editing pane
self.bindKey("Ctrl+E", self.onToggleCodePane)
# Force the focus to the editor when the code page is activated.
- self.pgCode.bindEvent(dEvents.PageEnter, lambda evt:
self.edtCode.setFocus())
+ def _delayedSetFocus(evt):
+ dabo.ui.callAfter(self.edtCode.setFocus)
+ self.pgCode.bindEvent(dEvents.PageEnter, _delayedSetFocus)
# create the output control
outControl = dabo.ui.dEditBox(op, RegID="edtOut",
_______________________________________________
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]