-
Notifications
You must be signed in to change notification settings - Fork 0
/
__main__.py
57 lines (48 loc) · 1.38 KB
/
__main__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
from kivy.app import App
from kivy.lang import Builder
from kivy.uix.button import Button
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.label import Label
Builder.load_string('''
<MainMenu>:
orientation: 'vertical'
size_hint_y: .5
Label:
text: 'Welcome to the Ez PhotoBooth!'
# Label:
# text: root.logs
BoxLayout:
orientation: 'horizontal'
size_hint: (1,.3)
Button:
text: 'Choose Printer'
on_press: root.choose_printer()
Button:
text: 'Choose Overlay Image'
on_press: root.choose_overlay()
Button:
text: 'Choose Destination Folder'
on_press: root.choose_destination()
Button:
text: 'Start'
on_press: root.start()
''')
class MainMenu(BoxLayout):
def choose_printer(self):
print("TODO: Find Printer")
def choose_overlay(self):
print("TODO: Select overlay image")
def choose_destination(self):
print("TODO: Set destination directory")
def start(self):
print("TODO: Start watching")
class Photobooth(App):
def build(self):
return MainMenu()
class Notifications(BoxLayout):
def __init__(self):
self.message = 'Welcome to the Ez Photobooth'
def notify(self, message):
self.message = message
if __name__ == '__main__':
Photobooth().run()