In this video I'll show you how to explicitly set the height and width of individual widgets with Kivy. We'll also look at how to set the default height and width of columns and rows in the the GridLayout.
To set the height and width of a widget, we have to set the height and width hint to None:
size_hint_y = None
size_hint_x = None
Then we just set the height and width to whatever you want.
To set the defaults of the GridLayout, we just:
row_force_default=True,
row_default_height=40,
col_force_default=True,
col_default_width=100
And that's all there is to it!
✅ Watch The Kivy Playlist
https://bit.ly/37LrJ27
▶️ Get The Code
https://bit.ly/31QeMjM
✅ Subscribe To My YouTube Channel:
http://bit.ly/2IGzvOR
▶️ See More At:
https://Codemy.com
✅ Join My Facebook Group:
http://bit.ly/2GFmOBz
▶️ Learn to Code at https://Codemy.com
Take $22 off with coupon code: youtube
✅ Buy a Codemy T-Shirt!
http://bit.ly/2VC9WUN