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.
This commit is contained in:
Martin v. Löwis 2006-11-22 08:50:02 +00:00
parent 2607e6c021
commit 4ebbefe677
3 changed files with 64 additions and 18 deletions

View file

@ -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',