def dialog_show_new(self, page=0): StacksGuiDialog.dialog_show_new(self, page) if self.navbuttons is None: self.navbuttons = gtk.HButtonBox() self.navbuttons.set_layout(gtk.BUTTONBOX_EDGE) self.navbuttons.show() self.dialog.add(self.navbuttons) if self.bt_empty is None: self.bt_empty = gtk.Button(stock=gtk.STOCK_DELETE) self.bt_empty.set_use_stock(True) self.bt_empty.set_relief(gtk.RELIEF_NONE) self.bt_empty.connect("clicked", self.empty_trash) self.bt_empty.show() self.navbuttons.add(self.bt_empty) self.navbuttons.reorder_child(self.bt_empty, 1)
def __init__(self, applet): StacksGuiDialog.__init__(self, applet)