最简单的解决方案是
<<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>>") ...
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)