Python tkinter how to open new windows 🗔

preview_player
Показать описание
python how to open a new window tkinter GUI tutorial for beginners

#python #new #window #tkinter #GUI #tutorial #beginners
Рекомендации по теме
Комментарии
Автор

from tkinter import *

def create_window():
new_window = Tk() #Toplevel() = new window 'on top' of other windows, linked to a 'bottom' window
#Tk() = new independent window
#old_window.destroy() #close out of old window

old_window = Tk()

Button(old_window, text="create new window", command=create_window).pack()

old_window.mainloop()

BroCodez
Автор

i never like a video, but this is so good information, thanks alot, it feels good to see creators like you teach us. thanks again

motis
Автор

This was very helpful with little baby beginners like me. Thank you.

littlehibiscus
Автор

Finally some one who know how to teach a class with out all the other bs, thank you sir!!!

yahyaaabdulaliibnmaryam
Автор

Great tutorial, good explanation without being too long.

simplefloor
Автор

Thanks boss... Exactly what I was looking for

evelyn_ryan
Автор

IM A BRO NOW LETS GOOO :) love the video

goofygoovber
Автор

thanks for the tutorial really helped to understand the basics of opening and closing windows but can you tell me how to make the top window also have a button that says "new window" so that u can infinitly open and close windows?

yoakDev
Автор

Can you make a video on how to close the windows in the def i cant find a way

Gigetto
Автор

Thx a lot brother it helped a lot .
But i had a problem can you pls tell like i wanna make a calculator then where do i have to write the code?
After the old window main loop or somewhere else?

shanereacts