pref.py 文件源码

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

项目:stopgo 作者: notklaatu 项目源码 文件源码
def __init__(self, parent, id, title, size,style):
        self.parent = parent
        self.screenSize = wx.DisplaySize()
        #self.screenSize = [ 786, 768 ]
        self.screenWidth = int(self.screenSize[0] / 3)
        self.screenHeight = int(self.screenSize[1] / 2)
        #fontsy = wx.SystemSettings.GetFont(wx.SYS_SYSTEM_FONT).GetPixelSize()        
        wx.Frame.__init__(self, parent, id, title, size=(400, 600), style=wx.DEFAULT_FRAME_STYLE)

        try:
            dosiero = open(os.path.join(os.path.expanduser("~"), '.config', 'stopgo.conf.json'))
            myprefs = json.load(dosiero)
        except:
            #print("No config found.") #DEBUG
            pass

        self.InitUI(myprefs)
        self.Show()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号