最简单的解决方案是
<<ListboxSelect>>在更改选择的同时生成事件:
def updateoptions(self, *args): ... self.listbox.select_set(0) #This only sets focus on the first item. self.listbox.event_generate("<<ListboxSelect>>") ...
最简单的解决方案是
<<ListboxSelect>>在更改选择的同时生成事件:
def updateoptions(self, *args): ... self.listbox.select_set(0) #This only sets focus on the first item. self.listbox.event_generate("<<ListboxSelect>>") ...