sas.qtgui.Utilities.NewVersion package

Submodules

sas.qtgui.Utilities.NewVersion.NewVersionAvailable module

class sas.qtgui.Utilities.NewVersion.NewVersionAvailable.NewVersionAvailable(current_version: str, latest_version: str, url: str = 'http://www.sasview.org/#downloadsection', parent=None)

Bases: QDialog

__doc__ = None
__init__(self, parent: PySide6.QtWidgets.QWidget | None = None, f: PySide6.QtCore.Qt.WindowType = Default(Qt.WindowFlags)) None

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'sas.qtgui.Utilities.NewVersion.NewVersionAvailable'
cancel()
go()
staticMetaObject = PySide6.QtCore.QMetaObject("NewVersionAvailable" inherits "QDialog": )
sas.qtgui.Utilities.NewVersion.NewVersionAvailable.a_newer_than_b(version_a: tuple[int, int, int], version_b: tuple[int, int, int]) bool

Check if version_a is strictly newer than version_b

sas.qtgui.Utilities.NewVersion.NewVersionAvailable.get_current_release_version() tuple[str, str, tuple[int, int, int]] | None

Get the current version from the server

sas.qtgui.Utilities.NewVersion.NewVersionAvailable.main()

Demo/testing window

sas.qtgui.Utilities.NewVersion.NewVersionAvailable.maybe_prompt_new_version_download() QDialog | None

If a new version is available, and Show a dialog prompting the user to download

sas.qtgui.Utilities.NewVersion.NewVersionAvailable.parse_version(version_string: str) tuple[int, int, int]

Convert a string into numerical version

Module contents