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:
|
Bookmark's main widget when initialized in |
Functions:
|
Creates the |
- class bookmarks.main.MainWidget(parent=None)[source]#
Bases:
QWidget
Bookmark’s main widget when initialized in
EmbeddedMode
. See alsobookmarks.standalone.BookmarksAppWindow
, a subclass used as the main widget when run inStandaloneMode
.- 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:
The widget will be in
uninitialized
state after creation.paintEvent
(event)Event handler.
sizeHint
()Returns a size hint.
Slot used to update the window title.
- bookmarks.main.init()[source]#
Creates the
MainWidget
instance.