2021-09-28 01:20:22 +00:00
|
|
|
from kivy.app import App
|
|
|
|
from kivy.uix.widget import Widget
|
2021-09-29 19:52:31 +00:00
|
|
|
from kivy.uix.boxlayout import BoxLayout
|
2021-09-28 01:20:22 +00:00
|
|
|
from kivy.config import Config
|
|
|
|
|
2021-09-28 19:23:06 +00:00
|
|
|
from cross import Cross,Cross_painter
|
2021-09-29 19:52:31 +00:00
|
|
|
from status_bar import Status_bar
|
|
|
|
from command_box import Command_box
|
2021-09-28 19:23:06 +00:00
|
|
|
|
2021-09-28 01:20:22 +00:00
|
|
|
# App class
|
|
|
|
class Jam_app(App):
|
|
|
|
# name of .kv file for main interface
|
2021-09-29 19:52:31 +00:00
|
|
|
kv_file="jam.kv"
|
2021-09-28 01:20:22 +00:00
|
|
|
|
|
|
|
def build(self):
|
2021-09-29 19:52:31 +00:00
|
|
|
layout=BoxLayout(orientation="vertical")
|
|
|
|
painter=Cross_painter()
|
|
|
|
status=Status_bar()
|
|
|
|
command=Command_box()
|
|
|
|
layout.add_widget(painter)
|
|
|
|
layout.add_widget(status)
|
|
|
|
layout.add_widget(command)
|
|
|
|
return layout
|
2021-09-28 01:20:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# disable red circles on right click
|
|
|
|
Config.set('input', 'mouse', 'mouse,disable_multitouch')
|
|
|
|
|
|
|
|
# run
|
|
|
|
if __name__ == '__main__':
|
|
|
|
Jam_app().run()
|