On Thu, 21 Jul 2011 15:56:07 -0700 (PDT)
SegundoBob <[email protected]> wrote:
> That is, my command function needs to be a method.
No problem, in the __init__ for your class, do
c._my_class_name_here = self
then
> @g.command('my-new-command')
> def do_thing(event):
>
> c = event.get('c')
> if not c:
> return
> c._my_class_name_here.do_thing()
calls the do_thing() method of your class instance.
Cheers -Terry
--
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.