tk.Button(window, text=text, font=("Arial", 18), command=lambda t=text: button_click(t))\ .grid(row=r, column=c, sticky="nsew", padx=5, pady=5) ...
You will create a small graphical user interface for starting your webcam and plotting data from the camera. We'll use Qt for the GUI, but for simplicity we'll borrow some high-level camera/image ...