Reencadernar "selecionar tudo" no widget de Texto
Estou trabalhando com o widget de texto e tenho um problema sobre os atalhos da velha escola que Tk us
Ie:
Selecionar tudo:Ctrl + /
vsCtrl + a
Cortar:Ctrl + w
vsCtrl + x
Cópia de:Meta + w
vsCtrl + c
Colar:Ctrl + y
vsCtrl + v
No Windows, todos eles funcionam, exceto Ctrl + a.
1) É possível redirecionar binds, então.bind('<Control-a>')
chamadas já vinculadas Ctrl + /?
2) Tentei "selecionar tudo":
txt_text.bind('<Control-a>', self.ctext_selectall)
Onde
def ctext_selectall(self, callback):
"""Select all text in the text widget"""
self.txt_text.tag_add('sel', '1.0', 'end')
Mas não funciona, pois Ctrl + a funciona por padrão (o cursor vai para o início). Funciona com alguma outra letra não acoplada. Alguma chance de fazer isso funcionar se a solução abaixo de 1 não for possível?