Binding Ctrl (-) in Python Tkinter

前端 未结 1 668
傲寒
傲寒 2021-01-15 11:03

I have an application with a Text widget, and I want my font to get smaller when the user presses the Control key and the minus key (-).

the code

sel         


        
1条回答
  •  旧巷少年郎
    2021-01-15 11:47

    Try self.bind_all("", self.decreaseFont).

    0 讨论(0)
提交回复
热议问题