diff options
| author | Terry Jan Reedy <tjreedy@udel.edu> | 2018-08-02 23:40:20 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-02 23:40:20 -0400 |
| commit | 24a54da9452efb21d30dc56c6b9d0977d08ae452 (patch) | |
| tree | 0a26d9126ac16ade3077a81fa4c501f5d5530fa8 | |
| parent | dd4d8b4d80065409dae69f966fd7617e5b3d97f1 (diff) | |
| download | cpython-git-24a54da9452efb21d30dc56c6b9d0977d08ae452.tar.gz | |
[2.7] bpo-34275: Make IDLE calltips always visible on Mac. (GH-8639) (GH-8644)
Some MacOS-tk combinations need .update_idletasks().
The call is both unneeded and innocuous on Linux and Windows.
Patch by Kevin Walzer.
(cherry picked from commit 9beaef6225cdae972b1cccd5310828cc29bf9d33)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
| -rw-r--r-- | Lib/idlelib/CallTipWindow.py | 1 | ||||
| -rw-r--r-- | Misc/NEWS.d/next/IDLE/2018-08-02-22-16-42.bpo-34275.Iu0d7t.rst | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/Lib/idlelib/CallTipWindow.py b/Lib/idlelib/CallTipWindow.py index e63164b5a0..2a453d06f5 100644 --- a/Lib/idlelib/CallTipWindow.py +++ b/Lib/idlelib/CallTipWindow.py @@ -72,6 +72,7 @@ class CallTip: background="#ffffe0", relief=SOLID, borderwidth=1, font = self.widget['font']) self.label.pack() + tw.update_idletasks() tw.lift() # work around bug in Tk 8.5.18+ (issue #24570) self.checkhideid = self.widget.bind(CHECKHIDE_VIRTUAL_EVENT_NAME, diff --git a/Misc/NEWS.d/next/IDLE/2018-08-02-22-16-42.bpo-34275.Iu0d7t.rst b/Misc/NEWS.d/next/IDLE/2018-08-02-22-16-42.bpo-34275.Iu0d7t.rst new file mode 100644 index 0000000000..d7eba7ad3c --- /dev/null +++ b/Misc/NEWS.d/next/IDLE/2018-08-02-22-16-42.bpo-34275.Iu0d7t.rst @@ -0,0 +1,2 @@ +Make IDLE calltips always visible on Mac. Some MacOS-tk combinations need +.update_idletasks(). Patch by Kevin Walzer. |
