Tkinter layout management using place for absolute & relative height width and positioning of widget
Автор: plus2net
Загружено: 2021-09-09
Просмотров: 2214
Описание:
3:00 Relative positioning by using relx and rely
6:58 Understanding anchor option
7:42 positioning of widgets at four corners of window
15:30 Positioning of two widgets with corners touching each other
18:50 Understanding relwidth and relheight
Managing layout by using grid • Tkinter Grid layout management by row & co...
We can place widgets in different places in the window by using absolute positioning in pixels by using x and y coordinates.
Left edge is considered as x = 0 and top edge is considered as y = 0
Position of the widget increases as we move to words right and vertically down direction.
We can position the widget by using relative positioning by using relx and rely. Here the full width and height is considered as 1 and fractions of this are used to position at different locations.
Anchor
By using anchor option we can decide which corner or side of the widget we will use for positioning. Anchor options takes values nw, ne, sw,se, n,s,e,w and center
We can position widgets at 4 corners of window by using relative positioning and anchor option.
We can use same x and y values for two widgets and place them by touching corners without overlapping them. For this we will use anchor position differently.
The height and width of the widget can be managed by using relwidth and relheight options. This will take fraction values where 1 is the full value of height and width of the window.
https://www.plus2net.com/python/tkint...
#tkitnerPlace #layoutmanagement #GUI #python #place #relativePosition #aboslutePosition #tkinterlayout #plus2net #managingLayout
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: