mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Work around Mac OS X transient window issues
This commit is contained in:
parent
e555fc76a7
commit
8b1b8d62a2
1 changed files with 8 additions and 0 deletions
|
@ -29,6 +29,14 @@ class CallTip:
|
|||
self.tipwindow = tw = Toplevel(self.widget)
|
||||
tw.wm_overrideredirect(1)
|
||||
tw.wm_geometry("+%d+%d" % (x, y))
|
||||
try:
|
||||
# This command is only needed and available on Tk >= 8.4.0 for OSX
|
||||
# Without it, call tips intrude on the typing process by grabbing
|
||||
# the focus.
|
||||
tw.tk.call("::tk::unsupported::MacWindowStyle", "style", tw._w,
|
||||
"help", "noActivates")
|
||||
except TclError:
|
||||
pass
|
||||
label = Label(tw, text=self.text, justify=LEFT,
|
||||
background="#ffffe0", relief=SOLID, borderwidth=1,
|
||||
font = self.widget['font'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue