Tkinter international bind

前端 未结 5 1401
清酒与你
清酒与你 2020-12-11 17:28

Is there a way in Tkinter to bind a combination of keys that will work in all keyboard layouts? (bind by scancode)

For example, I need \'Control-Z\' bin

5条回答
  •  醉酒成梦
    2020-12-11 18:02

    def copy(event):
        print 'Ctrl-C'
        master.clipboard_append('text')
    

    and it works!

提交回复
热议问题