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:
|
A customized QApplication used by Bookmarks to run in standalone mode. |
|
The main application window. |
|
Button used to close/hide a widget or window. |
|
Horizontal widget for controlling the position of the active window. |
|
Custom QLabel with a clicked signal. |
|
A system tray icon used to control Bookmarks from the Windows Task Bar (on Windows). |
|
The context menu associated with |
Functions:
|
Initializes the main application window. |
Initializes the main application tray widget. |
|
|
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.
- 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.
- 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.
- 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.
- class bookmarks.standalone.TrayMenu(parent=None)[source]#
Bases:
BaseContextMenu
The context menu associated with
Tray
.Methods:
Actions associated with the visibility of the widget.