Skip to content

Commit 4c33e34

Browse files
committed
Rename statusbar to match gtk.Statusbar name, initial menu object
1 parent 912b5c4 commit 4c33e34

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

bpython/gtk_.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ def __exit__(self, exc_type, exc_value, traceback):
109109
dialog.run()
110110
dialog.destroy()
111111

112+
class MenuBar(gtk.MenuBar):
113+
def __init__(self):
114+
gtk.MenuBar.__init__(self)
112115

113116
class Nested(object):
114117
"""
@@ -128,9 +131,14 @@ def __exit__(self, exc_type, exc_value, exc_tb):
128131
def __nonzero__(self):
129132
return bool(self.counter)
130133

131-
class StatusBar(gtk.Statusbar):
134+
class Statusbar(gtk.Statusbar):
135+
"""Contains feedback messages"""
132136
def __init__(self):
133137
gtk.Statusbar.__init__(self)
138+
139+
context_id = self.get_context_id('StatusBar')
140+
# self.push(context_id, text)
141+
134142

135143
class SuggestionWindow(gtk.Window):
136144
"""
@@ -658,7 +666,7 @@ def main(args=None):
658666
bpython.args.exec_code(interpreter, exec_args)
659667
return 0
660668

661-
sys.stderr = repl_widget
669+
# sys.stderr = repl_widget
662670
sys.stdout = repl_widget
663671

664672
if not options.socket_id:
@@ -686,7 +694,7 @@ def main(args=None):
686694
sw.add(repl_widget)
687695
container.add(sw)
688696

689-
sb = StatusBar()
697+
sb = Statusbar()
690698
container.pack_end(sb, expand=False)
691699

692700
parent.show_all()

0 commit comments

Comments
 (0)