Author terry.reedy
Recipients ned.deily, rhettinger, ronaldoussoren, serhiy.storchaka, taleinat, terry.reedy, walters, wordtech
Date 2018-07-31.22:11:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
IDLE currently uses tooltips only for calltips describing a function's call signature.  Within Lib/idlelib: (renamed from after the 3.7.0/3.6.6 release) has the logic for when to raise one and its content. (which I intend to merge into has the code for the calltip itself and its closing.

Issue #1529353 and PR7626) proposes a second use of tooltips. I would also like to add helptips to some dialog fields and if possible, some menu entries. has simple generic tooltip code.  calltip_w does not import this but says in its docstring 'after'. Since tooltip is not currently used anywhere in IDLE, I have considered removing it.

Issue #33839 and PR7683 instead propose to upgrade tooltip and refactor calltip_w to import and use tooltip.  I have held off merging the PR because of tooltips not working on Mac.  But I need to do so soon to unblock the issue above and possible other enchancements.

Both tooltip and calltip_w have run-when-main test functions that work on Windows (and I presume Linux) but fail on 10.13.6 with 3.7.0.  The tooltip test is simpler in that it does not involve any truly IDLE-specific code.  The calltip_w test does not involve calltip.  Both use IDLE's human-verification test driver that provides a root window with test instructions.  In the bash terminal, run
python3 -m idlelib.tooltip
python3 -m idlelib.calltip_w

Kevin, I would be very appreciative if you can suggest a tweak that makes tooltips work everywhere.
Date User Action Args
2018-07-31 22:11:08terry.reedysetrecipients: + terry.reedy, rhettinger, ronaldoussoren, taleinat, wordtech, ned.deily, serhiy.storchaka, walters
2018-07-31 22:11:08terry.reedysetmessageid: <>
2018-07-31 22:11:08terry.reedylinkissue34275 messages
2018-07-31 22:11:08terry.reedycreate