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)
评论列表
文章目录