how to start and stop recording with single button
问题 I am having an issue with this code, when I try to run this code with two separate buttons it runs fine but when I try to use only a single button to start and stop the recording by changing its text(label) to start and stop recording the code does not work. The text of the button changes but it does not record anything. import tkinter as tk import threading import pyaudio import wave from tkinter import * import tkinter.font as font from tkinter.filedialog import asksaveasfile class App():