Loading

Paste #pmxscn0go

  1. from kivy.app import App
  2. from kivy.uix.screenmanager import ScreenManager, Screen
  3. from kivy.uix.boxlayout import BoxLayout
  4. from kivy.properties import StringProperty
  5.  
  6. class ScreenManagement(ScreenManager):
  7.     pass
  8.  
  9. class Main(Screen):
  10.     beschriftung=StringProperty(None)
  11.    
  12. class Setup(Screen):
  13.     pass
  14.  
  15. class ShowImage(App):
  16.     def build(self):
  17.         global SM
  18.         SM = self.root
  19.         s = SM.get_screen('main')
  20.         s.beschriftung = 'ShowImage kivi App'
  21.  
  22. if __name__ == '__main__':
  23.     ShowImage().run()

Comments