projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upport scrolling changes and mouse wheel changes.
[wxWidgets.git]
/
wxPython
/
samples
/
embedded
/
embedded_sample.py
diff --git
a/wxPython/samples/embedded/embedded_sample.py
b/wxPython/samples/embedded/embedded_sample.py
index 5fa38aba931e00b0f8ade1f704e1a68d94a9a50b..56e46926d807f9f122bb7c962106a3868330232f 100644
(file)
--- a/
wxPython/samples/embedded/embedded_sample.py
+++ b/
wxPython/samples/embedded/embedded_sample.py
@@
-3,15
+3,14
@@
from wx.py import shell, version
class MyPanel(wx.Panel):
def __init__(self, parent):
class MyPanel(wx.Panel):
def __init__(self, parent):
- wx.Panel.__init__(self, parent, -1)
+ wx.Panel.__init__(self, parent, -1
, style=wx.SUNKEN_BORDER
)
text = wx.StaticText(self, -1,
"Everything on this side of the splitter comes from Python.")
text = wx.StaticText(self, -1,
"Everything on this side of the splitter comes from Python.")
- text.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD))
-
+
intro = 'Welcome To PyCrust %s - The Flakiest Python Shell' % version.VERSION
pycrust = shell.Shell(self, -1, introText=intro)
intro = 'Welcome To PyCrust %s - The Flakiest Python Shell' % version.VERSION
pycrust = shell.Shell(self, -1, introText=intro)
- #pycrust = wxTextCtrl(self, -1, intro)
+ #pycrust = wx
.
TextCtrl(self, -1, intro)
sizer = wx.BoxSizer(wx.VERTICAL)
sizer.Add(text, 0, wx.EXPAND|wx.ALL, 10)
sizer = wx.BoxSizer(wx.VERTICAL)
sizer.Add(text, 0, wx.EXPAND|wx.ALL, 10)