]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/samples/embedded/embedded_sample.py
dc67ef6f454d0925442579f708078c51c98531be
   2 from wx
.py 
import shell
, version
 
   4 class MyPanel(wx
.Panel
): 
   5     def __init__(self
, parent
): 
   6         wx
.Panel
.__init
__(self
, parent
, -1) 
   9         text 
= wx
.StaticText(self
, -1, 
  10                             "Everything on this side of the splitter comes from Python.") 
  11         text
.SetFont(wx
.Font(12, wx
.SWISS
, wx
.NORMAL
, wx
.BOLD
)) 
  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 
= wx
.BoxSizer(wx
.VERTICAL
) 
  18         sizer
.Add(text
, 0, wx
.EXPAND|wx
.ALL
, 10) 
  19         sizer
.Add(pycrust
, 1, wx
.EXPAND|wx
.BOTTOM|wx
.LEFT|wx
.RIGHT
, 10)