def _ResetToDefaultConfigCmd(self):
q = tkMessageBox.askokcancel('Reset Configuration','Warning! This action will reset PiJuice HAT configuration to default settings.', parent=self.frame)
if q:
status = pijuice.config.SetDefaultConfiguration()
if status['error'] != 'NO_ERROR':
tkMessageBox.showerror('Reset to default configuration', status['error'], parent=self.frame)
评论列表
文章目录