[issue23128] Key presses are doubled in Tkinter dialog invoked from window close handler (OS X only)
Philipp Emanuel Weidmann added the comment: I upgraded to Python 2.7.9 and ActiveTcl 8.5.17.0 as suggested. I confirmed that this is the Tk version actually used by looking at Python's About dialog. The problem persists. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23128 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23128] Key presses are doubled in Tkinter dialog invoked from window close handler (OS X only)
New submission from Philipp Emanuel Weidmann: Minimal code example: from Tkinter import Tk from tkSimpleDialog import askstring def close_handler(): askstring('', '') root.destroy() root = Tk() root.protocol('WM_DELETE_WINDOW', close_handler) root.mainloop() Closing the main window brings up the askstring dialog. *When run on OS X* (Yosemite, default Python and Tkinter version), each key press on the dialog's input field is doubled (thus when typing abc what will actually be entered is aabbcc). On Linux (Python + Tkinter 2.7.8) the problem does not occur. When the dialog is invoked from outside the close handler, the problem does not occur. This bug is causing a downstream issue in the quicksafe system (https://github.com/p-e-w/quicksafe/issues/2). -- components: Tkinter messages: 233177 nosy: pew priority: normal severity: normal status: open title: Key presses are doubled in Tkinter dialog invoked from window close handler (OS X only) type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23128 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23128] Key presses are doubled in Tkinter dialog invoked from window close handler (OS X only)
Ned Deily added the comment: By default Python, do you mean the Apple supplied Python in /usr/bin? If so, it uses an old Apple supplied Tk 8.5. Can you reproduce the problem with the current python.org 2.7.9 with the current ActiveState Tk 8.5 installed? -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23128 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com