Is there a detailed property list for the control?

12 weergaven
Naar het eerste ongelezen bericht

so cool

ongelezen,
16 mei 2022, 03:07:0116-05-2022
aan Kivy users support
e.g. button

text ,pos_hint ,id

so cool

ongelezen,
16 mei 2022, 03:09:4816-05-2022
aan 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

ongelezen,
16 mei 2022, 09:52:0716-05-2022
aan 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.

 

Allen beantwoorden
Auteur beantwoorden
Doorsturen
0 nieuwe berichten