1 from wxPython
.wx
import *
2 from wxPython
.lib
.PyCrust
import shell
, version
4 class MyPanel(wxPanel
):
5 def __init__(self
, parent
):
6 wxPanel
.__init
__(self
, parent
, -1)
9 text
= wxStaticText(self
, -1,
10 "Everything on this side of the splitter comes from Python.")
11 text
.SetFont(wxFont(12, wxSWISS
, wxNORMAL
, wxBOLD
))
13 intro
= 'Welcome To PyCrust %s - The Flakiest Python Shell' % version
.VERSION
14 pycrust
= shell
.Shell(self
, -1, introText
=intro
)
15 #pycrust = wxTextCtrl(self, -1, intro)
17 sizer
= wxBoxSizer(wxVERTICAL
)
18 sizer
.Add(text
, 0, wxEXPAND|wxALL
, 10)
19 sizer
.Add(pycrust
, 1, wxEXPAND|wxBOTTOM|wxLEFT|wxRIGHT
, 10)
22 #self.SetAutoLayout(true)