On Tue, Nov 8, 2011 at 3:12 PM, Kent Tenney <[email protected]> wrote:
> I don't know what "in selectHelper" means
In leoPy.leo, search for "def selectHelper".
> To test event handlers, I'm using the following which monitors
> the selectx and unselectx events
You probably don't need this extra code.
The eventFilter method (yes, search for "def eventFilter") has
excellent event tracing capabilities. Set the following as desired::
trace = (True or self.trace_masterKeyHandler) and not g.unitTesting
verbose = True
traceEvent = False # True: call self.traceEvent.
traceKey = (False or self.trace_masterKeyHandler)
The "trace" constant is the master tracing switch. It must be True
for any tracing to happen.
As indicated, if traceEvent is True, eventFilter calls the traceEvent
helper. Take a look: you should be able to trace exactly the events
you want, with very little work.
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.