bind <Button-3><Alt>
Agent Drek
drek at MonsterByMistake.Com
Sun Dec 19 13:17:28 EST 1999
Hey there...
I want to have a bunch of Checkbuttons that are bound to alt-rightclick...
I can't figure out the syntax to do a multiple bind <Button-3><Alt>
thanks for any pointers you can give me.
I've got this far with the newsgroup archives and the doc's:
#!/usr/bin/env python
from Tkinter import *
root = Tk()
def callback(event):
event.widget.toggle()
frame = Checkbutton(root, state='disabled')
# XXX put Alt-Button-3 here somehow...
frame.bind("<Button-3>", callback)
frame.pack()
root.mainloop()
More information about the Python-list
mailing list