gaupol.Page

Source: gaupol/page.py

Anchestors: aeidon.observable.Observable, builtins.object

class gaupol.Page

User interface container and controller for aeidon.Project.

Page.edit_mode

aeidon.modes item corresponding to editing mode

Page.project

The associated aeidon.Project instance

Page.tab_label

Gtk.Label contained in tab_widget

Page.tab_widget

Widget that can be placed in a notebook tab

Page.untitle

Title used if project.main_file is unsaved

Page.view

The associated gaupol.View instance

Signals and their arguments for callback functions:
  • close-request: page
  • view-created: page, view

This class represents one page in a notebook of user interfaces for projects. The view is updated automatically when project data changes.

Methods

Page.__init__(count=0)

Initialize a Page instance.

Page.document_to_text_column(doc)

Translate document enumeration to view’s column enumeration.

Page.get_main_basename()

Return basename of the main document.

Page.get_translation_basename()

Return basename of the translation document.

Page.reload_view(rows, fields)

Reload the view in rows and fields.

Page.reload_view_all()

Clear and repopulate the entire view.

Page.text_column_to_document(col)

Translate view’s column enumeration to document enumeration.

Page.update_tab_label()

Update the notebook tab label and return title.