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

Prevent conflicts with Linux dark themes
(and slightly darken calltip background).
This commit is contained in:
Terry Jan Reedy 2019-03-10 20:18:40 -04:00 committed by GitHub
parent 0e1f1f0105
commit 491ef53c15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 3 deletions

View File

@ -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
None or False since 2007.

View File

@ -189,7 +189,7 @@ class AutoCompleteWindow:
pass
self.scrollbar = scrollbar = Scrollbar(acw, orient=VERTICAL)
self.listbox = listbox = Listbox(acw, yscrollcommand=scrollbar.set,
exportselection=False, bg="white")
exportselection=False)
for item in self.completions:
listbox.insert(END, item)
self.origselforeground = listbox.cget("selectforeground")

View File

@ -80,7 +80,8 @@ class CalltipWindow(TooltipBase):
def showcontents(self):
"""Create the call-tip widget."""
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'])
self.label.pack()

View File

@ -0,0 +1,2 @@
Fix IDLE autocomplete & calltip popup colors. Prevent conflicts with Linux
dark themes (and slightly darken calltip background).