PyQt UI Reference
Qt UI Elements
BlackboardSync Qt GUI.
- class blackboard_sync.qt.qt_elements.LoginWebView(start_url: str, target_url: str)[source]
Blackboard login widget.
Create instance of LoginWebView.
- property cookie_jar: RequestsCookieJar
Contains session cookies of the current session.
- property login_complete_signal
Fire when the login flow has completed.
- class blackboard_sync.qt.qt_elements.PersistenceWarning[source]
QDialog shown if user chooses to store their login details on their device.
Create instance of PersistenceWarning Dialog.
- class blackboard_sync.qt.qt_elements.RedownloadDialog[source]
QMessageBox shown after a change in download location.
It consults the user about whether files should be redownloaded to the new location or not.
Create a RedownloadDialog.
- class blackboard_sync.qt.qt_elements.SettingsWindow[source]
Settings windown UI element.
Create instance of SettingsWindow.
- property log_out_signal
Fire when user chooses to log out.
- property save_signal
Fire when settings are saved.
- property setup_wiz_signal
Fire when user wants to redo initial setup.
- class blackboard_sync.qt.qt_elements.SetupWizard(institutions: list[str])[source]
Initial setup wizard.
Create a SetupWizard.
- class blackboard_sync.qt.qt_elements.SyncPeriod(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Enum containing all valid Sync intervals for this UI.
- HALF_HOUR = 1800
- ONE_HOUR = 3600
- SIX_HOURS = 21600
- class blackboard_sync.qt.qt_elements.SyncTrayIcon[source]
BlackboardSync system tray icon.
Create a QSystemTrayIcon.
- property login_signal
Fire once user is authenticated.
- property open_dir_signal
Fire once user wants to open download directory.
- property quit_signal
Fire once user decides to quit app.
- property reset_setup_signal
Fire when the user wants to reset the initial setup.
- property settings_signal
Fire when the settings menu is opened.
Fire when menu is about to be shown.
- show_msg(title: str, msg: str, severity: int = 1, duration: int = 10) None [source]
Show the user a message through the tray icon.
- property sync_signal
Fire if user forces sync.
- class blackboard_sync.qt.qt_elements.SyncTrayMenu(logged_in: bool = False, last_synced: str = '')[source]
QMenu associated with app system tray icon.
Create the menu for a SyncTrayIcon.
- Parameters: