'Set the correct value when the current tab changed.'

def on_tab_changed(self, tab):

    if (self is None):
        return
    self.setValue(tab.progress())
    if (tab.load_status() == usertypes.LoadStatus.loading):
        self.show()
    else:
        self.hide()
