Python Forum
Help with multi-window system
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with multi-window system
#2
Multiple windows in a GUI has fallen out of favor and most designs have one window with a way to move between multiple views.

In tkinter you can have multiple top level windows but only one root/main window. The root window is made by calling Tk(). This creates a window and initializes the event loop. Additional top level windows are made using TopLevel(). When you exit the root window you exit Tk and all the other top level windows close automatically.

I don't understand your "first experiment". Are your running multiple Python executables, multiple threads, multiple processes? You can only run one mainloop() and you can only create one root window in Python. How are you running these independent windows?
Reply


Messages In This Thread
Help with multi-window system - by garynewport - Mar-14-2022, 01:01 PM
RE: Help with multi-window system - by deanhystad - Mar-14-2022, 03:54 PM
RE: Help with multi-window system - by garynewport - Mar-15-2022, 09:59 AM
RE: Help with multi-window system - by deanhystad - Mar-16-2022, 03:05 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is there a way to call and focus any popup window outside of the main window app? Valjean 6 2,161 Oct-02-2023, 04:11 PM
Last Post: deanhystad
  Pyspark Window: perform sum over a window with specific conditions Shena76 0 1,287 Jun-13-2022, 08:59 AM
Last Post: Shena76
  Difference between os.system("clear") and os.system("cls") chmsrohit 7 16,922 Jan-11-2021, 06:30 PM
Last Post: ykumar34
Question Difference between Python's os.system and Perl's system command Agile741 13 7,135 Dec-02-2019, 04:41 PM
Last Post: Agile741
  run command on system with multi qoutes evilcode1 16 6,940 Aug-31-2018, 05:19 PM
Last Post: evilcode1

Forum Jump:

User Panel Messages

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