]> granicus.if.org Git - python/commit
bpo-33839: refactor IDLE's tooltips & calltips, add docstrings and tests (GH-7683)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 5 Aug 2018 06:58:06 +0000 (23:58 -0700)
committerGitHub <noreply@github.com>
Sun, 5 Aug 2018 06:58:06 +0000 (23:58 -0700)
commit2474cef34cd50e603c674c4856a17e3da4af71b3
tree7e6354a2ea5df3fc71e15305fce3e704c97bdfb5
parentc01807436ab7c1ae9a3f6ecb955b28c2c743c4d2
bpo-33839: refactor IDLE's tooltips & calltips, add docstrings and tests (GH-7683)

* make CallTip and ToolTip sub-classes of a common abstract base class
* remove ListboxToolTip (unused and ugly)
* greatly increase test coverage
* tested on Windows, Linux and macOS
(cherry picked from commit 87e59ac11ee074b0dc1bc864c74fac0660b27f6e)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Lib/idlelib/calltip.py
Lib/idlelib/calltip_w.py
Lib/idlelib/idle_test/htest.py
Lib/idlelib/idle_test/test_calltip_w.py
Lib/idlelib/idle_test/test_tooltip.py [new file with mode: 0644]
Lib/idlelib/tooltip.py
Misc/NEWS.d/next/IDLE/2018-06-14-13-23-55.bpo-33839.ZlJzHa.rst [new file with mode: 0644]