-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add placeholder functions for main app
- Loading branch information
Showing
2 changed files
with
47 additions
and
32 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,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 | ||
|
||
class EzPb(App): | ||
def build(self): | ||
layout = BoxLayout( | ||
orientation='vertical') | ||
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") | ||
|
||
welcome = Label(text='Welcome to the Ez PhotoBooth!') | ||
def choose_destination(self): | ||
print("TODO: Set destination directory") | ||
|
||
def start(self): | ||
print("TODO: Start watching") | ||
|
||
class Photobooth(App): | ||
def build(self): | ||
return MainMenu() | ||
|
||
start = Button(text='Start', size_hint=(.2, .2)) | ||
|
||
layout.add_widget(welcome) | ||
layout.add_widget(start) | ||
class Notifications(BoxLayout): | ||
def __init__(self): | ||
self.message = 'Welcome to the Ez Photobooth' | ||
|
||
return layout | ||
def notify(self, message): | ||
self.message = message | ||
|
||
if __name__ == '__main__': | ||
EzPb().run() | ||
Photobooth().run() |