class documentation

class NotebookComboBox(Gtk.ComboBox): (source)

Known subclasses: zim.gui.notebookdialog.DefaultNotebookComboBox

View In Hierarchy

Combobox showing the a list of notebooks
Method __init__ Constructor,
Method get_notebook Returns the uri for the current selected notebook
Method set_default_active Select the default notebook in the combobox or clear the combobox if no default notebook was defined.
Method set_notebook Select a specific notebook in the combobox.
def __init__(self, model=None, current=None): (source)
Constructor,
Parameters
modeleither a NotebookTreeModel or None to use the default list.
currenturi, Folder, NotebookInfo, or Notebook object for the current notebook. If None the default notebook will be shown (if any).
def get_notebook(self): (source)
Returns the uri for the current selected notebook
def set_default_active(self): (source)
Select the default notebook in the combobox or clear the combobox if no default notebook was defined.
def set_notebook(self, uri, append=False): (source)
Select a specific notebook in the combobox.
Parameters
uriuri, Folder, NotebookInfo, or Notebook object for a notebook (string or any object with an uri property)
appendif True the notebook will appended to the list if it was not listed yet.