Skip to content

Instantly share code, notes, and snippets.

@pessi-v
Created April 9, 2018 14:42
Show Gist options
  • Save pessi-v/5acc7462570ba953c3f4cfd077456c40 to your computer and use it in GitHub Desktop.
Save pessi-v/5acc7462570ba953c3f4cfd077456c40 to your computer and use it in GitHub Desktop.
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