def __init__(self, main_window, latest_version=None):
    self.main_window = main_window
    QWidget.__init__(self)
    self.setWindowTitle(('PacGlobal Electrum - ' + _('Update Check')))
    self.content = QVBoxLayout()
    self.content.setContentsMargins(*([10] * 4))
    self.heading_label = QLabel()
    self.content.addWidget(self.heading_label)
    self.detail_label = QLabel()
    self.detail_label.setTextInteractionFlags(Qt.LinksAccessibleByMouse)
    self.detail_label.setOpenExternalLinks(True)
    self.content.addWidget(self.detail_label)
    self.pb = QProgressBar()
    self.pb.setMaximum(0)
    self.pb.setMinimum(0)
    self.content.addWidget(self.pb)
    versions = QHBoxLayout()
    versions.addWidget(QLabel(_('Current version: {}'.format(version.ELECTRUM_VERSION))))
    self.latest_version_label = QLabel(_('Latest version: {}'.format(' ')))
    versions.addWidget(self.latest_version_label)
    self.content.addLayout(versions)
    self.update_view(latest_version)
    self.update_check_thread = UpdateCheckThread(self.main_window)
    self.update_check_thread.checked.connect(self.on_version_retrieved)
    self.update_check_thread.failed.connect(self.on_retrieval_failed)
    self.update_check_thread.start()
    close_button = QPushButton(_('Close'))
    close_button.clicked.connect(self.close)
    self.content.addWidget(close_button)
    self.setLayout(self.content)
    self.show()
def __init__(self, main_window, latest_version=None):
    self.main_window = main_window
    QWidget.__init__(self)
    self.setWindowTitle(('PacGlobal Electrum - ' + _('Update Check')))
    self.content = QVBoxLayout()
    self.content.setContentsMargins(*([10] * 4))
    self.heading_label = QLabel()
    self.content.addWidget(self.heading_label)
    self.detail_label = QLabel()
    self.detail_label.setTextInteractionFlags(Qt.LinksAccessibleByMouse)
    self.detail_label.setOpenExternalLinks(True)
    self.content.addWidget(self.detail_label)
    self.pb = QProgressBar()
    self.pb.setMaximum(0)
    self.pb.setMinimum(0)
    self.content.addWidget(self.pb)
    versions = QHBoxLayout()
    versions.addWidget(QLabel(_('Current version: {}'.format(version.ELECTRUM_VERSION))))
    self.latest_version_label = QLabel(_('Latest version: {}'.format(' ')))
    versions.addWidget(self.latest_version_label)
    self.content.addLayout(versions)
    self.update_view(latest_version)
    self.update_check_thread = UpdateCheckThread(self.main_window)
    self.update_check_thread.checked.connect(self.on_version_retrieved)
    self.update_check_thread.failed.connect(self.on_retrieval_failed)
    self.update_check_thread.start()
    close_button = QPushButton(_('Close'))
    close_button.clicked.connect(self.close)
    self.content.addWidget(close_button)
    self.setLayout(self.content)
    self.show()