Positioning With TKinter Grid System in Python - Python Tutorial(2020) #3

Publicado em: 01 Junho 2020
no canal de: Anshuman Biswal
8,724
127

In this video you will learn how to position Labels using the Grid function in TKinter and Python
The Grid geometry manager puts the widgets in a 2-dimensional table. The master widget is split into a number of rows and columns, and each “cell” in the resulting table can hold a widget.

The grid manager is the most flexible of the geometry managers in Tkinter. If you don’t want to learn how and when to use all three managers, you should at least make sure to learn this one.

The grid manager is especially convenient to use when designing dialog boxes. If you’re using the packer for that purpose today, you’ll be surprised how much easier it is to use the grid manager instead. Instead of using lots of extra frames to get the packing to work, you can in most cases simply pour all the widgets into a single container widget, and use the grid manager to get them all where you want them. (I tend to use two containers; one for the dialog body, and one for the button box at the bottom.

Creating this layout using the pack manager is possible, but it takes a number of extra frame widgets, and a lot of work to make things look good. If you use the grid manager instead, you only need one call per widget to get everything laid out properly (see next section for the code needed to create this layout

Previous Video in case you Missed it !
   • Setup Visual Studio Code (Windows 10)...  

VSCode and some Great Extensions to add
   • Setup Visual Studio Code (Windows 10)...  

#python2020 #tkintergui #madaboutpython #tkintertutorial #tkinterprojects #tkinterinpython #tkinterguitutorial


Nesta página do site você pode assistir ao vídeo on-line Positioning With TKinter Grid System in Python - Python Tutorial(2020) #3 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Anshuman Biswal 01 Junho 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 8,724 vezes e gostou 127 espectadores. Boa visualização!