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
#3
In a script you can write some text, prompt for input, and perform some action based on the input. In a GUI you cannot use this pattern because the GUI cannot control what the user does next. If you draw a window with a menu the user might close your window and not make a menu selection. This must be allowed. In a GUI application you would draw the window with the menu, and specify a function to call when the menu selection is made.

So if your logic is:
Make menu
Draw menu
Wait for selection
Process selection

You should change it to:
Make menu, bind menu to call Process selection
Draw Menu
Reply


Messages In This Thread
RE: [Tkinter] calling a new window from a tkinter window - by deanhystad - Jul-28-2020, 10:59 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  function in new window (tkinter) Dale22 7 160 Nov-24-2020, 11:28 PM
Last Post: Dale22
  [Tkinter] acceleration of data output in treeview tkinter Vladimir1984 4 157 Nov-21-2020, 03:43 PM
Last Post: Vladimir1984
  [Tkinter] Noob question:Using pyttsx3 with tkinter causes program to stop and close, any ideas? Osman_P 4 567 Nov-14-2020, 10:51 AM
Last Post: Osman_P
  [Tkinter] tkinter global variable chalao_adda 6 184 Nov-14-2020, 05:37 AM
Last Post: chalao_adda
  Tkinter Tsushida 2 123 Nov-12-2020, 09:48 PM
Last Post: buran
  Displaying various layouts in a single window arbiel 6 848 Nov-08-2020, 09:21 PM
Last Post: arbiel
  Latex image too big on tkinter using sympy 4096 1 142 Nov-05-2020, 08:05 AM
Last Post: DPaul
  [Tkinter] On Win 10, no graphical window when run code ma2020uk 10 295 Nov-02-2020, 02:21 PM
Last Post: Larz60+
Photo Tkinter TEXT background image _ShevaKadu 5 864 Nov-02-2020, 10:34 AM
Last Post: joe_momma
  tkinter: Image to Label Maryan 10 314 Oct-29-2020, 01:48 PM
Last Post: joe_momma

Forum Jump:

User Panel Messages

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