class documentation

class CheckForUpdates_Dialog(QDialog2):

View In Hierarchy

CheckForUpdates_Dialog class.
Static Method parse_contents Extracts and parses the version number from the raw Version.py contents.
Static Method remote_contents Gets the contents of a remote file.
Method __init__ Initializes the dialog.
Method check_for_updates Checks for updates.

Inherited from QDialog2:

Method show Shows this dialog.
Method showEvent Gets called when the dialog is opened.
Instance Variable user_accepted Undocumented

Inherited from QLayouted (via QDialog2):

Method addButtons Adds buttons.
Method addLayout Adds layout.
Method addSpacing Adds spacing.
Method addWidget Adds widget.
Method install_layout Installs this layout in the parent.
Instance Variable _layout Undocumented
@staticmethod
def parse_contents(contents):
Extracts and parses the version number from the raw Version.py contents.
Parameters
contents:strContents
Returns
Optional[str]Version string if successful, None otherwise
@staticmethod
def remote_contents(url, timeout):
Gets the contents of a remote file.
Parameters
url:strURL
timeout:intTimeout (s)
Returns
Optional[str]Contents if successful, None otherwise
def __init__(self):
Initializes the dialog.
def check_for_updates(self):
Checks for updates.
Returns
Tuple[str, str, bool, bool]Icon, text, success flag, error flag