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
In questa pagina del sito puoi guardare il video online Positioning With TKinter Grid System in Python - Python Tutorial(2020) #3 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Anshuman Biswal 01 giugno 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 8,724 volte e gli è piaciuto 127 spettatori. Buona visione!