Skip to content

Commit 9a42e9d

Browse files
committed
Merge
2 parents a2d2a95 + 228d8e1 commit 9a42e9d

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

bpython/gtk_.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ def __exit__(self, exc_type, exc_value, exc_tb):
128128
def __nonzero__(self):
129129
return bool(self.counter)
130130

131+
class StatusBar(gtk.Statusbar):
132+
def __init__(self):
133+
gtk.Statusbar.__init__(self)
131134

132135
class SuggestionWindow(gtk.Window):
133136
"""
@@ -674,12 +677,18 @@ def main(args=None):
674677
parent = gtk.Plug(options.socket_id)
675678
parent.connect('destroy', gtk.main_quit)
676679

677-
# read from config
680+
container = gtk.VBox()
681+
parent.add(container)
678682

683+
# read from config
679684
sw = gtk.ScrolledWindow()
680685
sw.set_policy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC)
681686
sw.add(repl_widget)
682-
parent.add(sw)
687+
container.add(sw)
688+
689+
sb = StatusBar()
690+
container.add(sb)
691+
683692
parent.show_all()
684693
parent.connect('delete-event', lambda widget, event: gtk.main_quit())
685694

0 commit comments

Comments
 (0)