getting selected value of Combobox python
问题 Hi I have the following code def create(self): geo = StringVar() city = ttk.Combobox(gui, textvariable=geo,state="readonly") city.config(values=self.geo) city.pack() city.bind("<<ComboboxSelected>>", self.cityselection) def cityselection(self,event): selected=event print(selected) I want to send the selected value of from the Combobox to cityselection function but when I print it I only get VirtualEvent event x=0 y=0 and it does not matter which value I choose I will always get the above