Python Forum
Multiple and dynamic windows confusion in Tkinter
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple and dynamic windows confusion in Tkinter
#1
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?
Reply
#2
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/
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Multiple.ui windows showing at the same time when I only want to show at a time eyavuz21 4 1,018 Dec-20-2022, 05:14 AM
Last Post: deanhystad
  Can not get tkinter to work in Windows 10 via python 3.9 idris03 1 2,328 Nov-03-2020, 03:22 AM
Last Post: deanhystad
  How to work with multiple files and tkinter? philipbergwerf 3 4,596 Aug-31-2020, 12:03 PM
Last Post: ndc85430
  Is there any way to convert a python script (with Tkinter module), to a .exe (Windows moste 3 4,000 May-12-2019, 12:02 PM
Last Post: snippsat
  Multiple Windows jarrod0987 0 1,951 Mar-25-2018, 03:50 AM
Last Post: jarrod0987
  SOLVED: best way to block (wait on) shell calls to multiple windows programs at once? ezdev 0 2,599 Dec-10-2017, 06:42 AM
Last Post: ezdev
  File access confusion python windows PickyBiker 0 3,359 May-08-2017, 05:36 PM
Last Post: PickyBiker

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020