def removeShutter(self): shutter = Tk() shutter.geometry("500x300") shutter.title("Remove shutter") shutter_name = Label(shutter, text="shutter name") shutter_com = Label(shutter, text="enter the number of the COM port") shutter_name_entry = Entry(shutter) shutter_com_entry = Entry(shutter) shutter_name.pack() shutter_name_entry.pack() shutter_com.pack() shutter_com_entry.pack() Button(shutter, text="remove shutter", command=lambda: self.removeShutterProces( shutter, shutter_name_entry.get(), shutter_com_entry.get()) ).pack()
def addShutterSettings(): shutter = Tk() shutter.geometry("500x300") shutter.title("Add shutter") shutter_name = Label(shutter, text="shutter name") shutter_position = Label(shutter, text="description of the shutter position") shutter_com = Label(shutter, text="enter the number of the COM port") shutter_name_entry = Entry(shutter) shutter_position_entry = Entry(shutter) shutter_com_entry = Entry(shutter) shutter_name.pack() shutter_name_entry.pack() shutter_position.pack() shutter_position_entry.pack() shutter_com.pack() shutter_com_entry.pack() Button(shutter, text="add shutter", command=lambda: temp_plot.addShutter(shutter, shutter_name_entry.get(), shutter_position_entry.get(), shutter_com_entry.get())).pack()