Giving a value to weight is useful for telling tkinter how much space a widget should take up. So for example, if widget A has a weight of 1 and widget B has a weight of 2, then widget B will get more space given to it by tkinter. Another benefit of weight (and using the grid manager in general) is that tkinter handles the resizing of widgets itself when the window is resized.
this was helpful, not sure it will change how i code, but, perhaps it will provide more options when structuring my programs
excellent tutorial, thanks
Hi jobin... we miss you a lot.. and hope you didn't stop your teaching videos and we all wait for more and more videos from you
Hi Bentsion Ben-David - I plan on making and uploading more videos soon. Thanks!
I admit i can't wait for more videos from you.. you are the best mentor of tkinter i've till now.. and solving me many problems 🙏🏻🙏🏻🙏🏻
thanks!
When we can use this wheight?
Giving a value to weight is useful for telling tkinter how much space a widget should take up. So for example, if widget A has a weight of 1 and widget B has a weight of 2, then widget B will get more space given to it by tkinter. Another benefit of weight (and using the grid manager in general) is that tkinter handles the resizing of widgets itself when the window is resized.
Thanks a lot 🙏🏻🙏🏻🙏🏻