main#

Bookmarks’ main widget.

MainWidget consist of TopBarWidget, StatusBar, and ListsWidget. The latter is the container for the three main list item widgets: BookmarkItemView, AssetItemView and FileItemView.

You can always access the main widget from the common module directly:

1from bookmarks import common
2common.main_widget.show()

Important

MainWidget won’t be fully set up until MainWidget.initialize() is called. In standalone mode, the widget will automatically be initialized, on first showing, however, in EmbeddedMode, MainWidget.initialize() must be called manually.

Classes:

MainWidget([parent])

Bookmark's main widget when initialized in EmbeddedMode.

Functions:

init()

Creates the MainWidget instance.

class bookmarks.main.MainWidget(parent=None)[source]#

Bases: QWidget

Bookmark’s main widget when initialized in EmbeddedMode. See also bookmarks.standalone.BookmarksAppWindow, a subclass used as the main widget when run in StandaloneMode.

aboutToInitialize#

Emitted just before the main widget is about to be initialized.

Type

Signal

initialized#

Emitted when the main widget finished initializing.

Type

Signal

Methods:

initialize()

The widget will be in uninitialized state after creation.

paintEvent(event)

Event handler.

sizeHint()

Returns a size hint.

update_window_title()

Slot used to update the window title.

initialize()[source]#

The widget will be in uninitialized state after creation. This method must be called to create the UI layout and to load the item models.

paintEvent(event)[source]#

Event handler.

sizeHint()[source]#

Returns a size hint.

update_window_title()[source]#

Slot used to update the window title.

bookmarks.main.init()[source]#

Creates the MainWidget instance.