def __init__(self): Composite.__init__(self) self.tree = Tree() root = TreeItem(self.imageItemHTML("home.gif", "*****@*****.**")) self.tree.addItem(root) inboxItem = self.addImageItem(root, "Inbox") self.addImageItem(root, "Drafts") self.addImageItem(root, "Templates") self.addImageItem(root, "Sent") self.addImageItem(root, "Trash") root.setState(True) self.initWidget(self.tree)
def __init__(self): TreeItem.__init__(self, "Please wait...")