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 Жыл бұрын
This is a very deep learning, this is the matric.
@abianchi02265 жыл бұрын
Great lecturer. Very clear, takes nothing for granted. Love the accent too!
@crossfarm41464 жыл бұрын
YET AGAIN BEST F****** VIDEO ON TKINTER AND PYTHON ON THE INTERNET RIGHT NOW!!
@itscoldhere76183 жыл бұрын
Very helpful
@DannyB0Y3054 жыл бұрын
This was great, informative and very well presented. I found exactly what I was looking for
@irishfitz61905 жыл бұрын
What an easy to follow video. Your efforts are appreciated immensely! Subscribed.
@koyeogundare17475 жыл бұрын
Great presentation. I like it. Thank you for making this so simple to follow.
@kristofkallo5 жыл бұрын
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.
@johnphilipjones5 жыл бұрын
I agree Frames is the best way forward when developing more complex GUI layouts. Best wishes Phil
@nishatahmed76464 жыл бұрын
thankyou sir that very much this was very much helpful
@jayshreesalvi48065 жыл бұрын
Thank you very much for such a good quality content video, helped alot
@ThePumbaadk4 жыл бұрын
Just what I was looking for
@nirobahmed55055 жыл бұрын
Thank you so much Sir.................Thanks a lot................
@hudaismail51314 жыл бұрын
Thank you very much
@MaxGoddur6 жыл бұрын
Bravo...well done.
@muzaffarpasha42054 жыл бұрын
very clear..
@nirobahmed55055 жыл бұрын
You deserve gret thanks.............
@SusanAmberBruce6 жыл бұрын
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.
@shuha32164 жыл бұрын
Thanks. Very easy understand! Will you use led control in future with tkinter?
@johnphilipjones4 жыл бұрын
I will put it in the pipeline and make a video on it in the coming weeks. Best wishes Phil
@karanmahajan67006 жыл бұрын
Hi John, can't we use grid and pack for same label
@johnphilipjones6 жыл бұрын
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
@faizankhatri10896 жыл бұрын
Sir, Why did you not use label_pack() in this? And it still worked.
@johnphilipjones6 жыл бұрын
pack() will work but grid() is more flexible than pack() Best wishes Phil
@faizankhatri10896 жыл бұрын
John Philip Jones thank you
@kangsan20143 жыл бұрын
How would you adjust the height on a label frame? I'm having a hard time with that.
@johnphilipjones3 жыл бұрын
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
@legend78904 жыл бұрын
could you make a video over columnconfigure and rowconfigure method?
@johnphilipjones4 жыл бұрын
I will put it in the pipeline and do a video in it. Best wishes Phil
@SusanAmberBruce6 жыл бұрын
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.
@johnphilipjones6 жыл бұрын
Hello Susan, I do not use textbooks just Python and tkinter documentation so cannot comment on suitable textbooks. Sorry. Best wishes Phil
@imherovirat4 жыл бұрын
i want to know about the columnspan.Please explain it or have you already done about it, if so give me the link :)
@johnphilipjones4 жыл бұрын
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.57035 жыл бұрын
Why my professor does not explains like he does
@gizemavc94624 жыл бұрын
can you add the code on txt file i want run in my computer
@johnphilipjones4 жыл бұрын
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