Re: Tkinter widgets into classes.

2014-02-02 Thread Christian Gollwitzer
Am 01.02.14 20:43, schrieb Lewis Wood: I was wandering if I could dynamically change my GUI and after a few searches on Google found the grid_remove() function. What I'm wandering now is if there is a way to group a lot of widgets up into one, and then use the one grid_remove function which

Re: Tkinter widgets into classes.

2014-02-02 Thread Christian Gollwitzer
Am 02.02.14 00:07, schrieb Lewis Wood: It does, this is the whole code: from tkinter import * root=Tk() root.title(Second Root Testing) def secondwindow(): root2=Tk() root2.mainloop() button1=Button(root,text=Root2,command=secondwindow).grid(row=0,column=0) root.mainloop() I

Re: Tkinter widgets into classes.

2014-02-02 Thread Lewis Wood
Thanks all who replied, will look further into megawidgets and the Toplevel() function. Is there a way to get a separate window to return something when closed? -- https://mail.python.org/mailman/listinfo/python-list

Re: Tkinter widgets into classes.

2014-02-02 Thread David Hutto
I just happened to find this link: http://effbot.org/tkinterbook/ through this link: https://wiki.python.org/moin/TkInter which ALL happened to stem from this link: https://www.google.com/search?client=ubuntuchannel=fsq=python+tkinter+tutorialsie=utf-8oe=utf-8 On Sun, Feb 2, 2014 at 3:38

Tkinter widgets into classes.

2014-02-01 Thread Lewis Wood
I was wandering if I could dynamically change my GUI and after a few searches on Google found the grid_remove() function. What I'm wandering now is if there is a way to group a lot of widgets up into one, and then use the one grid_remove function which will remove them all. Is it possible to

Re: Tkinter widgets into classes.

2014-02-01 Thread archie65
On Saturday, 1 February 2014 19:43:18 UTC, Lewis Wood wrote: I was wandering if I could dynamically change my GUI and after a few searches on Google found the grid_remove() function. What I'm wandering now is if there is a way to group a lot of widgets up into one, and then use the one

Re: Tkinter widgets into classes.

2014-02-01 Thread archie65
You become less of a a faget and stop sucking granni tranni pussi dis shud help u lewl -- https://mail.python.org/mailman/listinfo/python-list

Re: Tkinter widgets into classes.

2014-02-01 Thread Lewis Wood
Oh and another question, say I make another window in the program itself using this: def secondwindow(): root2=Tk() root2.mainloop() Would it be possible for me to use some code which would return True if one of these windows is currently up, or return False if the window is not up? --

Re: Tkinter widgets into classes.

2014-02-01 Thread Dave Angel
Lewis Wood fluttershy...@gmail.com Wrote in message: Oh and another question, say I make another window in the program itself using this: def secondwindow(): root2=Tk() root2.mainloop() Would it be possible for me to use some code which would return True if one of these

Re: Tkinter widgets into classes.

2014-02-01 Thread Lewis Wood
On Saturday, 1 February 2014 21:52:51 UTC, Dave Angel wrote: Lewis Wood fluttershy...@gmail.com Wrote in message: Oh and another question, say I make another window in the program itself using this: def secondwindow(): root2=Tk() root2.mainloop() Would it

Re: Tkinter widgets into classes.

2014-02-01 Thread Dave Angel
Lewis Wood fluttershy...@gmail.com Wrote in message: (deleting doublespaced googlegroups trash) To put it another way, you only want one mainloop in your code. -- DaveA But I can click the button Multiple times and it will create multiple windows? Not using the function you

Re: Tkinter widgets into classes.

2014-02-01 Thread Lewis Wood
On Saturday, 1 February 2014 22:26:17 UTC, Dave Angel wrote: Lewis Wood fluttershy...@gmail.com Wrote in message: (deleting doublespaced googlegroups trash) To put it another way, you only want one mainloop in your code. -- DaveA But I can

Re: Tkinter widgets into classes.

2014-02-01 Thread albert visser
On Sun, 02 Feb 2014 00:07:00 +0100, Lewis Wood fluttershy...@gmail.com wrote: On Saturday, 1 February 2014 22:26:17 UTC, Dave Angel wrote: Lewis Wood fluttershy...@gmail.com Wrote in message: (snip) DaveA It does, this is the whole code: from tkinter import * root=Tk()

Re: Tkinter widgets into classes.

2014-02-01 Thread Terry Reedy
Idle, which used tkinter, runs multiple windows in one process with one event loop. There is no reason I know of to run multiple event loops in one process, and if you do, the results will not be documented and might vary between runs or between different systems. Idle can also be run