mirror of https://github.com/kivy/kivy.git
fix lang documentation of Dynamic Classes, order and synthax
This commit is contained in:
parent
d14956e69a
commit
bb6923c5f1
|
@ -293,7 +293,7 @@ The syntax look like:
|
||||||
...
|
...
|
||||||
|
|
||||||
# Multiple inheritance
|
# Multiple inheritance
|
||||||
<NewWidget@Label,ButtonBehavior>:
|
<NewWidget@ButtonBehavior+Label>:
|
||||||
...
|
...
|
||||||
|
|
||||||
The `@` character is used to seperate the name from the classes you want to
|
The `@` character is used to seperate the name from the classes you want to
|
||||||
|
@ -306,7 +306,7 @@ subclass. The Python equivalent would have been:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# Multiple inheritance
|
# Multiple inheritance
|
||||||
class NewWidget(Label, ButtonBehavior):
|
class NewWidget(ButtonBehavior, Label):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
Any new properties, usually added in python code, should be declared first.
|
Any new properties, usually added in python code, should be declared first.
|
||||||
|
|
Loading…
Reference in New Issue