0
0 комментариев

[apcode language=»python»]

from kivy.app import App
from kivy.uix.button import Button
 class KnopkaApp(App):
    def build(self):
        return Button(text = "Press on me",
            font_size = 35
            on_press = self.btn_press)
    def btn_press(self, instance):
        print("Ее бьют")
        instance.text = "F*ck, it`s painfully"
if __name__ == "__main__":
    KnopkaApp().run()

[/apcode]

Решенный вопрос
Добавить комментарий