def update_view(self, latest_version=None):
    if latest_version:
        self.pb.hide()
        self.latest_version_label.setText(_('Latest version: {}'.format(latest_version)))
        if self.is_newer(latest_version):
            self.heading_label.setText((('<h2>' + _('There is a new update available')) + '</h2>'))
            url = "<a href='{u}'>{u}</a>".format(u=UpdateCheck.download_url)
            self.detail_label.setText(_('You can download the new version from {}.').format(url))
        else:
            self.heading_label.setText((('<h2>' + _('Already up to date')) + '</h2>'))
            self.detail_label.setText(_('You are already on the latest version of PacGlobal Electrum.'))
    else:
        self.heading_label.setText((('<h2>' + _('Checking for updates...')) + '</h2>'))
        self.detail_label.setText(_('Please wait while PacGlobal Electrum checks for available updates.'))
def update_view(self, latest_version=None):
    if latest_version:
        self.pb.hide()
        self.latest_version_label.setText(_('Latest version: {}'.format(latest_version)))
        if self.is_newer(latest_version):
            self.heading_label.setText((('<h2>' + _('There is a new update available')) + '</h2>'))
            url = "<a href='{u}'>{u}</a>".format(u=UpdateCheck.download_url)
            self.detail_label.setText(_('You can download the new version from {}.').format(url))
        else:
            self.heading_label.setText((('<h2>' + _('Already up to date')) + '</h2>'))
            self.detail_label.setText(_('You are already on the latest version of PacGlobal Electrum.'))
    else:
        self.heading_label.setText((('<h2>' + _('Checking for updates...')) + '</h2>'))
        self.detail_label.setText(_('Please wait while PacGlobal Electrum checks for available updates.'))