2004-04-01 14:22:09 -05:00
|
|
|
import wx
|
|
|
|
from wx.py import shell, version
|
2002-05-02 00:45:47 -04:00
|
|
|
|
2004-04-01 14:22:09 -05:00
|
|
|
class MyPanel(wx.Panel):
|
2002-05-02 00:45:47 -04:00
|
|
|
def __init__(self, parent):
|
2004-04-01 14:22:09 -05:00
|
|
|
wx.Panel.__init__(self, parent, -1)
|
2002-05-02 00:45:47 -04:00
|
|
|
|
2004-04-01 14:22:09 -05:00
|
|
|
text = wx.StaticText(self, -1,
|
2002-05-02 00:45:47 -04:00
|
|
|
"Everything on this side of the splitter comes from Python.")
|
2004-04-01 14:22:09 -05:00
|
|
|
text.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD))
|
2002-05-02 00:45:47 -04:00
|
|
|
|
|
|
|
intro = 'Welcome To PyCrust %s - The Flakiest Python Shell' % version.VERSION
|
|
|
|
pycrust = shell.Shell(self, -1, introText=intro)
|
|
|
|
#pycrust = wxTextCtrl(self, -1, intro)
|
|
|
|
|
2004-04-01 14:22:09 -05:00
|
|
|
sizer = wx.BoxSizer(wx.VERTICAL)
|
|
|
|
sizer.Add(text, 0, wx.EXPAND|wx.ALL, 10)
|
|
|
|
sizer.Add(pycrust, 1, wx.EXPAND|wx.BOTTOM|wx.LEFT|wx.RIGHT, 10)
|
2002-05-02 00:45:47 -04:00
|
|
|
|
|
|
|
self.SetSizer(sizer)
|
|
|
|
|