Skip to content

Commit

Permalink
convoluted but works
Browse files Browse the repository at this point in the history
pussinboot committed Oct 21, 2015
1 parent e6cffe9 commit 22943b3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion v0.5.0/midi_config.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@ class ConfigMidi:
def __init__(self,master):
self.master = master
self.queue = None
self.start_fun = lambda : None
# first popup with selection of inputs
# and outputs as well

@@ -19,6 +20,9 @@ def __init__(self,master):
# right click to enter params urself

# when done save to vj_config.ini
def set_start_op(self,fun, *args):
self.start_fun = lambda *args: fun(*args)

def start(self):
# if no device
self.device_selection()
@@ -58,6 +62,7 @@ def return_vals():
#return tor # this wont work..
print(tor)
self.MC.set_inp(tor[0])
self.start_fun()


device_select.protocol("WM_DELETE_WINDOW",return_vals)
@@ -97,6 +102,6 @@ def processIncoming(self):
config = ConfigMidi(root)
midi_thread = MidiClient(root,config)
config.set_MC(midi_thread.MC)
config.set_start_op(midi_thread.start)
config.start()
midi_thread.start()
root.mainloop()

0 comments on commit 22943b3

Please sign in to comment.