Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
 def record_volume(self):
     print('Recording: volume ...')
     globalSettings.__setattr__(globalSettings.optionsHub.Volume,
                                self.volumeSlider.value())
Exemplo n.º 4
0
 def record_volume(self):
     print('Recording: volume ...')
     globalSettings.__setattr__(globalSettings.optionsHub.Volume, self.volumeSlider.value())