mirror of
https://github.com/kivy/kivy.git
synced 2025-02-26 20:46:29 +00:00
Merge pull request #1182 from Zen-CODE/Doc_English_Improvements_40
doc: revisions to gettingstarted/properties.rst
This commit is contained in:
commit
ba5719f7f9
@ -1,7 +1,7 @@
|
|||||||
Properties
|
Properties
|
||||||
----------
|
----------
|
||||||
|
|
||||||
Kivy introduce a new way of declaring the properties within a class.
|
Kivy introduces a new way of declaring properties within a class.
|
||||||
Before::
|
Before::
|
||||||
|
|
||||||
class MyClass(object):
|
class MyClass(object):
|
||||||
@ -15,9 +15,9 @@ After, using Kivy's properties::
|
|||||||
numeric_var = NumericProperty(1)
|
numeric_var = NumericProperty(1)
|
||||||
|
|
||||||
Theses properties implement the `Observer pattern
|
Theses properties implement the `Observer pattern
|
||||||
<http://en.wikipedia.org/wiki/Observer_pattern>`_. You can:
|
<http://en.wikipedia.org/wiki/Observer_pattern>`_. They help you to:
|
||||||
|
|
||||||
- Allow manipulating your widgets in kv language more easily
|
- Easily manipulate widgets defined in the :doc:`/guide/lang`
|
||||||
- Automatically observe any changes and dispatch functions/code accordingly
|
- Automatically observe any changes and dispatch functions/code accordingly
|
||||||
- Check and validate values
|
- Check and validate values
|
||||||
- Optimize memory management
|
- Optimize memory management
|
||||||
|
Loading…
x
Reference in New Issue
Block a user