[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-09-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I opened #34796 for the scrollbar slider issues. -- superseder: -> Tkinter scrollbar issues on Mac. ___ Python tracker ___ _

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-08-10 Thread Tal Einat
Change by Tal Einat : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Pyt

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-08-10 Thread Tal Einat
Tal Einat added the comment: > Should one open a different report for the clicks on the scrollbar ends, like > in the script I put (independent of IDLE)? Indeed. Please open a new issue with an appropriate title and attach your example script and video. --

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-08-09 Thread miss-islington
miss-islington added the comment: New changeset ca4badb5c0bedaa4ebcb33b9cad5f64750876750 by Miss Islington (bot) in branch '3.6': bpo-34047: IDLE: fix mousewheel scrolling direction on macOS (GH-8678) https://github.com/python/cpython/commit/ca4badb5c0bedaa4ebcb33b9cad5f64750876750

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-08-09 Thread miss-islington
miss-islington added the comment: New changeset ea8835fb302447da82f265a5bc0f785353100271 by Miss Islington (bot) in branch '3.7': bpo-34047: IDLE: fix mousewheel scrolling direction on macOS (GH-8678) https://github.com/python/cpython/commit/ea8835fb302447da82f265a5bc0f785353100271

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-08-09 Thread Vlad Tudorache
Vlad Tudorache added the comment: The scroll works. Many thanks, I thought the callback should have been rewritten, too. Should one open a different report for the clicks on the scrollbar ends, like in the script I put (independent of IDLE)? -- __

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-08-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +8208 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-08-09 Thread Tal Einat
Tal Einat added the comment: New changeset 077059e0f086cf8c8b7fb9d1f053e38ddc743f59 by Tal Einat in branch 'master': bpo-34047: IDLE: fix mousewheel scrolling direction on macOS (GH-8678) https://github.com/python/cpython/commit/077059e0f086cf8c8b7fb9d1f053e38ddc743f59 -- _

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-08-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +8207 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Vlad, can you test the current patch on PR 8678 on Mac? -- ___ Python tracker ___ ___ Python-bugs

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-08-09 Thread Vlad Tudorache
Vlad Tudorache added the comment: And the result (video) of my script is attached to this post. -- Added file: https://bugs.python.org/file47738/tkinter_scroll_issues.mov ___ Python tracker _

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-08-09 Thread Vlad Tudorache
Vlad Tudorache added the comment: Edit: 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) text.config(yscrollcommand=vbar.set) vba

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-08-09 Thread Vlad Tudorache
Vlad Tudorache added the comment: I've tried to check the source code of IDLE in search of chained comparisons without parenthesis (like the example I showed and the bug with the mouse wheel). I couldn't find something important. Then I wrote in a file the following code: import tkinter ro

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-08-05 Thread Vlad Tudorache
Vlad Tudorache added the comment: Check the commands below and the results to see why the problem with the mouse wheel appeared: >>> a = 1 >>> a >= 0 == True False >>> (a >= 0) == True True >>> a >= (0 == True) True >>> a >= 0 == False True >>> (a >= 0) == False False >>> a >= (0 == False) Tr

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-08-05 Thread Vlad Tudorache
Vlad Tudorache added the comment: In fact, if the first click before dragging takes place in the upper half of the scrollbar slider, the click is not received nor the drag after. Is like the scroll slider is translated down with half of the slider length (that's why I can drag the slider eve

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-08-05 Thread Vlad Tudorache
Vlad Tudorache added the comment: With: up = {EventType.MouseWheel: (event.delta >= 0) == darwin, EventType.Button: (event.num == 4)} in editor.py at 461-462 I don't see bugs #1 neither #3 on 3.7.0 but I'll try with other files. -- ___ Pyth

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-08-05 Thread Tal Einat
Change by Tal Einat : -- keywords: +patch pull_requests: +8173 stage: test needed -> patch review ___ Python tracker ___ ___ Python-

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-08-05 Thread Tal Einat
Tal Einat added the comment: Yes! Vlad's fix resolves the "sticks at bottom of file" bug for me on macOS. It also resolves #2 in my list of additional bugs, regarding scrolling direction. With both 3.7.0 and current master, I still see additional bugs #1 and #3, i.e. issues dragging the sc

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-08-05 Thread Vlad Tudorache
Vlad Tudorache added the comment: The solution was very simple on my Mac. In /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/idlelib/editor.py, lines 461-462 should be: up = {EventType.MouseWheel: (event.delta >= 0) == darwin, EventType.Button: event.num == 4} instead

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-08-05 Thread Vlad Tudorache
Vlad Tudorache added the comment: Having 3.6.5 and 3.7.0 with Tcl/Tk 8.6.8, try to File->Open Module and open ssl module. On 3.6 everything is fine, on 3.7 the scroller sticks at the bottom. A Tk text widget with the same amount of lines shows no problem. Apple macOS 17.7.0 with 64 bit Pytho

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Moving the scrollwheel in either direction scrolls down, so I have to use the scrollbar once stuck on the bottom of the file. (The Macbook has no PageUp key.) For me, this is the most obnoxious bug. Tomorrow, I will add prints to the scroll event handling

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: On 10.13.6 with 3.7.0, 'python3 -m idlelib.configdialog' in bash terminal runs configdialog unittests and brings up a human-verified test (htest) driver box with a ttk scrollbar whose slider does not stick. I has a dead zone beneath or above, but I wonder i

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-31 Thread Kevin Walzer
Kevin Walzer added the comment: Not able to reproduce this issue using a recent build of Tk 8.6.8 plus (it's been a little while since I pulled the latest updates from core-8-6-branch, but is recent enough). Similar behavior was reported on Tk a couple of years ago but has been fixed; I clos

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.7.0 on 10.13.6: Vertical cursor sticks at both ends. Sticking at the top also is Tal's observation 1 above. I also verified dead zone under slider and always down with 2-finger swipe, and that this is not normal Mac behavior. --

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Re-reading, I notice this from Tal: "With Python 3.6.5 on OSX, I'm seeing all of the issues ...". 3.6.5 was released 2018 March 28, *before* we revised editor scrolling in May. What tk version? Was the new 8.6 compile even available for that? --

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: I've encountered this problem as well. It occurs with files bigger than a screenful (i.e. use OpenModule to open the collections module). Both the scroll-up and scroll-down inputs result in scrolling down. This occurs with a fresh MacOs install of Pyth

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-18 Thread Raymond Hettinger
Change by Raymond Hettinger : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-18 Thread Tal Einat
Tal Einat added the comment: The reported scrolling issues do happen for me with the Python 3.7.0 installed from python.org, which does use Tk 8.6.8. -- ___ Python tracker __

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-18 Thread Tal Einat
Tal Einat added the comment: With Python 3.7.0 installed from python.org, I can't see any of the scrolling issues with tk_scroll2.py either. -- ___ Python tracker ___ ___

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-15 Thread Vlad Tudorache
Vlad Tudorache added the comment: I can reproduce this problem only with Tk 8.6.7, both compiled by myself or installed from ActiveState (Python 3.7 and 3.6 compiled by myself, too). I can't see it with Tk 8.6.8 provided with the installers, nor with Tk 8.5.18. -- nosy: +vtudorache

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: The text widget in IDLE is actually an instance of MulticallCreator(Text). For tk_scroll2.py, I added the idlelib import and the call to MulticallCreator. -- Added file: https://bugs.python.org/file47677/tk_scroll2.py ___

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-07 Thread Tal Einat
Tal Einat added the comment: Terry, with your minimal scrolling frame with text, everything works fine for me on OSX, regardless of whether the frame/scrollbar are tk/ttk, including using the ttk scrollbar on a tk frame. So this does seem to be an issue with IDLE. -- __

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: The mouse over scrollbar behavior I described above is specific to the ttk version. Mark Roseman has said that other ttk widgets *look* better on a ttk frame. Does the frame make any difference for scrollbar? --

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: We need to determine whether the problem is with tk/tkinter or specifically with IDLE, and whether it has anything with using ttk. The attached file duplicates the skeleton of an IDLE editor in 14 lines of tkinter code. This includes putting a ttk scrollba

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-05 Thread Tal Einat
Tal Einat added the comment: With Python 3.6.5 on OSX, I'm seeing all of the issues (including the originally reported one) except the issue with the scroll direction inversion on two-finger swipe. -- versions: +Python 3.6 ___ Python tracker

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-05 Thread Tal Einat
Tal Einat added the comment: On OSX with Python 3.7.0 behavior is the same as current master. -- ___ Python tracker ___ ___ Python-

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-05 Thread Tal Einat
Tal Einat added the comment: Confirmed on latest master on OSX. I'm also experiencing many other kinds of erratic scrolling behavior: 1. Dragging the scrollbar isn't possible immediately after opening the file Lib/idlelib/editor.py. Also later after scrolling to the top. 2. Scrolling via two

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-05 Thread Bruce Elgort
Bruce Elgort added the comment: Terry, Here is a video I made showing the problem I’m having. I have no clue about the other things you are asking about. https://www.youtube.com/watch?v=BpyMhdjTNvQ Bruce > On Jul 5, 2018, at 3:21 PM, Terry J. R

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-05 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: -> test needed title: Scrolling in IDLE for OS X is not working correctly when reaching end of file -> IDLE: on macOS, scroll slider 'sticks' at bottom of file ___ Python tracker