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 terry.reedy
Recipients ned.deily, ronaldoussoren, serhiy.storchaka, terry.reedy, wordtech
Date 2018-09-25.00:08:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1537834124.67.0.545547206417.issue34796@psf.upfronthosting.co.za>
In-reply-to
Content
#34047 was about scrollbar issues on MacOS in 3.7.0 and 3.6.6.  One was due to an IDLE bug, which was fixed on the issue.  Others, which can be demonstrated in the pure tkinter code below, are the subject of this issue.

1. Slider does not move properly when at top or bottom.
2. Clicking trough near slider at top or bottom has no effect.
See #34047 for more discussions and details.

Vlad Tudorache posted the code below as msg323349 of #34047 and attached as tktest.py, along with tkinter_scroll_issues.mov.
---

import tkinter

root = tkinter.Tk()

text = tkinter.Text(root)
vbar = tkinter.Scrollbar(root)

vbar.pack(side=tkinter.RIGHT, fill=tkinter.Y)
text.pack(side=tkinter.LEFT, fill=tkinter.BOTH, expand=1)

text.config(yscrollcommand=vbar.set)
vbar.config(command=text.yview)

lines = ['This is the line number %d.\n' % i for i in range(256)]
text.insert(tkinter.END, ''.join(lines))
 
def click_trace(event):
    text.insert('%d.%d' % (1, 0), 'Clicked at (%d,%d) on %s.\n' % (event.x, event.y, vbar.identify(event.x, event.y)))

vbar.bind('<Button-1>', click_trace)

root.mainloop()
---

"Clicking at the top on the slider shows that the Scrollbar considers it as being on "through1" (in Tk the zone between the upper arrow and the "slider") and NOT on the "slider". Please, play with the script (python3 tktest.py) and see the results for yourselves."
History
Date User Action Args
2018-09-25 00:08:44terry.reedysetrecipients: + terry.reedy, ronaldoussoren, wordtech, ned.deily, serhiy.storchaka
2018-09-25 00:08:44terry.reedysetmessageid: <1537834124.67.0.545547206417.issue34796@psf.upfronthosting.co.za>
2018-09-25 00:08:44terry.reedylinkissue34796 messages
2018-09-25 00:08:43terry.reedycreate