def __init__(self, right_space=2, top_bottom_space=3): ''' Initialize DroplistScrolledWindow class. @param right_space: the space between right border and the vertical scroolbar. @param top_bottom_space: the space between top border and the vertical scroolbar. ''' ScrolledWindow.__init__(self, right_space, top_bottom_space)
def __init__(self, items=None): ScrolledWindow.__init__(self, 0, 0) self.file_iconview = IconView() self.file_iconview.draw_mask = self.draw_mask if items != None: self.file_iconview.add_items(items) self.file_scrolledwindow = ScrolledWindow() self.file_scrolledwindow.add_child(self.file_iconview) self.add_child(self.file_scrolledwindow)
def __init__(self, right_space=2, top_bottom_space=3): ''' Initialize TalkView class. ''' # Init. ScrolledWindow.__init__(self, right_space, top_bottom_space) self.draw_area = gtk.DrawingArea() self.draw_align = gtk.Alignment() self.draw_align.set(0.5, 0.5, 1, 1) self.draw_align.add(self.draw_area) self.add_child(self.draw_align)
def __init__(self, right_space=2, top_bootm_space=3): '''Init droplist scrolled window.''' ScrolledWindow.__init__(self, right_space, top_bootm_space)