]>
git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/tests/thtest.py
2 from wxPython
.wx
import *
5 def __init__(self
, data
="spam"):
10 frame
= wxFrame(NULL
, -1, "Close to get an error", wxDefaultPosition
,
13 tree
= wxTreeCtrl(frame
, -1, wxDefaultPosition
, wxDefaultSize
)
15 root
= tree
.AddRoot("Spam")
16 tree
.SetPyData(root
, someData())
17 #tree.SetPyData(root, "A string")
18 #tree.SetPyData(root, ["a list", "A string"])
21 self
.SetTopWindow(frame
)
28 print "got to the end"