View Single Post
Old 01-07-2010, 08:35 AM   #28
Malevol3nt
Human being with feelings
 
Join Date: Sep 2009
Posts: 107
Default

Quote:
Originally Posted by Blechi View Post
Thanks a lot. Works fine.
Also thanks for the link to the GUIbuilder thingy. Makes things a lot easier.
Right, just be careful with the root.destroy() function. I've removed it from the example since closing the GUI with the X button calls that function anyway. If you were to say, put root.destroy() as a function call for one of the buttons, it will do the same thing.

However putting it in the wrong place can sometimes create an infinite loop spawning a few dozen windows, and you have to crash Reaper via the task manager to get rid of them. But it only happens if you don't know what you're doing (I got burned on that one myself )

Edit: Looks like tkinter seems to be a bit buggy, or I'm doing it wrong. For the life of me I can't figure out why sometimes a button activates itself on it's own. And I'm getting infinite loops, windows popping out everywhere. Argh!

Last edited by Malevol3nt; 01-07-2010 at 05:03 PM.
Malevol3nt is offline   Reply With Quote