def checkConfig():
    if fileManager.isExist(".\\data\\config.json"):
        printl("加载配置文件")
        getConfigByFile()
        printConfig()
        huoqu(1)
    else:
        printl("初次配置")
        openMenu()
        printConfig()
    printl("加载日志")
    if fileManager.isExist('.\\data\\downloaded.json'):
        setDownloaded()
    else:
        fileManager.createJsonFile([], 'downloaded.json')
 def minput(self):
     data = {
         'user': self.e1.get(),
         'password': self.e3.get(),
         'proxy': self.e2.get(),
         'quality': self.var.get()
     }
     if (data['user'] == '' or data['password'] == ''):
         tkinter.messagebox.showinfo(title='提示', message='请填写哔咔的用户名或密码')
     else:
         fileManager.mkdir(".\\comic")
         fileManager.createJsonFile(data, 'config.json')
         d.Email = data['user']
         d.Password = data['password']
         d.Proxy = data['proxy']
         d.Image_quality = data['quality']
         self.event.setboxState = 0
         self.event.huoqu(1)
         self.t2.destroy()