doc: added explanation for SoC to guide/lang.rst

This commit is contained in:
Zen-CODE 2014-07-25 15:40:25 +02:00
parent bacdf4a9fd
commit e73bf57807
1 changed files with 7 additions and 2 deletions

View File

@ -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`: