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 vtudorache
Recipients belgort, cheryl.sabella, ned.deily, rhettinger, taleinat, terry.reedy, vtudorache, wordtech
Date 2018-08-09.20:56:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>

The code is:

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)


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)


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 and see the results for yourselves.
Date User Action Args
2018-08-09 20:56:29vtudorachesetrecipients: + vtudorache, rhettinger, terry.reedy, taleinat, wordtech, ned.deily, cheryl.sabella, belgort
2018-08-09 20:56:29vtudorachesetmessageid: <>
2018-08-09 20:56:29vtudorachelinkissue34047 messages
2018-08-09 20:56:29vtudorachecreate