Using Frames and Exit Buttons in TKinter and Python - Python Tutorial(2020) #9

preview_player
Показать описание
The Frame widget is very important for the process of grouping and organizing other widgets in a somehow friendly way. It works like a container, which is responsible for arranging the position of other widgets.

It uses rectangular areas in the screen to organize the layout and to provide padding of these widgets. A frame can also be used as a foundation class to implement complex widgets.

Syntax
Here is the simple syntax to create this widget −

w = Frame ( master, option, ... )
Parameters
master − This represents the parent window.

options − Here is the list of most commonly used options for this widget. These options can be used as key-value pairs separated by commas.

#python2020 #tkintergui #madaboutpython #tkintertutorial #tkinterprojects #tkinterinpython #tkinterguitutorial
Рекомендации по теме
Комментарии
Автор

In the definition of myclick the row is 10 and so is the column. But in the widget, it looks like its placed in the immediately next row and column after EXIT, which would be row=1 and column=4. Could you explain the spacing a little bit, please?

davidcollins
Автор

I did this code but "Hello user" displays every time at the start (before press Click_Me Button)

msport