This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gpolo
Recipients Nashev, christian.heimes, georg.brandl, gpolo, gvanrossum, kbk, rhettinger, taleinat
Date 2009-04-23.23:46:49
SpamBayes Score 6.115519e-08
Marked as misclassified No
Message-id <1240530410.81.0.0681440482768.issue1794@psf.upfronthosting.co.za>
In-reply-to
Content
That bug report is talking about gtk and modifiers affecting bindings
(in the first comments at least), or maybe it even talks about your
problem but it is so long that I would ask to include the relevant parts
here.

Nevertheless, after reading your comments I came to the conclusion that
doing what you want is very unlikely to happen. To bind something in Tk
you have to a specify a string like "<Control-x>", but to do what you
want, it would have to change to:

import Tkinter

def test(event):
    if event.keysym_num == ord('x') and event.state & 4:
        print "Ctrl-x!"

root = Tkinter.Tk()
root.bind('<KeyPress>', test)
root.mainloop()

Maybe you can test this and verify if it works like you wanted. But I
really don't see IDLE changing to work like that.
History
Date User Action Args
2009-04-23 23:46:51gpolosetrecipients: + gpolo, gvanrossum, georg.brandl, rhettinger, kbk, taleinat, christian.heimes, Nashev
2009-04-23 23:46:50gpolosetmessageid: <1240530410.81.0.0681440482768.issue1794@psf.upfronthosting.co.za>
2009-04-23 23:46:49gpololinkissue1794 messages
2009-04-23 23:46:49gpolocreate