main.py 文件源码

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

项目:cebl 作者: idfah 项目源码 文件源码
def __init__(self):
        """Initialize the main GUI frame.
        """
        # set frame size to reasonable value
        ##displaySize = [int(0.75*s) for s in wx.DisplaySize()]

        # hack to help on dual-screen, need something better XXX - idfah
        displaySize = wx.DisplaySize()
        displaySize = 1.2*displaySize[1], 0.75*displaySize[1]

        # call base class constructor
        wx.Frame.__init__(self, parent=None, title='CEBL3', size=displaySize)

        # initialize the main notebook
        self.initNotebook()

        # initialize the page and source manager
        self.mgr = Manager(pageParent=self.notebook, statusPanel=self)

        # add all pages to the notebook
        self.initNotebookPages()

        # initialize the status bar
        self.initStatusBar()

        # initialize the top-level layout
        self.initLayout()

        # cleanup when main frame is closed
        self.Bind(wx.EVT_CLOSE, self.close)

        # toggle full screen on EVT_FULLSCREEN events
        self.Bind(events.EVT_FULLSCREEN, self.toggleFullScreen)

        # update the status bar on EVT_UPDATE_STATUS events
        self.Bind(events.EVT_UPDATE_STATUS, self.updateStatusBar)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号