dabo Commit
Revision 6399
Date: 2011-02-06 09:56:16 -0800 (Sun, 06 Feb 2011)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6399
Changed:
U trunk/dabo/ui/uiwx/uiApp.py
Log:
Improved the behavior of the Debugout window.
Diff:
Modified: trunk/dabo/ui/uiwx/uiApp.py
===================================================================
--- trunk/dabo/ui/uiwx/uiApp.py 2011-02-06 17:36:23 UTC (rev 6398)
+++ trunk/dabo/ui/uiwx/uiApp.py 2011-02-06 17:56:16 UTC (rev 6399)
@@ -525,8 +525,19 @@
self.out = dabo.ui.dEditBox(self, ReadOnly=True)
self.out.bindEvent(dEvents.ContextMenu,
self.onContext)
self.Sizer.append1x(self.out)
+ self._txtlen = len(self.out.Value)
+ self.tmr = dabo.ui.dTimer(self, Interval=500,
OnHit=self.onOutValue)
+ self.tmr.start()
def onContext(self, evt):
self.out.Value = ""
+ def onClose(self, evt):
+ self.tmr.stop()
+ self.tmr.release()
+ def onOutValue(self, evt):
+ curr = len(self.out.Value)
+ if curr != self._txtlen:
+ self._txtlen = curr
+ self.out.scrollToEnd()
if not self.debugWindow:
self.debugWindow = DebugWindow(context)
_______________________________________________
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]