[issue34275] Problems with tkinter and tk8.6 on MacOS

2018-08-02 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +8143 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34275] Problems with tkinter and tk8.6 on MacOS

2018-08-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified for my machine also that adding .update_idletasks(), as in calltips_2-2.diff works for my 3.7.0 installation. I will assume until someone says otherwise that this is generally sufficient. I am preparing a PR with the patch and will separately dea

[issue34275] Problems with tkinter and tk8.6 on MacOS

2018-08-01 Thread Kevin Walzer
Kevin Walzer added the comment: Tal, your proposed revisions to the patch work fine. It's harmless to leave the older calls to MacWindowStyle there. New patch attached. -- Added file: https://bugs.python.org/file47726/calltips_w-2.diff ___ Python t

[issue34275] Problems with tkinter and tk8.6 on MacOS

2018-07-31 Thread Tal Einat
Tal Einat added the comment: Perhaps we can use .update_idletasks() rather than .update()? That tends to have less of a performance hit. My macOS setup is currently not working so I can't test this myself. Regarding the "MacWindowStyle" call, IDLE is backported to older versions of Python a

[issue34275] Problems with tkinter and tk8.6 on MacOS

2018-07-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you! Adding update worked for calltip_w. Adding update to tooltip and copying tw.lift() # work around bug in Tk 8.5.18+ (issue #24570) from calltip worked for tooltip. (It seems the bug is still present. ;-) I will either patch these files direct

[issue34275] Problems with tkinter and tk8.6 on MacOS

2018-07-31 Thread Kevin Walzer
Kevin Walzer added the comment: With the attached patch, the calltip now displays in the test in calltips_w.py on macOS. As I suspected, a judicious call to "update" forces the event loop to cycle on macOS. It should be harmless on other platforms, but if it causes some sort of performance s

[issue34275] Problems with tkinter and tk8.6 on MacOS

2018-07-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: IDLE currently uses tooltips only for calltips describing a function's call signature. Within Lib/idlelib: calltip.py (renamed from calltips.py after the 3.7.0/3.6.6 release) has the logic for when to raise one and its content. calltip_w.py (which I intend t

[issue34275] Problems with tkinter and tk8.6 on MacOS

2018-07-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: @terry.reed: Kevin Walzer is a maintainer for Tk on macOS. I know too little of IDLE to answer his questions. -- ___ Python tracker ___ ___

[issue34275] Problems with tkinter and tk8.6 on MacOS

2018-07-31 Thread Kevin Walzer
Kevin Walzer added the comment: Please provide a short working Python script that reproduces the problem. Also, please point me to the internal implementation of tooltips in idlelib. Tooltips work just fine on Tk on the Mac, but there are many different ways to implement them and I suspect P

[issue34275] Problems with tkinter and tk8.6 on MacOS

2018-07-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: https://core.tcl.tk/tk/tktview/769367b4c9b8e4fc05afaf67dc0aa6e3c1dba682 is an Tcl/Tk issue about issue34275, which is also about Tooltips. I've added a comment to the Tk issue to note that IDLE also has problems (the other ticket is about a 3th-party libra

[issue34275] Problems with tkinter and tk8.6 on MacOS

2018-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: With 64 bit 3.7.0, I verified multiple problems. Calltips do not display either automatically or manually with ^B or menu selection. I closed #34281 in favor of #34120 and will report there and on #34047. -- ___

[issue34275] Problems with tkinter and tk8.6 on MacOS

2018-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Two more pieces of evidence that there is a problem with tkinter/tk8.6 on Mac. On #34120, Vlad T. confirmed the misbehavior on 3.5 compiled for 8.6. #34281 reports another problem with an editor subwindow on 3.7 Mac. There are now 4 issues about some IDLE