[Pythonmac-SIG] Accessing front window in IDE

Joseph J. Strout joe@strout.net
Mon, 11 Oct 1999 10:52:28 -0700


At 11:33 AM +0200 10/11/99, Jack Jansen wrote:

>More-or-less. I'm thinking along the lines of...
>IDE_application
>    frontwindow() -> IDE_window
>    getwindowbyname(name) -> IDE_window
>    openwindow(filename) -> IDE_window
>    ...
>IDE_window
>    getselection() -> IDE_text
>    gettextrange(from, to) ->IDE_text
>    setselection(from, to)
>    ...
>IDE_text
>    get() -> string
>    set(string)
>    setcolor(r, g, b)
>    ...

But then, how is this any different from mucking about with IDE 
widgets, which is what I thought we wanted to avoid?  The IDE objects 
already have methods like those above; apart from the names, I don't 
see much difference.

Cheers,
-- Joe

,------------------------------------------------------------------.
|    Joseph J. Strout           Biocomputing -- The Salk Institute |
|    joe@strout.net             http://www.strout.net              |
`------------------------------------------------------------------'