Skip to content

Commit 23f0912

Browse files
committed
Withdraw, no button
1 parent e7b5f48 commit 23f0912

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/idlelib/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ def fix_x11_paste(root):
7171
# <Button-5> events. With 8.7+, it generates <Mousewheel events
7272
# as on other systems. Used here, editor, tree, and test_sidebar.
7373
root = tkinter.Tk() # Use this as process root?
74-
x11_buttons = (tkinter.Button(root)._windowingsystem == 'x11' and
75-
tkinter.TkVersion <= 8.6)
74+
root.withdraw()
75+
x11_buttons = root._windowingsystem == 'x11' and tkinter.TkVersion <= 8.6
7676
root.destroy()
7777

7878
def wheel_event(event, widget=None): # Bound in editor and tree.

0 commit comments

Comments
 (0)