Is there a detailed property list for the control?

12 views
Skip to first unread message

so cool

unread,
May 16, 2022, 3:07:01 AM5/16/22
to Kivy users support
e.g. button

text ,pos_hint ,id

so cool

unread,
May 16, 2022, 3:09:48 AM5/16/22
to Kivy users support
I want to get the relevant properties of all controls in order to write a program, but there seems to be no description in the official documentation.

Elliot Garbus

unread,
May 16, 2022, 9:52:07 AM5/16/22
to kivy-...@googlegroups.com

You need to learn to use the documentation.  Kivy is an object orientated framework.  The documentation tells you what any widget is inherited from, and hide the descriptions to provide a list.  Looking at button:

 

 

From the image you can see that Button is derived from ButtonBehavior, and Label.  You can click on these 2 items to go to the relevant page in the documentation.  On the far right of the API there is blue text that says “Hide descriptions” if you click on this, you will get a list. 

You will see Label is derived from Widget. Each building up properties. 

 

An id is not a widget property, but is defined in kv language.  It puts and identifierinto a dictionary called ids that can be accessed from python to accessed a widget.  See: https://kivy.org/doc/stable/api-kivy.lang.html?highlight=lang#ids

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/3b57b74b-7a93-4975-bdec-1db21a8c07c9n%40googlegroups.com.

 

Reply all
Reply to author
Forward
0 new messages