visualdynamics.gui.disclaimer¶
disclaimer
¶
The alpha notice, acknowledged before the window takes input.
The launcher shows this dialog the first time each version is
launched, after the window is built and before the event loop handles
anything else. The version acknowledged is kept in the preference store
(gui.preferences.settings), so a later launch of the same version opens
straight to the window, and the next version asks again. Quit is enabled
from the start; Continue is enabled only once the checkbox is ticked,
and nothing in the window can be reached until Continue is pressed.
It is not part of MainWindow, so the API and the tests' window fixture
never show it. The launcher's --no-disclaimer flag skips it, for a
script that opens the window and has already read the notice.
Classes:
| Name | Description |
|---|---|
Disclaimer |
The notice as a modal dialog. |
Functions:
| Name | Description |
|---|---|
needed |
Whether this version's notice is still to be acknowledged: True |
remember |
Record that this version's notice was acknowledged. |
acknowledged |
Show the notice. Returns True when the user ticked the checkbox |
Classes¶
Disclaimer
¶
Bases: QDialog
The notice as a modal dialog. exec() returns Accepted only
after the checkbox is ticked and Continue is pressed; closing the
dialog any other way counts as Quit.
Source code in src/visualdynamics/gui/disclaimer.py
Functions:¶
needed
¶
Whether this version's notice is still to be acknowledged: True on the first launch of a version, False once it was.
remember
¶
acknowledged
¶
Show the notice. Returns True when the user ticked the checkbox and pressed Continue, and False otherwise.