wxPython Merge #2 of 2.4 branch --> HEAD (branch tag: wxPy_2_4_merge_2)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -14,7 +14,7 @@ import sys
|
||||
class TestNB(wxNotebook):
|
||||
def __init__(self, parent, id, log):
|
||||
wxNotebook.__init__(self, parent, id, style=
|
||||
#0
|
||||
#wxNB_TOP
|
||||
wxNB_BOTTOM
|
||||
#wxNB_LEFT
|
||||
#wxNB_RIGHT
|
||||
@@ -59,11 +59,11 @@ class TestNB(wxNotebook):
|
||||
win = self.makeColorPanel(wxCYAN)
|
||||
self.AddPage(win, "Cyan")
|
||||
|
||||
win = self.makeColorPanel(wxWHITE)
|
||||
self.AddPage(win, "White")
|
||||
## win = self.makeColorPanel(wxWHITE)
|
||||
## self.AddPage(win, "White")
|
||||
|
||||
win = self.makeColorPanel(wxBLACK)
|
||||
self.AddPage(win, "Black")
|
||||
## win = self.makeColorPanel(wxBLACK)
|
||||
## self.AddPage(win, "Black")
|
||||
|
||||
win = self.makeColorPanel(wxNamedColour('MIDNIGHT BLUE'))
|
||||
self.AddPage(win, "MIDNIGHT BLUE")
|
||||
@@ -88,16 +88,17 @@ class TestNB(wxNotebook):
|
||||
def OnPageChanged(self, event):
|
||||
old = event.GetOldSelection()
|
||||
new = event.GetSelection()
|
||||
self.log.write('OnPageChanged, old:%d, new:%d\n' % (old, new))
|
||||
sel = self.GetSelection()
|
||||
self.log.write('OnPageChanged, old:%d, new:%d, sel:%d\n' % (old, new, sel))
|
||||
event.Skip()
|
||||
|
||||
def OnPageChanging(self, event):
|
||||
old = event.GetOldSelection()
|
||||
new = event.GetSelection()
|
||||
self.log.write('OnPageChanging, old:%d, new:%d\n' % (old, new))
|
||||
sel = self.GetSelection()
|
||||
self.log.write('OnPageChanging, old:%d, new:%d, sel:%d\n' % (old, new, sel))
|
||||
event.Skip()
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
def runTest(frame, nb, log):
|
||||
|
Reference in New Issue
Block a user