Demo updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15206 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -29,7 +29,7 @@ sit back and enjoy. Be sure to take a peek at the source code for each
|
|||||||
demo item so you can learn how to use the classes yourself.</p>
|
demo item so you can learn how to use the classes yourself.</p>
|
||||||
|
|
||||||
<p><b>wxPython</b> is brought to you by <b>Robin Dunn</b> and<br>
|
<p><b>wxPython</b> is brought to you by <b>Robin Dunn</b> and<br>
|
||||||
<b>Total Control Software</b>, Copyright (c) 1997-2001.</p>
|
<b>Total Control Software</b>, Copyright (c) 1997-2002.</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<font size="-1">Please see <i>license.txt</i> for licensing information.</font>
|
<font size="-1">Please see <i>license.txt</i> for licensing information.</font>
|
||||||
|
@@ -248,12 +248,6 @@ _treeList = [
|
|||||||
('Check out the samples dir too', [
|
('Check out the samples dir too', [
|
||||||
]),
|
]),
|
||||||
|
|
||||||
#~ ('Cool Contribs', [
|
|
||||||
#~ 'pyTree',
|
|
||||||
#~ 'hangman',
|
|
||||||
#'SlashDot',
|
|
||||||
#~ 'XMLtreeview'
|
|
||||||
#~ ]),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
@@ -388,25 +382,9 @@ class wxPythonDemo(wxFrame):
|
|||||||
self.nb = wxNotebook(splitter2, -1, style=wxCLIP_CHILDREN)
|
self.nb = wxNotebook(splitter2, -1, style=wxCLIP_CHILDREN)
|
||||||
|
|
||||||
# Set up a wxHtmlWindow on the Overview Notebook page
|
# Set up a wxHtmlWindow on the Overview Notebook page
|
||||||
# we put it in a panel first because there seems to be a
|
|
||||||
# refresh bug of some sort (wxGTK) when it is directly in
|
|
||||||
# the notebook...
|
|
||||||
if 0: # the old way
|
|
||||||
self.ovr = wxHtmlWindow(self.nb, -1, size=(400, 400))
|
self.ovr = wxHtmlWindow(self.nb, -1, size=(400, 400))
|
||||||
self.nb.AddPage(self.ovr, self.overviewText)
|
self.nb.AddPage(self.ovr, self.overviewText)
|
||||||
|
|
||||||
else: # hopefully I can remove this hacky code soon, see bug #216861
|
|
||||||
panel = wxPanel(self.nb, -1, style=wxCLIP_CHILDREN)
|
|
||||||
self.ovr = wxHtmlWindow(panel, -1, size=(400, 400))
|
|
||||||
self.nb.AddPage(panel, self.overviewText)
|
|
||||||
|
|
||||||
def OnOvrSize(evt, ovr=self.ovr):
|
|
||||||
ovr.SetSize(evt.GetSize())
|
|
||||||
|
|
||||||
EVT_SIZE(panel, OnOvrSize)
|
|
||||||
EVT_ERASE_BACKGROUND(panel, EmptyHandler)
|
|
||||||
|
|
||||||
|
|
||||||
self.SetOverview(self.overviewText, overview)
|
self.SetOverview(self.overviewText, overview)
|
||||||
|
|
||||||
|
|
||||||
@@ -485,7 +463,7 @@ class wxPythonDemo(wxFrame):
|
|||||||
pt = event.GetPosition();
|
pt = event.GetPosition();
|
||||||
item, flags = self.tree.HitTest(pt)
|
item, flags = self.tree.HitTest(pt)
|
||||||
if item == self.tree.GetSelection():
|
if item == self.tree.GetSelection():
|
||||||
self.SetOverview(self.tree.GetItemText(item), self.curOverview)
|
self.SetOverview(self.tree.GetItemText(item)+" Overview", self.curOverview)
|
||||||
event.Skip()
|
event.Skip()
|
||||||
|
|
||||||
#---------------------------------------------
|
#---------------------------------------------
|
||||||
|
Reference in New Issue
Block a user