Roman_Sarnov

Untitled

Nov 6th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. from kivy.app import App
  2. from kivy.uix.button import Button
  3. from kivy.uix.boxlayout import BoxLayout
  4. from kivymd.theming import ThemeManager
  5. from kivy.core.window import Window
  6. from kivy.uix.widget import Widget
  7.  
  8. class PainterWidget(Widget):
  9. def __init__(self,**kwargs):
  10. super(PainterWidget,self).__init__(**kwargs)
  11.  
  12. class PaintApp(App):
  13. theme_cls = ThemeManager()
  14. title = 'Library MGPK'
  15. def build(self):
  16. self.theme_cls.theme_style = 'Dark'
  17. return PainterWidget()
  18. if __name__ == "__main__":
  19. PaintApp().run()
Add Comment
Please, Sign In to add comment