[issue34370] Tkinter scroll issues on macOS

2018-10-17 Thread Kevin Walzer


Kevin Walzer  added the comment:

Release of Tk 8.6.9 very soon; includes fixes for Mac scrolling as well as 
support for 10.14 macOS, with Dark Mode.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34370] Tkinter scroll issues on macOS

2018-10-13 Thread Ned Deily


Ned Deily  added the comment:


New changeset d8b6425e58a1fccdf8ddbbcde63066c13c1bcfaf by Ned Deily in branch 
'3.7':
bpo-34370: Revert to using released Tk 8.6.8 with macOS installers
https://github.com/python/cpython/commit/d8b6425e58a1fccdf8ddbbcde63066c13c1bcfaf


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34370] Tkinter scroll issues on macOS

2018-10-13 Thread Ned Deily


Ned Deily  added the comment:


New changeset f55c3ae657595d12ce78aca76c9c6b998d632424 by Ned Deily in branch 
'3.6':
bpo-34370: Revert to using released Tk 8.6.8 with macOS installers
https://github.com/python/cpython/commit/f55c3ae657595d12ce78aca76c9c6b998d632424


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34370] Tkinter scroll issues on macOS

2018-09-30 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I just installed 3.7.1rc on current High Sierra and observed same as Vlad.

--
nosy: +terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34370] Tkinter scroll issues on macOS

2018-09-28 Thread Ned Deily


Ned Deily  added the comment:

Thanks for testing, Vlad.  And thanks for the followup, Kevin.  I guess we'll 
wait to hear more from Kevin.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34370] Tkinter scroll issues on macOS

2018-09-28 Thread Vlad Tudorache


Vlad Tudorache  added the comment:

The scroll problem (clicking on the upper half of the slider is taken as 
"through1") still persists for me on Mojave with 3.7.1 RC1 downloaded from 
python.org and including Tcl/Tk.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34370] Tkinter scroll issues on macOS

2018-09-27 Thread Kevin Walzer


Kevin Walzer  added the comment:

Ned, please hold off a bit on this--another developer is doing some final 
fine-tuning of the scrolling code so it fully passes Tk's test suite. I'm 
waiting for the final commit of this code any day now.

--
status: pending -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34370] Tkinter scroll issues on macOS

2018-09-26 Thread Ned Deily


Ned Deily  added the comment:

FYI, for the python.org binary macOS installers for the 3.7.1rc1 and 3.6.7rc1 
releases, I cherry-picked a post-8.6.8 development snapshot of Tk 8.6 that 
should include Kevin's fix.  I would appreciate any feedback one way or the 
other whether this version of Tk 8.6 improves things over the vanilla 8.6.8 
version used for the 3.7.0 and 3.6.6 releases.  Thanks!

--
nosy: +rhettinger
resolution:  -> third party
stage:  -> commit review
status: open -> pending

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34370] Tkinter scroll issues on macOS

2018-09-26 Thread Ned Deily


Ned Deily  added the comment:


New changeset d9cfe5ed2c2c61eeae915b76f5e10aadbbb28da6 by Ned Deily in branch 
'3.7':
bpo-34370: Update Tk 8.6 used with macOS installers
https://github.com/python/cpython/commit/d9cfe5ed2c2c61eeae915b76f5e10aadbbb28da6


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34370] Tkinter scroll issues on macOS

2018-09-26 Thread Ned Deily


Ned Deily  added the comment:


New changeset adf493227f1efd5d6b34f46b854142bf3b5a411c by Ned Deily in branch 
'3.6':
bpo-34370: Update Tk 8.6 used with macOS installers
https://github.com/python/cpython/commit/adf493227f1efd5d6b34f46b854142bf3b5a411c


--
nosy: +ned.deily

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34370] Tkinter scroll issues on macOS

2018-08-15 Thread Vlad Tudorache


Vlad Tudorache  added the comment:

It seems that Kevin's fix solves the issues.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34370] Tkinter scroll issues on macOS

2018-08-14 Thread Kevin Walzer


Kevin Walzer  added the comment:

I just committed http://core.tcl.tk/tk/info/26a029b4a88ff97f, which fixes the 
scrolling issue in Tk. Running the test scripts here indicate the behavior is 
now correct; clicking several pixels below the bottom part of the scroll button 
causes the scroll to jump, instead of smoothly scrolling. (One must click the 
scroll button directly for smooth scrolling, which is the expected behavior.) 
The fix involved removing support for a small scroll button variant, which was 
causing the confusion; by sticking with a single variant, the normal size 
scroller, the behavior is correct and consistent.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34370] Tkinter scroll issues on macOS

2018-08-12 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
nosy: +serhiy.storchaka, wordtech

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34370] Tkinter scroll issues on macOS

2018-08-10 Thread Vlad Tudorache


Vlad Tudorache  added the comment:

Now, the video for TK 8.5 showing expected behavior on macOS.

--
Added file: https://bugs.python.org/file47743/Tk85Mac.mov

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34370] Tkinter scroll issues on macOS

2018-08-10 Thread Vlad Tudorache


Vlad Tudorache  added the comment:

The bug needs forwarding to the Tcl/Tk community. This is the script written in 
Tcl (run with tclsh8.6 script.tcl for Tcl 8.6 and tclsh8.5 script.tcl for 8.5):

package require Tk

scrollbar .vbar -width 10
text .edit

pack .vbar -side right -fill y
pack .edit -side left -fill both -expand 1

.vbar configure -command {.edit yview}
.edit configure -yscrollcommand {.vbar set}

bind .vbar { } {
set cx %x
set cy %y
set dz [.vbar identify $cx $cy]
puts "You clicked at ($cx,$cy) on $dz.\n"
}

for {set i 1} {$i <= 256} {incr i} {
.edit insert "$i.0" "This is the line number $i.\n"
}

I will post two videos made on my MacBook, showing an expected behavior with Tk 
8.5 and the scroll problems with Tk 8.6 on macOS.

--
Added file: https://bugs.python.org/file47742/Tk86MacIssue.mov

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34370] Tkinter scroll issues on macOS

2018-08-10 Thread Vlad Tudorache


New submission from Vlad Tudorache :

Run the python script below.

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('', click_trace)

root.mainloop()

When the slider is at the top of the scrollbar, clicking on its upper half 
doesn't allow dragging. The little script shows that the Scrollbar considers it 
as being on "through1" - in Tk the zone between the upper arrow and the 
"slider" - and not on "slider". Another consequence is that one can drag (up 
and down) the slider when clicking a little bit below the slider, on "through2" 
region. This issue doesn't manifest on Windows, where the scrollbar's arrows 
are shown.
I've seen this issue when trying to explore the reasons of another (34047, 
fixed) concerning the slider locked at the end of the scrollbar in IDLE.

--
components: Tkinter
messages: 323363
nosy: vtudorache
priority: normal
severity: normal
status: open
title: Tkinter scroll issues on macOS
type: behavior
versions: Python 3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com