Created
April 9, 2018 14:42
-
-
Save pessi-v/5acc7462570ba953c3f4cfd077456c40 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kivy.app import App | |
from kivy.uix.widget import Widget | |
from kivy.core.window import Window | |
from kivy.uix.button import Button | |
class RSTApp(App): | |
pass | |
class MyButton(Button): | |
def change_text1(self): | |
textfield = self.ids['rsttext1'] | |
textfield.text = "whatever" | |
def change_text2(self): | |
textfield = self.ids['rsttext2'] | |
textfield.text = "whatever" | |
if __name__ == '__main__': | |
RSTApp().run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment