def make_modified_global_settings_valid(self): for key, value in self.modifiedDict.items(): if key == globalSettings.optionsHub.DownloadfilesPath: if not os.path.isdir(value): QMessageBox.critical(self, '错误', '您输入的不是一个文件夹!') return False globalSettings.__setattr__(key, value) self.modifiedDict.clear() self.check_control_buttons_state() return True
def record_volume(self): print('Recording: volume ...') globalSettings.__setattr__(globalSettings.optionsHub.Volume, self.volumeSlider.value())