]> git.ipfire.org Git - thirdparty/Python/cpython.git/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:47:28 +0000 (23:47 -0700)
committerGitHub <noreply@github.com>
Sun, 5 Aug 2018 06:47:28 +0000 (23:47 -0700)
commite65ec491fbaa14db61a6559eb269733616b0e7f0
tree7a4a363ec0d8a07d42931266c922d7605de2dbdd
parent2a2a3f56f510844a5266f74f347a3fa3baee8ba2
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]