Tkinter Basics - The Label Frame Widget

preview_player
Показать описание
The Tkinter Basics video tutorials are primers on the different tools available in Tkinter.

These videos provide a minimal introduction to each tkinter tool, and are designed of beginners who want to start using Tkinter.

Рекомендации по теме
Комментарии
Автор

Good tutorial. So when I make a Label Frame, and put it on a grid, how do I manipulate the frame height and width itself? I tried and it didn't work at all. Here is my code. I don't know what I'm doing wrong. I'm still a novice. Thank you.

from tkinter.ttk import*
from tkinter import *

main_screen = Tk()


#Main Notes Frame
main_notes_menu = LabelFrame(main_screen, padx=5, pady=5, borderwidth=4)
main_notes_menu.grid(padx=10, pady=10, row=0, column=0)



# Inside main Notes Menu

label_1 = Label(main_notes_menu, text="Notes ( )")
label_1.grid(row=0, column=0)

main_screen.mainloop()

kangsan
Автор

How to color the squares on the labelframe?
If you guys know, please share me

forus