dongfanglong

Untitled

Mar 14th, 2021
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. from kivy.app import App
  2. from kivy.uix.widget import Widget
  3. from kivy.properties import ObjectProperty
  4. from kivy.properties import ListProperty
  5. from kivy.lang import Builder
  6. import io, os
  7.  
  8. '''
  9. By default it will search the local folder for
  10. a .kv file with the same name as the main app.
  11. If the app class name has App in the name just
  12. drop that.
  13. This will force it to use a specific file instead.
  14. '''
  15. Builder.load_file('PaperTicket_v2.kv')
  16.  
  17. class PaperTicketGridLayout(Widget):
  18. pass
  19.  
  20.  
  21. class PaperTicketApp(App):
  22. def build(self):
  23. return PaperTicketGridLayout()
  24.  
  25. if __name__ == '__main__':
  26. PaperTicketApp().run()
  27.  
Add Comment
Please, Sign In to add comment