def new_notebook(): notebook = Aduct.Notebook() icon = Gtk.Image.new_from_icon_name("list-add", 2) notebook.set_action_button(icon, 1) notebook.connect("action-clicked", show_popover_notebook) # show_popover_notebook is a function like show_popover_element. return notebook
def setUp(self): self.element = new_element() self.notebook = Aduct.Notebook()