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

@ -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")