diff options
Diffstat (limited to 'Lib/turtledemo')
-rw-r--r-- | Lib/turtledemo/__main__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/turtledemo/__main__.py b/Lib/turtledemo/__main__.py index 07a1c82..0a58332 100644 --- a/Lib/turtledemo/__main__.py +++ b/Lib/turtledemo/__main__.py @@ -89,8 +89,8 @@ import sys import os from tkinter import * +from idlelib.colorizer import ColorDelegator, color_config from idlelib.percolator import Percolator -from idlelib.colorizer import ColorDelegator from idlelib.textview import view_text from turtledemo import __doc__ as about_turtledemo @@ -123,6 +123,8 @@ help_entries = ( # (help_label, help_doc) ('About turtle module', turtle.__doc__), ) + + class DemoWindow(object): def __init__(self, filename=None): @@ -203,6 +205,7 @@ class DemoWindow(object): self.text_frame = text_frame = Frame(root) self.text = text = Text(text_frame, name='text', padx=5, wrap='none', width=45) + color_config(text) self.vbar = vbar = Scrollbar(text_frame, name='vbar') vbar['command'] = text.yview |