예제 #1
0
    def __init__(self, id=-1, title='', pos=wx.DefaultPosition,
                 size=wx.DefaultSize, 
                 style=wx.DEFAULT_FRAME_STYLE|wx.SUNKEN_BORDER|wx.CLIP_CHILDREN,
                 configs={}):
        """Constructor."""
        wx.Frame.__init__(self, None, id, title, pos, size, style)

        # self.res = None
        self.configs = configs if configs else {}

        # initialize views
        self.initView()
        self.initMenuBar()
        self.initStatusBar()
        
        self.CentreOnScreen(True)
        self.Show(True)

        # molview
        self.molview_frame = wx.Frame(self, -1, title='Molecule View Dlg', size=(450, 450))
        self.molview=molview.myGLCanvas(self.molview_frame)
        self.molview_frame.Show()
예제 #2
0
 def onMoleculeViewDlg(self, event):
     frame = wx.Frame(self, -1, title='Molecule View Dlg', size=(450, 450))
     self.molview=molview.myGLCanvas(frame)
     frame.Show()
     return True