diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2014-05-25 22:44:05 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2014-05-25 22:44:05 (GMT) |
commit | a2fc99eceae7b3dacc1e7280cc01c3b877ce55ab (patch) | |
tree | c6593cf545a51196117abd00623081007bf2ce67 /Lib/idlelib/ColorDelegator.py | |
parent | e1d54e5f8e63cf8a464a1c4c3d42e4f3a107b83f (diff) | |
download | cpython-a2fc99eceae7b3dacc1e7280cc01c3b877ce55ab.zip cpython-a2fc99eceae7b3dacc1e7280cc01c3b877ce55ab.tar.gz cpython-a2fc99eceae7b3dacc1e7280cc01c3b877ce55ab.tar.bz2 |
Issue #21477: Idle htest: modify run; add more tests.
Patch by Saimadhav Heblikar. 2.7 version will follow.
Diffstat (limited to 'Lib/idlelib/ColorDelegator.py')
-rw-r--r-- | Lib/idlelib/ColorDelegator.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/idlelib/ColorDelegator.py b/Lib/idlelib/ColorDelegator.py index d75a3c4..424755f 100644 --- a/Lib/idlelib/ColorDelegator.py +++ b/Lib/idlelib/ColorDelegator.py @@ -259,11 +259,9 @@ def _color_delegator(parent): root.title("Test ColorDelegator") width, height, x, y = list(map(int, re.split('[x+]', parent.geometry()))) root.geometry("+%d+%d"%(x, y + 150)) - with open(__file__, 'r') as f: - source = f.read() + source = "if somename: x = 'abc' # comment\nprint" text = Text(root, background="white") - # insert only a sample portion - text.insert("insert", source[:690]) + text.insert("insert", source) text.pack(expand=1, fill="both") p = Percolator(text) d = ColorDelegator() |