On Wed, 17 Oct 2012 11:08:15 -0500 "Edward K. Ream" <edream...@gmail.com> wrote:
> On Wed, Oct 17, 2012 at 9:14 AM, Terry Brown <terry_n_br...@yahoo.com> wrote: > > > It's something like > > > > g.app.gui.?.?.?.tab_widget.currentWidget().?.?.c > > This *might* work: > > 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. 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 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.