Станислав Каблуков
Kivy
from kivy.properties import *
from date time import date
my_int = NumericProperty(42)
my_string = StringProperty('My string')
my_dict = DictProperty({'key': 'value'})
my_obj = ObjectProperty(date())
my_ref = referenceListProperty(
my_int, my_string, my_dict, my_obj
)
MyRootWidget:
BoxLayout:
Button:
Button:
MyWidget: cols: len(some_data_from_python_file) on_size: my_callback_method pos: self.center_x / 2, self.center_y * 2
root = MyRootWidget() box = BoxLayout() box.add_widget(Button()) box.add_widget(Button()) root.add_widget(box)
Работа с текстом
Label
1.Compile Python and Modules
2. Create Xcode project
3. Insert your code in project
4. Link Python and modules
5. Customize (title, icons, etc)
6. Try build