From: Steven M. Gava Date: Sun, 7 Oct 2001 11:10:44 +0000 (+0000) Subject: merged status bar packing patch X-Git-Tag: v2.2.1c1~1410 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=898a365c276951ab2471afe2e24bbc910666d361;p=python merged status bar packing patch --- diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index 52aa399916..ed90d271a5 100644 --- a/Lib/idlelib/EditorWindow.py +++ b/Lib/idlelib/EditorWindow.py @@ -137,6 +137,8 @@ class EditorWindow: text.bind("<>", self.open_class_browser) text.bind("<>", self.open_path_browser) + self.set_status_bar() + vbar['command'] = text.yview vbar.pack(side=RIGHT, fill=Y) @@ -190,10 +192,10 @@ class EditorWindow: if self.extensions.has_key('AutoIndent'): self.extensions['AutoIndent'].set_indentation_params( self.ispythonsource(filename)) - self.set_status_bar() + def set_status_bar(self): - self.status_bar = self.MultiStatusBar(self.text_frame) + self.status_bar = self.MultiStatusBar(self.top) self.status_bar.set_label('column', 'Col: ?', side=RIGHT) self.status_bar.set_label('line', 'Ln: ?', side=RIGHT) self.status_bar.pack(side=BOTTOM, fill=X)