tkinter Text Ctrl+A

self.text.bind("<Control-Key-a>", self.selectText)
self.text.bind("<Control-Key-A>", self.selectText)
    def selectText(self, event):
        self.text.tag_add('sel', '1.0', 'end')
        return 'break'
posted @ 2017-03-22 10:06  idlewith  阅读(417)  评论(0编辑  收藏  举报