Python Forum
[PyGUI] Switching between two frames using Tkinter
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGUI] Switching between two frames using Tkinter
#2
Put window 1 and 2 into separate Toplevel windows
import tkinter as tk
...
win1 = tk.Toplevel()
Then the login button would also include the command
win1.destroy
or into a function that did the login as well as self destruct, and load new window.

https://effbot.org/tkinterbook/toplevel.htm
Recommended Tutorials:
Reply


Messages In This Thread
RE: Switching between two frames using Tkinter - by metulburr - Jul-17-2019, 10:53 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Issue with GUI screen switching in Python QT5 code greenelephant 1 257 Apr-04-2024, 09:58 PM
Last Post: deanhystad
  Switching from tkinter to gtk is difficult! snakes 1 1,471 Aug-08-2022, 10:35 PM
Last Post: woooee
  [Tkinter] Unable to Access global Variable when switching between frames tziyong 1 3,490 Nov-03-2019, 01:08 AM
Last Post: balenaucigasa
  [Tkinter] Call a function when switching layouts 4096 0 3,546 Sep-22-2019, 07:39 PM
Last Post: 4096
  [Tkinter] switching frames nick123 2 7,930 Apr-18-2019, 04:50 PM
Last Post: francisco_neves2020
  [Tkinter] Multiple frames with tkinter - How to make them run on fullscreen mode eabs86 3 18,278 Sep-20-2018, 01:27 AM
Last Post: eabs86
  Problem with pygame not switching the mouse image Mondaythe1st 6 6,768 Jul-26-2017, 10:53 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

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