53 lines
893 B
Python
53 lines
893 B
Python
# Bryan Schumaker (8/22/2010)
|
|
|
|
import ocarina
|
|
gtk = ocarina.gtk
|
|
|
|
class Filter(gtk.VBox):
|
|
def __init__(self):
|
|
gtk.VBox.__init__(self)
|
|
self.show()
|
|
self.sep = gtk.HSeparator()
|
|
self.sep.show()
|
|
self.filter_box = gtk.HBox()
|
|
self.pack_start(self.filter_box)
|
|
self.filter_box.show()
|
|
self.pack_start(self.sep)
|
|
|
|
def pack(self, widget, expand=True, fill=True):
|
|
self.filter_box.pack_start(widget, expand, fill)
|
|
|
|
|
|
class Info(gtk.VBox):
|
|
def __init__(self):
|
|
gtk.VBox.__init__(self)
|
|
self.show()
|
|
self.sep = gtk.HSeparator()
|
|
self.sep.show()
|
|
self.pack_start(self.sep)
|
|
|
|
|
|
filter = Filter()
|
|
info = Info()
|
|
|
|
|
|
def init():
|
|
global info
|
|
global filter
|
|
label = gtk.Label("Bottom label")
|
|
label.show()
|
|
info.pack_start(label)
|
|
|
|
label2 = gtk.Label("Top label")
|
|
label2.show()
|
|
filter.pack(label2)
|
|
|
|
def get_info():
|
|
global info
|
|
return info
|
|
|
|
|
|
def get_filter():
|
|
global filter
|
|
return filter
|