Created
March 28, 2018 20:11
-
-
Save thejohncotton/edbf2abc77e672077150926bb4706ab9 to your computer and use it in GitHub Desktop.
GUI for samplerbox
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
from guizero import App, Combo, Text, CheckBox, ButtonGroup, PushButton, info | |
def do_booking(): | |
info("Booking", "Thank You For Booking!") | |
# print(film_choice.value) | |
# print(vip_seat.value) | |
# print (row_choice.value) | |
def set_sample_label(): | |
print("set sample_name to file name") | |
def sample_next(): | |
print("next") | |
def sample_prev(): | |
print("previous") | |
def set_midi(): | |
print(midi_channel.value) | |
app = App(title="SamplerBox", width=375, height=200, layout="grid") | |
title_text = Text(app, text="Sampler Box", size=40, color="forestGreen", grid=[2,0]) | |
midi_text = Text(app, text="Midi Channel", grid=[1,6], align="left") | |
midi_channel = Combo(app, grid=[2,6], command=set_midi, options=["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16"], align="left") | |
# vip_seat = CheckBox(app, text="Vip Seat?", grid=[1,1]) | |
# seat_description = Text(app, text="Seat type:", grid=[0,1]) | |
# row_choice = ButtonGroup(app, options=[ ["Front", "F"], ["Middle", "M"],["Back", "B"] ], selected="M", horizontal=True, grid=[1,2], align="left") | |
# row_description = Text(app, text="Seat Location:", grid=[0,2]) | |
sample_name = Text(app, text="SAW_001", size=12, grid=[2,3], color="blue" ) | |
prev_sample = PushButton(app, command=sample_prev, text="<--", grid=[1,4]) | |
next_sample = PushButton(app, command=sample_next, text="-->", grid=[3,4]) | |
app.display() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment