mirror of
https://github.com/python/cpython.git
synced 2025-10-28 01:00:34 +00:00
Color preferences code by Loren Luke (massaged by me somewhat)
This commit is contained in:
parent
cfb819ee51
commit
7de697597e
4 changed files with 104 additions and 15 deletions
|
|
@ -89,6 +89,7 @@ class EditorWindow:
|
|||
vars = {}
|
||||
|
||||
def __init__(self, flist=None, filename=None, key=None, root=None):
|
||||
cprefs = self.ColorDelegator.cprefs
|
||||
self.flist = flist
|
||||
root = root or flist.root
|
||||
self.root = root
|
||||
|
|
@ -98,7 +99,12 @@ class EditorWindow:
|
|||
self.top = top = self.Toplevel(root, menu=self.menubar)
|
||||
self.vbar = vbar = Scrollbar(top, name='vbar')
|
||||
self.text = text = Text(top, name='text', padx=5,
|
||||
background="white", wrap="none")
|
||||
foreground=cprefs.CNormal[0],
|
||||
background=cprefs.CNormal[1],
|
||||
highlightcolor=cprefs.CHilite[0],
|
||||
highlightbackground=cprefs.CHilite[1],
|
||||
insertbackground=cprefs.CCursor[1],
|
||||
wrap="none")
|
||||
|
||||
self.createmenubar()
|
||||
self.apply_bindings()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue