Re: current commander

2014-06-26 Thread Fidel N
Wow, your solution is FAR better than what I was going to do. You saved me a few headaches again, thanks Terry! -- 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 le

Re: current commander

2014-06-26 Thread 'Terry Brown' via leo-editor
On Thu, 26 Jun 2014 02:41:01 -0700 (PDT) Fidel N wrote: > well found out I can solve it by using "c" as an argument in the > functions defined in the other Leo window. > > Then I can call those functions from other leo windows using their > 'c' as argument. Ok, good, I don't remember exactly wh

Re: current commander

2014-06-26 Thread Fidel N
well found out I can solve it by using "c" as an argument in the functions defined in the other Leo window. Then I can call those functions from other leo windows using their 'c' as argument. -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To u

Re: current commander

2014-06-25 Thread Fidel N
Terry, do you have around the script that solved your problem? I seem to be facing the same issue after solving what we discussed today. Although im reaching Leo through clipboard interactions between AHK and Leo, im finding that the global class that I defined in Leo will use the "c" of the wi

Re: current commander

2012-10-17 Thread Edward K. Ream
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

Re: current commander

2012-10-17 Thread Terry Brown
On Wed, 17 Oct 2012 11:08:15 -0500 "Edward K. Ream" wrote: > On Wed, Oct 17, 2012 at 9:14 AM, Terry Brown 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,'

Re: current commander

2012-10-17 Thread Edward K. Ream
On Wed, Oct 17, 2012 at 9:14 AM, Terry Brown 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 Edward -- You received this message because you are

Re: current commander

2012-10-17 Thread Terry Brown
On Wed, 17 Oct 2012 06:50:19 -0500 "Edward K. Ream" wrote: > On Sun, Oct 14, 2012 at 9:40 PM, Terry Brown wrote: > > Is there are function to return the current commander (c), defined as the > > commander in the visible tab in the tabbed (default) interface? >

Re: current commander

2012-10-17 Thread Edward K. Ream
On Sun, Oct 14, 2012 at 9:40 PM, Terry Brown wrote: > Is there are function to return the current commander (c), defined as the > commander in the visible tab in the tabbed (default) interface? What's your use case for this? That is, how can it be that the c you desire is not t

current commander

2012-10-14 Thread Terry Brown
Is there are function to return the current commander (c), defined as the commander in the visible tab in the tabbed (default) interface? Thanks, Terry -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send em