Demo tweaks

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-06-04 00:54:35 +00:00
parent 7552d17984
commit eeab02964a
3 changed files with 16 additions and 16 deletions

View File

@@ -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")

View File

@@ -16,17 +16,17 @@ def runTest(frame, nb, log):
overview = """\
This class represents a dialog that shows a list of strings, and allows the user to select one. Double-clicking on a list item is equivalent to single-clicking and then pressing OK.
This class represents a dialog that shows a list of strings, and allows the user
to select one. Double-clicking on a list item is equivalent to single-clicking
and then pressing OK.
"""
if __name__ == '__main__':
import sys,os
import run
run.main(['', os.path.basename(sys.argv[0])])

View File

@@ -167,7 +167,7 @@ class TestTreeCtrlPanel(wxPanel):
event.Skip()
def OnActivate(self, evt):
def OnActivate(self, event):
self.log.WriteText("OnActivate: %s\n" % self.tree.GetItemText(self.item))