pijuice_gui.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:PiJuice 作者: PiSupply 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号