26 lines
535 B
Python
26 lines
535 B
Python
from kivy.app import App
|
|
from kivy.uix.widget import Widget
|
|
from kivy.config import Config
|
|
|
|
from cross import Cross,Cross_painter
|
|
|
|
# App class
|
|
class Jam_app(App):
|
|
# name of .kv file for main interface
|
|
#kv_file="jam.kv"
|
|
|
|
def build(self):
|
|
parent=Widget()
|
|
self.cross_painter=Cross_painter()
|
|
parent.add_widget(self.cross_painter)
|
|
return parent
|
|
|
|
|
|
|
|
# disable red circles on right click
|
|
Config.set('input', 'mouse', 'mouse,disable_multitouch')
|
|
|
|
# run
|
|
if __name__ == '__main__':
|
|
Jam_app().run()
|