Tkinter - Multiple Windows from different modules
gregholmes at my-deja.com
gregholmes at my-deja.com
Mon Nov 20 12:36:41 EST 2000
I don't think both windows can be root windows ( Tk() )
After the first one, subsequent ones need to be Toplevel()
In article <AncS5.69890$Z2.917767 at nnrp1.uunet.ca>,
"Todd Lichty" <twlichty at execulink.com> wrote:
> I am trying to show two windows on the screen with them existing in
> different modules. I.e.
>
> ModuleA.py
>
> class A:
> def __init__(self):
> root = Tk()
> ...setup window...
> root.mainloop()
>
> def showOtherWindow()
> x = ModuleB.b()
> ...do stuff with info returned...
>
> ModuleBB.py:
>
> class B:
> def __init__(self):
> root = Tk()
> ...setup window...
> root.mainloop()
>
> What I want to happen is that when window B is closed, the focu
returns to
> window A and the code in showOtherWindow continues executing.
>
> Thanks in advance,
>
> Todd
>
>
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list