def reboot_pigrow_click(self, e):
dbox = wx.MessageDialog(self, "Are you sure you want to reboot the pigrow?", "reboot pigrow?", wx.OK | wx.CANCEL | wx.ICON_QUESTION)
answer = dbox.ShowModal()
dbox.Destroy()
if (answer == wx.ID_OK):
out, error = MainApp.localfiles_ctrl_pannel.run_on_pi("sudo reboot now")
MainApp.pi_link_pnl.link_with_pi_btn_click("e")
print out, error
评论列表
文章目录