Python Forum
[Tkinter] calling a new window from a tkinter window
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] calling a new window from a tkinter window
#1
I'm having trouble navigating nested windows calls with tkinter. The first window builds and executes well, with a window.mainloop() statement at at the end to set up the window polling.

But now, when I use a button to call a function, which in turn, opens up a new window, I end up with a parallel window that does not wait for the return values returned by the second function. In this case the second window is just a simple dropdown menu, with user selected choice, which should be returned to the main function. Everything works, except the code that calls the new window doesn't wait, and then execute subsequent code. I started exploring wait_window(), but don't understand how that might help.
Reply


Messages In This Thread
[Tkinter] calling a new window from a tkinter window - by neuroprogrammer - Jul-28-2020, 09:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Tkinter: An image and label are not appearing. emont 7 584 Mar-21-2024, 03:00 PM
Last Post: deanhystad
  Interaction between Matplotlib window, Python prompt and TKinter window NorbertMoussy 3 492 Mar-17-2024, 09:37 AM
Last Post: deanhystad
  [Tkinter] Tkinter Matplotlib Animation Graph not rendering dimidgen 3 551 Mar-12-2024, 02:09 PM
Last Post: deanhystad
  [Tkinter] CTkScrollableDropdown error: bad window path name ".!ctkscrollabledropdown" CopperGenie 1 352 Mar-03-2024, 04:32 AM
Last Post: deanhystad
  [Tkinter] (CLOSED) CTkScrollableDropdown error: bad window path name ".!ctkscrollabledropdown" CopperGenie 4 585 Mar-03-2024, 03:21 AM
Last Post: CopperGenie
  [Tkinter] Tkinter callback exception Ben123 2 545 Feb-17-2024, 06:03 PM
Last Post: deanhystad
  tkinter two windows instead of one jacksfrustration 7 862 Feb-08-2024, 06:18 PM
Last Post: deanhystad
  make widgets disappear from tkinter jacksfrustration 12 1,129 Feb-06-2024, 03:58 PM
Last Post: deanhystad
  Transparent window background, but not text on it muzicman0 7 2,849 Feb-02-2024, 01:28 AM
Last Post: Joically
  pass a variable between tkinter and toplevel windows janeik 10 2,329 Jan-24-2024, 06:44 AM
Last Post: Liliana

Forum Jump:

User Panel Messages

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