0
During my studies in the Kivy framework, I discovered two attributes of the object BoxLayout
called size_hint_x
and size_hint_y
that by what they say, they fit the size of a widget to the size of the screen (it even makes sense because its translation would be "size tip").
Soon I thought that size_hint_x
and size_hint_y
received only the values True
and False
to turn them on or off. But seeing some code on the internet, I came across numerical values being passed as argument. Example:
widget.size_hint_x = 0.3
widget.size_hint_y = 5
So now goes the title of this Question: What exactly are the attributes size_hint
and what its usefulness ?
Yes I know about it. What I want to know is what exactly does the
(size_hint,x,size_hint_y)
in the application. What are these values ? It is possible to explain this in more detail ?– JeanExtreme002
You asked about
size_hint
, he’s just the reference tosize_hint_x
andsize_hint_y
to set the widget size relative to the child.– gato
All right, I’ll improve the question all right ?
– JeanExtreme002