Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyPress bindings don't work #37360

Closed
reaux74 mannequin opened this issue Oct 23, 2002 · 2 comments
Closed

KeyPress bindings don't work #37360

reaux74 mannequin opened this issue Oct 23, 2002 · 2 comments

Comments

@reaux74
Copy link
Mannequin

reaux74 mannequin commented Oct 23, 2002

BPO 627798
Files
  • KeyBind.py: Simple Tkinter app with button-1 mouse and keypress bindings
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2002-10-27.13:28:57.000>
    created_at = <Date 2002-10-23.22:52:05.000>
    labels = ['expert-tkinter']
    title = "KeyPress bindings don't work"
    updated_at = <Date 2002-10-27.13:28:57.000>
    user = 'https://bugs.python.org/reaux74'

    bugs.python.org fields:

    activity = <Date 2002-10-27.13:28:57.000>
    actor = 'effbot'
    assignee = 'none'
    closed = True
    closed_date = None
    closer = None
    components = ['Tkinter']
    creation = <Date 2002-10-23.22:52:05.000>
    creator = 'reaux74'
    dependencies = []
    files = ['646']
    hgrepos = []
    issue_num = 627798
    keywords = []
    message_count = 2.0
    messages = ['12919', '12920']
    nosy_count = 2.0
    nosy_names = ['effbot', 'reaux74']
    pr_nums = []
    priority = 'high'
    resolution = 'wont fix'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue627798'
    versions = ['Python 2.2']

    @reaux74
    Copy link
    Mannequin Author

    reaux74 mannequin commented Oct 23, 2002

    Hi,

    I don't think keypress bindings work properly in
    Tkinter. When I bind "<Any-KeyPress>" to a method of a
    Frame-derived class, it does not work under Windows XP
    (not sure about other OSes).

    Here is a code snippet I am using. Please, see the file
    attached for the actual code.

    Thanks,
    ..Roman

    @reaux74 reaux74 mannequin closed this as completed Oct 23, 2002
    @reaux74 reaux74 mannequin added the topic-tkinter label Oct 23, 2002
    @reaux74 reaux74 mannequin closed this as completed Oct 23, 2002
    @reaux74 reaux74 mannequin added the topic-tkinter label Oct 23, 2002
    @effbot
    Copy link
    Mannequin

    effbot mannequin commented Oct 27, 2002

    Logged In: YES
    user_id=38376

    the canvas doesn't have keyboard focus, so all keyboard
    events goes elsewhere. to move focus to the canvas, call
    self.canvas.focus_set() at the appropriate place (e.g. in the
    onButton1 handler)

    </F>

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants