python / cpython

The Python programming language
https://www.python.org
Other
63k stars 30.16k forks source link

Trackpad scrolling in tkinter doesn't work on some laptops #67191

Closed 00cb8ee4-8477-4cf2-a23b-96ae6c49efd3 closed 9 years ago

00cb8ee4-8477-4cf2-a23b-96ae6c49efd3 commented 9 years ago
BPO 23002
Nosy @aivarannamaa, @zware

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: ```python assignee = None closed_at = created_at = labels = ['expert-tkinter'] title = "Trackpad scrolling in tkinter doesn't work on some laptops" updated_at = user = 'https://github.com/aivarannamaa' ``` bugs.python.org fields: ```python activity = actor = 'zach.ware' assignee = 'none' closed = True closed_date = closer = 'zach.ware' components = ['Tkinter'] creation = creator = 'Aivar.Annamaa' dependencies = [] files = [] hgrepos = [] issue_num = 23002 keywords = [] message_count = 3.0 messages = ['232253', '232254', '232257'] nosy_count = 2.0 nosy_names = ['Aivar.Annamaa', 'zach.ware'] pr_nums = [] priority = 'normal' resolution = 'third party' stage = 'resolved' status = 'closed' superseder = None type = None url = 'https://bugs.python.org/issue23002' versions = ['Python 3.4'] ```

00cb8ee4-8477-4cf2-a23b-96ae6c49efd3 commented 9 years ago

Here's a simple tkinter program, where text can be scrolled by mouse wheel, and by trackpads of some laptops (Macbook Pro, Dell Latitude E5430), but not by trackpads of some other laptops (Lenovo T420).

from tkinter import Tk
from tkinter import scrolledtext
window = Tk()
text = scrolledtext.ScrolledText(window)
text.grid()
window.mainloop()
00cb8ee4-8477-4cf2-a23b-96ae6c49efd3 commented 9 years ago

Clarification: In general trackpad scrolling does work on my Lenovo (eg. in Windows Notepad), it just doesn't work in tkinter programs (including IDLE)

zware commented 9 years ago

Sorry, but there's nothing we can do about it; that will be a Tk issue. I'd suggest discussing it with the Tcl/Tk developers, see http://wiki.tcl.tk/1020