Binding Ctrl (-) in Python Tkinter

前端 未结 1 667
傲寒
傲寒 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("<Control-minus>", self.decreaseFont).

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