示例#1
0
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
示例#2
0
    def setUp(self):

        self.element = new_element()
        self.notebook = Aduct.Notebook()