mirror of https://github.com/kivy/kivy.git
doc: added explanation for SoC to guide/lang.rst
This commit is contained in:
parent
bacdf4a9fd
commit
e73bf57807
|
@ -450,8 +450,13 @@ declaration will have the same kv properties.
|
|||
Designing with the Kivy Language
|
||||
--------------------------------
|
||||
|
||||
The code goes in main.py
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
One of aims of the Kivy language is to
|
||||
`Separate the concerns <https://en.wikipedia.org/wiki/Separation_of_concerns>`_
|
||||
of presentation and logic. The presentation (layout) side is addressed by your
|
||||
kv file and logic by your py file.
|
||||
|
||||
The code goes in py files
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Let's start with a little example. First, the Python file named `main.py`:
|
||||
|
||||
|
|
Loading…
Reference in New Issue