Commit 491ef53c authored by Terry Jan Reedy's avatar Terry Jan Reedy Committed by GitHub

bpo-36176: Fix IDLE autocomplete & calltip popup colors. (#12262)

Prevent conflicts with Linux dark themes
(and slightly darken calltip background).
parent 0e1f1f01
...@@ -3,7 +3,11 @@ Released on 2019-10-20? ...@@ -3,7 +3,11 @@ Released on 2019-10-20?
====================================== ======================================
bpl-36152: Remove colorizer.ColorDelegator.close_when_done and the bpo-36176: Fix IDLE autocomplete & calltip popup colors.
Prevent conflicts with Linux dark themes
(and slightly darken calltip background).
bpo-36152: Remove colorizer.ColorDelegator.close_when_done and the
corresponding argument of .close(). In IDLE, both have always been corresponding argument of .close(). In IDLE, both have always been
None or False since 2007. None or False since 2007.
......
...@@ -189,7 +189,7 @@ class AutoCompleteWindow: ...@@ -189,7 +189,7 @@ class AutoCompleteWindow:
pass pass
self.scrollbar = scrollbar = Scrollbar(acw, orient=VERTICAL) self.scrollbar = scrollbar = Scrollbar(acw, orient=VERTICAL)
self.listbox = listbox = Listbox(acw, yscrollcommand=scrollbar.set, self.listbox = listbox = Listbox(acw, yscrollcommand=scrollbar.set,
exportselection=False, bg="white") exportselection=False)
for item in self.completions: for item in self.completions:
listbox.insert(END, item) listbox.insert(END, item)
self.origselforeground = listbox.cget("selectforeground") self.origselforeground = listbox.cget("selectforeground")
......
...@@ -80,7 +80,8 @@ class CalltipWindow(TooltipBase): ...@@ -80,7 +80,8 @@ class CalltipWindow(TooltipBase):
def showcontents(self): def showcontents(self):
"""Create the call-tip widget.""" """Create the call-tip widget."""
self.label = Label(self.tipwindow, text=self.text, justify=LEFT, self.label = Label(self.tipwindow, text=self.text, justify=LEFT,
background="#ffffe0", relief=SOLID, borderwidth=1, background="#ffffd0", foreground="black",
relief=SOLID, borderwidth=1,
font=self.anchor_widget['font']) font=self.anchor_widget['font'])
self.label.pack() self.label.pack()
......
Fix IDLE autocomplete & calltip popup colors. Prevent conflicts with Linux
dark themes (and slightly darken calltip background).
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment