projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e797067
)
bug fix
author
Robin Dunn
<robin@alldunn.com>
Wed, 7 Aug 2002 21:05:58 +0000
(21:05 +0000)
committer
Robin Dunn
<robin@alldunn.com>
Wed, 7 Aug 2002 21:05:58 +0000
(21:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16395
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
wxPython/demo/ScrolledPanel.py
patch
|
blob
|
blame
|
history
diff --git
a/wxPython/demo/ScrolledPanel.py
b/wxPython/demo/ScrolledPanel.py
index bd54d5bf2913d62d1fb99047523f3320890b3a83..2ff349b8f39e5bc041107ab667140d675fa05b6f 100644
(file)
--- a/
wxPython/demo/ScrolledPanel.py
+++ b/
wxPython/demo/ScrolledPanel.py
@@
-42,9
+42,10
@@
class ScrolledPanel(wxScrolledWindow):
self.EnableScrolling(false, true)
self.SetScrollRate(0, 20)
box.SetVirtualSizeHints(self)
-
EVT_CHILD_FOCUS(self, self.OnChildFocus)
+ wxCallAfter(self.Scroll, 0, 0) # scroll back to top after initial events
+
def OnChildFocus(self, evt):
# If the child window that gets the focus is not visible,