]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/samples/embedded/embedded_sample.py
wxMac has wxSound::Stop now
[wxWidgets.git] / wxPython / samples / embedded / embedded_sample.py
... / ...
CommitLineData
1import wx
2from wx.py import shell, version
3
4class MyPanel(wx.Panel):
5 def __init__(self, parent):
6 wx.Panel.__init__(self, parent, -1, style=wx.SUNKEN_BORDER)
7
8 text = wx.StaticText(self, -1,
9 "Everything on this side of the splitter comes from Python.")
10
11 intro = 'Welcome To PyCrust %s - The Flakiest Python Shell' % version.VERSION
12 pycrust = shell.Shell(self, -1, introText=intro)
13 #pycrust = wxTextCtrl(self, -1, intro)
14
15 sizer = wx.BoxSizer(wx.VERTICAL)
16 sizer.Add(text, 0, wx.EXPAND|wx.ALL, 10)
17 sizer.Add(pycrust, 1, wx.EXPAND|wx.BOTTOM|wx.LEFT|wx.RIGHT, 10)
18
19 self.SetSizer(sizer)
20