def update_to_last_version(self): uf.save_current_version(self.last_version) self.current_version = uf.get_current_version() self.check_current_version() archive_path = uf.get_update_archive_from_server(self.updates[-1].get('update_archive')) uf.update_from_archive(archive_path) env_inst.ui_main.restart_for_update_ui_main()
def __init__(self, parent=None): super(self.__class__, self).__init__(parent=parent) self.setupUi(self) uf.get_updates_from_server() self.updates = uf.get_info_from_updates_folder() self.last_version = None self.current_version = uf.get_current_version() self.load_local_updates() self.check_current_version() self.controls_actions() self.commitPushButton.setHidden(True)
def initial_fill_version_spinbox(self): version_dict = uf.get_current_version() self.majorSpinBox.setValue(int(version_dict['major'])) self.minorSpinBox.setValue(int(version_dict['minor'])) self.buildSpinBox.setValue(int(version_dict['build'])) self.revisionSpinBox.setValue(int(version_dict['revision']))