mirror of https://github.com/kivy/kivy.git
Revisions to gettingstarted/properties.rst
This commit is contained in:
parent
70f0080f16
commit
7a55290d0e
|
@ -1,7 +1,7 @@
|
|||
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::
|
||||
|
||||
class MyClass(object):
|
||||
|
@ -15,9 +15,9 @@ After, using Kivy's properties::
|
|||
numeric_var = NumericProperty(1)
|
||||
|
||||
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
|
||||
- Check and validate values
|
||||
- Optimize memory management
|
||||
|
|
Loading…
Reference in New Issue