CanvasSBG.py 文件源码

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

项目:CanvasSBG 作者: BRueckert 项目源码 文件源码
def setConfigs(self):
        '''
        Sets self.app_data info via a user provided pickle file in same directory
        '''
        try:
            inFile = open('Configs.pkl', 'rb')
        except FileNotFoundError:
            messagebox.showinfo(title='Error', message='Configs.pkl not found please create Config file first.')
            self.show_frame(ConfigsPage)
        else:
            pickleData = []
            for i in range(4):
                pickleData.append(pickle.load(inFile))
            inFile.close()
            self.app_data['baseURL'].set(pickleData[0])
            self.app_data['apiURL'].set(pickleData[1])
            self.app_data['account'].set(pickleData[2])
            self.app_data['token'].set(pickleData[3])

            self.show_frame(PageTwo)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号