The tkinter Grid Geometry Manager

  Рет қаралды 42,937

John Philip Jones

John Philip Jones

Күн бұрын

This video shows an alternative and more flexible way for placing widgets onto a tkinter window. It uses the grid() method that treats the window as being 'divided up' into rows and columns.

Пікірлер: 36
@samiadel7043
@samiadel7043 Жыл бұрын
This is a very deep learning, this is the matric.
@abianchi0226
@abianchi0226 5 жыл бұрын
Great lecturer. Very clear, takes nothing for granted. Love the accent too!
@crossfarm4146
@crossfarm4146 4 жыл бұрын
YET AGAIN BEST F****** VIDEO ON TKINTER AND PYTHON ON THE INTERNET RIGHT NOW!!
@itscoldhere7618
@itscoldhere7618 3 жыл бұрын
Very helpful
@DannyB0Y305
@DannyB0Y305 4 жыл бұрын
This was great, informative and very well presented. I found exactly what I was looking for
@irishfitz6190
@irishfitz6190 5 жыл бұрын
What an easy to follow video. Your efforts are appreciated immensely! Subscribed.
@koyeogundare1747
@koyeogundare1747 5 жыл бұрын
Great presentation. I like it. Thank you for making this so simple to follow.
@kristofkallo
@kristofkallo 5 жыл бұрын
An interesting fact. You can place two widgets in the same grid cell, but the one you place later will cover the one you placed before since they use the same space. You can test that both widgets you gridded into the same cell are indeed in the cell: use different sticky values ('e' and 'w' for example) with proper configuration (the column configured to have a min size big enough) and you will see that they are there. So in theory, you could place elements like this, but it is confusing and hardly manageable. The best practice when you need to place more things in a cell is to place a frame in it and then pack/grid the widgets into that frame.
@johnphilipjones
@johnphilipjones 5 жыл бұрын
I agree Frames is the best way forward when developing more complex GUI layouts. Best wishes Phil
@nishatahmed7646
@nishatahmed7646 4 жыл бұрын
thankyou sir that very much this was very much helpful
@jayshreesalvi4806
@jayshreesalvi4806 5 жыл бұрын
Thank you very much for such a good quality content video, helped alot
@ThePumbaadk
@ThePumbaadk 4 жыл бұрын
Just what I was looking for
@nirobahmed5505
@nirobahmed5505 5 жыл бұрын
Thank you so much Sir.................Thanks a lot................
@hudaismail5131
@hudaismail5131 4 жыл бұрын
Thank you very much
@MaxGoddur
@MaxGoddur 6 жыл бұрын
Bravo...well done.
@muzaffarpasha4205
@muzaffarpasha4205 4 жыл бұрын
very clear..
@nirobahmed5505
@nirobahmed5505 5 жыл бұрын
You deserve gret thanks.............
@SusanAmberBruce
@SusanAmberBruce 6 жыл бұрын
For anyone interested in building GUI's for python; I found some software that helps in the building process, it's called PAGE and I installed it on windows in C:/ drive. First one needs to download Tcl and install it from www.activestate.com/activetcl/downloads and then download PAGE from sourceforge.net/projects/page/ and install it. PAGE generates python script for the GUI, which can then have it's functionality added.
@shuha3216
@shuha3216 4 жыл бұрын
Thanks. Very easy understand! Will you use led control in future with tkinter?
@johnphilipjones
@johnphilipjones 4 жыл бұрын
I will put it in the pipeline and make a video on it in the coming weeks. Best wishes Phil
@karanmahajan6700
@karanmahajan6700 6 жыл бұрын
Hi John, can't we use grid and pack for same label
@johnphilipjones
@johnphilipjones 6 жыл бұрын
Hello Karan, Do not mix grid with pack it will cause all kinds of problems. I recommend that you always use the grid method, Best wishes Phil
@faizankhatri1089
@faizankhatri1089 6 жыл бұрын
Sir, Why did you not use label_pack() in this? And it still worked.
@johnphilipjones
@johnphilipjones 6 жыл бұрын
pack() will work but grid() is more flexible than pack() Best wishes Phil
@faizankhatri1089
@faizankhatri1089 6 жыл бұрын
John Philip Jones thank you
@kangsan2014
@kangsan2014 3 жыл бұрын
How would you adjust the height on a label frame? I'm having a hard time with that.
@johnphilipjones
@johnphilipjones 3 жыл бұрын
A frame can contain a label. The size of the label is defined by the size of the text allocated to it. Best wishes Phil
@legend7890
@legend7890 4 жыл бұрын
could you make a video over columnconfigure and rowconfigure method?
@johnphilipjones
@johnphilipjones 4 жыл бұрын
I will put it in the pipeline and do a video in it. Best wishes Phil
@SusanAmberBruce
@SusanAmberBruce 6 жыл бұрын
I have the Tkinter 8.5 reference and Python and Tkinter Programing by John E. Grayson, however I am wondering if you know of any books that deal with tkinter from the point of view of useing it in Python 3.5/6.
@johnphilipjones
@johnphilipjones 6 жыл бұрын
Hello Susan, I do not use textbooks just Python and tkinter documentation so cannot comment on suitable textbooks. Sorry. Best wishes Phil
@imherovirat
@imherovirat 4 жыл бұрын
i want to know about the columnspan.Please explain it or have you already done about it, if so give me the link :)
@johnphilipjones
@johnphilipjones 4 жыл бұрын
Assume you have three rows and two columns on a tkinter window. Place two buttons in the first row one in each column. Place two buttons in the second row again one in each column. Place another button in the third row and set its columnspan option to 2. This will results in a button twice as wide as the other four meaning it takes up the space of the two columns. Best wishes Phil
@serhatb.5703
@serhatb.5703 5 жыл бұрын
Why my professor does not explains like he does
@gizemavc9462
@gizemavc9462 4 жыл бұрын
can you add the code on txt file i want run in my computer
@johnphilipjones
@johnphilipjones 4 жыл бұрын
I intend to upload all of the code to the supporting website in the near future. The website is www.PythonByteSize.com Best wishes Phil
Designing a Simple tkinter GUI
11:08
John Philip Jones
Рет қаралды 12 М.
The Entry widget and StringVar()
18:54
John Philip Jones
Рет қаралды 23 М.
Violet Beauregarde Doll🫐
00:58
PIRANKA
Рет қаралды 50 МЛН
大家都拉出了什么#小丑 #shorts
00:35
好人小丑
Рет қаралды 81 МЛН
Fullscreen window using tkinter
13:52
John Philip Jones
Рет қаралды 33 М.
Introduction to the Python tkinter button widget
11:10
John Philip Jones
Рет қаралды 14 М.
How to Inherit from a Python tkinter Frame
31:12
John Philip Jones
Рет қаралды 25 М.
Everything Starts with a Note-taking System
21:23
Mischa van den Burg
Рет қаралды 247 М.
The grid layout method in tkinter
22:44
Atlas
Рет қаралды 30 М.
Violet Beauregarde Doll🫐
00:58
PIRANKA
Рет қаралды 50 МЛН