app, and added a sample showing how to do it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
		
			
				
	
	
		
			25 lines
		
	
	
		
			818 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			818 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from wxPython.wx import *
 | 
						|
from wxPython.lib.PyCrust import shell, version
 | 
						|
 | 
						|
class MyPanel(wxPanel):
 | 
						|
    def __init__(self, parent):
 | 
						|
        wxPanel.__init__(self, parent, -1)
 | 
						|
        print parent
 | 
						|
 | 
						|
        text = wxStaticText(self, -1,
 | 
						|
                            "Everything on this side of the splitter comes from Python.")
 | 
						|
        text.SetFont(wxFont(12, wxSWISS, wxNORMAL, wxBOLD))
 | 
						|
 | 
						|
        intro = 'Welcome To PyCrust %s - The Flakiest Python Shell' % version.VERSION
 | 
						|
        pycrust = shell.Shell(self, -1, introText=intro)
 | 
						|
        #pycrust = wxTextCtrl(self, -1, intro)
 | 
						|
 | 
						|
        sizer = wxBoxSizer(wxVERTICAL)
 | 
						|
        sizer.Add(text, 0, wxEXPAND|wxALL, 10)
 | 
						|
        sizer.Add(pycrust, 1, wxEXPAND|wxBOTTOM|wxLEFT|wxRIGHT, 10)
 | 
						|
 | 
						|
        self.SetSizer(sizer)
 | 
						|
        #self.SetAutoLayout(true)
 | 
						|
        #self.Layout()
 | 
						|
 |