Python Forum

Full Version: Multiple and dynamic windows confusion in Tkinter
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

here is what I am trying to do:

I would like to have a window (let's call it MainWindow) displaying some information (namely a String and four numbers each on their own Label).
Also in the window there is to be a button. Upon clicking this button a new window (ConfigWindow) is to open up, with a few entry fields and another button (corresponding to the values in MainWindow).
These entry fields can be used to input new values. And upon clicking the button the ConfigWindow closes and the values are passed on to the MainWindow where they are displayed. Basically updating the values in MainWindow by means of a secondary window.

Stackoverflow provided me with a code example on how to create the windows (using an instance of two seperate classes), so that isn't really the problem... but I am rather confused as to how to get the values from the instance of ConfigWindow into that of MainWindow.

So now on to the second problem:
Is it possible to dynamicall grow a window? The idea is to dynamicall add new frames to the MainWindow.
The idea is somewhat like describing the different stages of a long journey.
Every stage has a start and a finish. And these values get displayed in their own frame.
Is it possible to dynamically add these new frames into the existing window?
I'm quitting for the night, but will pick this up later.
In the mean time, look at hiding windows here: http://www.blog.pythonlibrary.org/2012/0...-a-window/