Learn Python tkinter GUI frames easy ⚰️

preview_player
Показать описание
Python tkinter frame GUI tutorial for beginners

#Python #tkinter #frame #widget #GUI #tutorial #beginners
Рекомендации по теме
Комментарии
Автор

# frame = a rectangular container to group and hold widgets

from tkinter import *

window = Tk()

frame = Frame(window, bg="pink", bd=5, relief=SUNKEN)
frame.pack()

Button(frame, text="W", font=("Consolas", 25), width=3).pack(side=TOP)
Button(frame, text="A", font=("Consolas", 25), width=3).pack(side=LEFT)
Button(frame, text="S", font=("Consolas", 25), width=3).pack(side=LEFT)
Button(frame, text="D", font=("Consolas", 25), width=3).pack(side=LEFT)

window.mainloop()

BroCodez
Автор

Thanjks again Bro. I've gone through all your vids from 1 up to Python GUI frames. I like the way you teach, step by step. Looking forward to continuing learning Python.

harlanshafer
Автор

I have watched your Java videos where you created 5 Panels (JPanels),
which were then added to a JFrame, each at a different position North, South, East, West and Center.
Giving great control because then you add components to whichever Panel you want.
So, f you want a button on the right side, for instance, you add it to the panel at position East
Is there something like that with Python ? Doesn't seem like it.

Thanks and great video by the way.

RMIT_s
Автор

Thanks bro, saved me a lot of headache

mansouralshamri
Автор

I hate the yt algorithm all the great vid like this is hidden im lucky i found ur videos.

noisyguest
Автор

Hi sir Can we append a window inside a frame in fixed position with minimize an maximize and closing options to the window

madhusudhanm
Автор

learned something new hence commenting

arjunbhardwaj
Автор

Don't use that damn * in tutorials, it's no good! Why this is no obvious!

skystep