Hi:
This is a follow up to this previous
post.<https://groups.google.com/forum/#!searchin/leo-editor/hooks/leo-editor/-6xZLadZeOI/M7-1q5UylVgJ>
At that time, I couldn't make the hooks work, and then Terry's code worked
for me (I stored it, so I am using exactly that same code that worked).
But somehow, now it doesn't work. I'm thinking it can be some configuration
issue, but not sure.
The fact is that, if I try the following code:
def Headclick(tag, keywords):
g.es("Header clicked")
g.registerHandler('headclick1', Headclick)
Even if using different tag names (headclick2, bodyclick1,bodyclick2,..)
It wont work. There is nothing popping in the console neither.
Is that code working for you?
Was using previous Leo version, and just updated to current:
Leo 4.11 final, build a5bc011dc696 (branch: master), 2014-02-14 09:46:17
Python 2.7.5, qt version 4.8.4
Windows 6, 1, 7601, 2, Service Pack 1
But it didnt work in neither of them.
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.