]> git.saurik.com Git - wxWidgets.git/blame - wxPython/samples/embedded/embedded_sample.py
Script updates
[wxWidgets.git] / wxPython / samples / embedded / embedded_sample.py
CommitLineData
a2426843
RD
1from wxPython.wx import *
2from wxPython.lib.PyCrust import shell, version
3
4class MyPanel(wxPanel):
5 def __init__(self, parent):
6 wxPanel.__init__(self, parent, -1)
7 print parent
8
9 text = wxStaticText(self, -1,
10 "Everything on this side of the splitter comes from Python.")
11 text.SetFont(wxFont(12, wxSWISS, wxNORMAL, wxBOLD))
12
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)
16
17 sizer = wxBoxSizer(wxVERTICAL)
18 sizer.Add(text, 0, wxEXPAND|wxALL, 10)
19 sizer.Add(pycrust, 1, wxEXPAND|wxBOTTOM|wxLEFT|wxRIGHT, 10)
20
21 self.SetSizer(sizer)
22 #self.SetAutoLayout(true)
23 #self.Layout()
24