I have two classes with produce two separate GUI windows. I am struggling to implement a situation where e.g. if a button is pressed in the first GUI, it adds a label to the second GUI after run-time. Could someone please provide me with a solution to this?
Class CustomerOrder:
def __init__(self, master):
self.master = master
master.title("Customer Order GUI")
self.completedButton1 = Label(master,text=" Place Order:")
self.completedButton1.pack(side=TOP)
root = Tk()
my_gui = CustomerOrder(root)
root.mainloop()
class baristaPage(tk.Frame):
def __init__(self, master):
self.master = master
master.title("baristaPage")
self.baristaPage = Label(text="Barista Page")
self.baristaPage.place(x=0,y=0)
dashboard = Label(text="Customer Queue System")
dashboard.place(x=0,y=80)
root = Tk()
my_gui = baristaPage(root)
root.mainloop()