示例#1
0
 def makesure():
     import tkinter.messagebox
     if tkinter.messagebox.askokcancel("退出", "确定要关闭本程序?有好好膜拜CEILOPTY?"):
         from my_io import save_config
         save_config(self.root.configs)
         self.root.onoroff = 0
         self.destroy()
         self.root.destroy()
示例#2
0
 def reboot(kakunin=True):
     if kakunin:
         import tkinter.messagebox as messagebox
         if messagebox.askyesno('确认', '你确定要初始化么?此动作等于重启程序。'):
             from my_io import save_config
             save_config(self.root.configs)
             self.destroy()
             self.root.wcount += 1
             MainWindows(self.root)