<Control-Shift-Key-0>
<Control-Key-plus>
opere, maCome associare Ctrl +/in python tkinter?
<Control-Key-/>
non lo fa.
non sono in grado di legare Ctrl +/ in python. C'è qualche documentazione di tutte le chiavi possibili?
<Control-Shift-Key-0>
<Control-Key-plus>
opere, maCome associare Ctrl +/in python tkinter?
<Control-Key-/>
non lo fa.
non sono in grado di legare Ctrl +/ in python. C'è qualche documentazione di tutte le chiavi possibili?
Uso <Control-slash>
:
def quit(event):
print "you pressed control-forwardslash"
root.quit()
root = tk.Tk()
root.bind('<Control-slash>', quit) # forward-slash
# root.bind('<Control-backslash>', quit) # backslash
root.mainloop()
Non ho un collegamento a un elenco completo di questi nomi di eventi. Ecco un elenco parziale Ho raccolto:
| event | name |
| Ctrl-c | Control-c |
| Ctrl-/ | Control-slash |
| Ctrl-\ | Control-backslash |
| Ctrl+(Mouse Button-1) | Control-1 |
| Ctrl-1 | Control-Key-1 |
| Enter key | Return |
| | Button-1 |
| | ButtonRelease-1 |
| | Home |
| | Up, Down, Left, Right |
| | Configure |
| window exposed | Expose |
| mouse enters widget | Enter |
| mouse leaves widget | Leave |
| | Key |
| | Tab |
| | space |
| | BackSpace |
| | KeyRelease-BackSpace |
| any key release | KeyRelease |
| escape | Escape |
| | F1 |
| | Alt-h |
ecco un elenco di tutti i codici keysysm TK: https://www.tcl.tk/man/tcl8.6/TkCmd/keysyms.htm
I due che cercava era <Win_L>
e <Win_R>
.
Questa è una risorsa molto utile, usata per trovare come associare rilascio di un tasto Ctrl. – Siwel
Quindi come aggiungere la barra rovesciata come vincolante? –
Usa ''. –
unutbu
Come eseguire il comando + freccia giù per mac? – Joop