standalone#

The module contains the elements used when initialized in StandaloneMode.

It defines BookmarksApp, Bookmark’s custom QApplication, and BookmarksAppWindow, a modified main.MainWidget.

Note, in EmbeddedMode, Bookmarks uses main.MainWidget as the main widget.

Classes:

BookmarksApp(args)

A customized QApplication used by Bookmarks to run in standalone mode.

BookmarksAppWindow([parent])

The main application window.

CloseButton([parent])

Button used to close/hide a widget or window.

HeaderWidget([parent])

Horizontal widget for controlling the position of the active window.

MinimizeButton([parent])

Custom QLabel with a clicked signal.

Tray([parent])

A system tray icon used to control Bookmarks from the Windows Task Bar (on Windows).

TrayMenu([parent])

The context menu associated with Tray.

Functions:

init()

Initializes the main application window.

init_tray()

Initializes the main application tray widget.

show()

Shows the main application window.

class bookmarks.standalone.BookmarksApp(args)[source]#

Bases: QApplication

A customized QApplication used by Bookmarks to run in standalone mode.

The app will start with OpenGL and high dpi support and initializes the submodules.

See bookmarks.exec().

Methods:

eventFilter(widget, event)

Event filter handler.

eventFilter(widget, event)[source]#

Event filter handler.

class bookmarks.standalone.BookmarksAppWindow(parent=None)[source]#

Bases: MainWidget

The main application window.

Methods:

changeEvent(event)

Event handler.

closeEvent(event)

Event handler.

hideEvent(event)

Event handler.

showEvent(event)

Event handler.

update_window_flags([v])

Load previously saved window flag values from user setting files.

changeEvent(event)[source]#

Event handler.

closeEvent(event)[source]#

Event handler.

hideEvent(event)[source]#

Event handler.

showEvent(event)[source]#

Event handler.

update_window_flags(v=None)[source]#

Load previously saved window flag values from user setting files.

class bookmarks.standalone.CloseButton(parent=None)[source]#

Bases: ClickableIconButton

Button used to close/hide a widget or window.

class bookmarks.standalone.HeaderWidget(parent=None)[source]#

Bases: QWidget

Horizontal widget for controlling the position of the active window.

Methods:

contextMenuEvent(event)

Event handler.

mouseDoubleClickEvent(event)

Event handler.

mouseMoveEvent(event)

Event handler.

mousePressEvent(event)

Event handler.

contextMenuEvent(event)[source]#

Event handler.

mouseDoubleClickEvent(event)[source]#

Event handler.

mouseMoveEvent(event)[source]#

Event handler.

mousePressEvent(event)[source]#

Event handler.

class bookmarks.standalone.MinimizeButton(parent=None)[source]#

Bases: ClickableIconButton

Custom QLabel with a clicked signal.

class bookmarks.standalone.Tray(parent=None)[source]#

Bases: QSystemTrayIcon

A system tray icon used to control Bookmarks from the Windows Task Bar (on Windows).

Methods:

tray_activated(reason)

Slot connected to the custom tray activation signals.

window()

Returns the main application window.

tray_activated(reason)[source]#

Slot connected to the custom tray activation signals.

window()[source]#

Returns the main application window.

class bookmarks.standalone.TrayMenu(parent=None)[source]#

Bases: BaseContextMenu

The context menu associated with Tray.

Methods:

setup()

Creates the context menu.

tray_menu()

Actions associated with the visibility of the widget.

setup()[source]#

Creates the context menu.

tray_menu()[source]#

Actions associated with the visibility of the widget.

bookmarks.standalone.init()[source]#

Initializes the main application window.

bookmarks.standalone.init_tray()[source]#

Initializes the main application tray widget.

bookmarks.standalone.show()[source]#

Shows the main application window.