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

Veröffentlicht am: 01 Juni 2020
auf dem Kanal: 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


Auf dieser Seite können Sie das Online-Video Positioning With TKinter Grid System in Python - Python Tutorial(2020) #3 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Anshuman Biswal 01 Juni 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 8,724 Mal angesehen und es wurde von 127 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!