Exemple #1
0
    def OnInit(self):
        #Start a new session
        session = Session()
        #Create the main frame
        self.frame = Frame(None, -1, session = session)
        self.frame.Show()
        self.SetTopWindow(self.frame)
        #Create the atom frame
        frame1 = wx.Frame(self.frame, -1, "Atoms")
        #frame1.SetMinSize((500,245))
        atomPanel(frame1, -1, session = session)
        frame1.Show()
        #Create the bond frame
        frame2 = wx.Frame(self.frame, -1, 'Bonds')
        #frame2.SetMinSize((655, 140))
        bondPanel(frame2, -1, session = session)
        #bondPanel.Fit()
        #frame2.Fit()
        #frame2.SetMinSize(frame2.GetSize())
        frame2.Show()

        return True
Exemple #2
0
	def showBondFrame(self):
		self.bondFrame = wx.Frame(self, -1, 'Bonds')
		bondPanel(self.bondFrame, -1, session = self.session)
		self.bondFrame.Bind(wx.EVT_CLOSE, self.OnBondFrameClose)
		self.bondFrame.Show()