Good morning,
I have a question that I am stuck on. Once I have the class View that deals with the creation of all the widgets of Tkinter: In the View I have created a drop down menu that shows all the COM ports detected on the computer
'''
class View():
controller = Controller() #create instance of controller
self.portVar = tk.StringVar()
self.portVar.set(self.controller.paramset.port[0])
self.port_menu = ttk.OptionMenu(self, self.portVar,
self.controller.paramset.port[0], *self.controller.get_ports())
self.port_menu.pack(in_=self.portframe, side=tk.LEFT)
'''
class Controller: The controller performs a measurement, which requires the COM port for communication with the measuring device.
There is a line for this in the source code here in the controller: '''
self.device = device(port = "Here the selection from the DropdownMenu from View")
'''
How can I bring the DropDown menu selection from the view into the controller without importing the view in the controller class?