summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/EditorWindow.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-11-22 08:50:02 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-11-22 08:50:02 (GMT)
commit4ebbefe677f47a8e4f624737338f22e714a7e5bc (patch)
tree97c83b07d392f2c0272c287f27abea3f98dd798d /Lib/idlelib/EditorWindow.py
parent2607e6c02195538db13b8c3d5d8c7d6b820df71a (diff)
downloadcpython-4ebbefe677f47a8e4f624737338f22e714a7e5bc.zip
cpython-4ebbefe677f47a8e4f624737338f22e714a7e5bc.tar.gz
cpython-4ebbefe677f47a8e4f624737338f22e714a7e5bc.tar.bz2
Patch #1362975: Rework CodeContext indentation algorithm to
avoid hard-coding pixel widths. Also make the text's scrollbar a child of the text frame, not the top widget.
Diffstat (limited to 'Lib/idlelib/EditorWindow.py')
-rw-r--r--Lib/idlelib/EditorWindow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index 6b8ab63..b69f06d 100644
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -102,8 +102,8 @@ class EditorWindow(object):
self.top.instance_dict = {}
self.recent_files_path = os.path.join(idleConf.GetUserCfgDir(),
'recent-files.lst')
- self.vbar = vbar = Scrollbar(top, name='vbar')
self.text_frame = text_frame = Frame(top)
+ self.vbar = vbar = Scrollbar(text_frame, name='vbar')
self.width = idleConf.GetOption('main','EditorWindow','width')
self.text = text = MultiCallCreator(Text)(
text_frame, name='text', padx=5, wrap='none',