On Wed, Oct 17, 2012 at 12:17 PM, Terry Brown

>> w  = g.app.gui.get_focus() # A LeoQTextBrowser?
>> return hasattr(w,'leo_c') and w.leo_c or None
>
> Thanks, for this purpose it will be fine to take whatever
> g.app.gui.get_focus() returns and walk up the parent links until you
> get to something which can be relied on to have a link to c.

Good idea.  Glad the general idea works.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to leo-editor@googlegroups.com.
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to