-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgui.py
More file actions
38 lines (29 loc) · 717 Bytes
/
gui.py
File metadata and controls
38 lines (29 loc) · 717 Bytes
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
import tkinter as tk
from recordbutton import *
from sicutter import *
from wavtoflac import convert
from quotachecker import check
from organizer import *
from parser import writer
root = tk.Tk()
global_recording_obj = None
def update_btn():
if btn_text.get() == "Record":
btn_text.set("Stop Recording")
robj = my_start_recording()
global global_recording_obj
global_recording_obj = robj
else:
my_stop_recording(global_recording_obj)
cut()
convert()
check()
transcribe()
writer()
btn_text.set("Record")
btn_text = tk.StringVar()
btn = tk.Button(root, textvariable=btn_text, command=update_btn)
btn.config( height = 100, width = 100 )
btn_text.set("Record")
btn.pack()
root.mainloop()