예제 #1
0
button_4 = Button(frame1,
                  text='Play',
                  relief=GROOVE,
                  borderwidth=5,
                  padx=30,
                  pady=20,
                  command=gui_play1)
#showing frame1
frame1.grid(row=0, column=0, padx=20)
#Packing buttons for frame1
button_1.pack(pady=10)
button_2.pack(pady=10)
button_3.pack(pady=10)
button_4.pack(pady=10)
#Binding buttons for frame1
button_2.bind_all("<Key>", key_bind_func)
button_3.bind_all("<Key>", key_bind_func)
button_4.bind_all("<Key>", key_bind_func)

# Creating Frame2
frame2 = LabelFrame(blank, text='Channel 2', padx=5, pady=5)
#Creating Buttons for Frame2
button_5 = Button(frame2,
                  text='Preset',
                  relief=GROOVE,
                  borderwidth=5,
                  padx=30,
                  pady=20,
                  command=preset2)
button_6 = Button(frame2,
                  text='Loop',
예제 #2
0
button_10 = Button(frame2,
                   text='Play',
                   relief=GROOVE,
                   borderwidth=5,
                   padx=30,
                   pady=20)
#showing frame2
frame2.grid(row=0, column=1, padx=20)
#showing buttons for frame2
button_6.pack(pady=10)
button_7.pack(pady=10)
button_8.pack(pady=10)
button_9.pack(pady=10)
button_10.pack(pady=10)

button_10.bind_all("<Key>", play)

# Creating Frame3
frame3 = LabelFrame(blank, text='Channel 3', padx=5, pady=5)
#Creating Buttons for Frame3
button_11 = Button(frame3,
                   text='Preset',
                   relief=GROOVE,
                   borderwidth=5,
                   padx=30,
                   pady=20)
button_12 = Button(frame3,
                   text='Loop',
                   relief=GROOVE,
                   borderwidth=5,
                   padx=30,