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:
@@ -14,7 +14,7 @@ import sys
|
|||||||
class TestNB(wxNotebook):
|
class TestNB(wxNotebook):
|
||||||
def __init__(self, parent, id, log):
|
def __init__(self, parent, id, log):
|
||||||
wxNotebook.__init__(self, parent, id, style=
|
wxNotebook.__init__(self, parent, id, style=
|
||||||
#0
|
#wxNB_TOP
|
||||||
wxNB_BOTTOM
|
wxNB_BOTTOM
|
||||||
#wxNB_LEFT
|
#wxNB_LEFT
|
||||||
#wxNB_RIGHT
|
#wxNB_RIGHT
|
||||||
@@ -59,11 +59,11 @@ class TestNB(wxNotebook):
|
|||||||
win = self.makeColorPanel(wxCYAN)
|
win = self.makeColorPanel(wxCYAN)
|
||||||
self.AddPage(win, "Cyan")
|
self.AddPage(win, "Cyan")
|
||||||
|
|
||||||
win = self.makeColorPanel(wxWHITE)
|
## win = self.makeColorPanel(wxWHITE)
|
||||||
self.AddPage(win, "White")
|
## self.AddPage(win, "White")
|
||||||
|
|
||||||
win = self.makeColorPanel(wxBLACK)
|
## win = self.makeColorPanel(wxBLACK)
|
||||||
self.AddPage(win, "Black")
|
## self.AddPage(win, "Black")
|
||||||
|
|
||||||
win = self.makeColorPanel(wxNamedColour('MIDNIGHT BLUE'))
|
win = self.makeColorPanel(wxNamedColour('MIDNIGHT BLUE'))
|
||||||
self.AddPage(win, "MIDNIGHT BLUE")
|
self.AddPage(win, "MIDNIGHT BLUE")
|
||||||
|
@@ -16,17 +16,17 @@ def runTest(frame, nb, log):
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
overview = """\
|
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])])
|
||||||
|
|
||||||
|
@@ -167,7 +167,7 @@ class TestTreeCtrlPanel(wxPanel):
|
|||||||
event.Skip()
|
event.Skip()
|
||||||
|
|
||||||
|
|
||||||
def OnActivate(self, evt):
|
def OnActivate(self, event):
|
||||||
self.log.WriteText("OnActivate: %s\n" % self.tree.GetItemText(self.item))
|
self.log.WriteText("OnActivate: %s\n" % self.tree.GetItemText(self.item))
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user