<s> from pyjamas . ui . Composite import Composite <EOL> from pyjamas . ui . Tree import Tree <EOL> from pyjamas . ui . TreeItem import TreeItem <EOL> class Mailboxes ( Composite ) : <EOL> def __init__ ( self ) : <EOL> Composite . __init__ ( self ) <EOL> self . tree = Tree ( ) <EOL> root = TreeItem ( self . imageItemHTML ( "<STR_LIT>" , "<STR_LIT>" ) ) <EOL> self . tree . addItem ( root ) <EOL> inboxItem = self . addImageItem ( root , "<STR_LIT>" ) <EOL> self . addImageItem ( root , "<STR_LIT>" ) <EOL> self . addImageItem ( root , "<STR_LIT>" ) <EOL> self . addImageItem ( root , "<STR_LIT>" ) <EOL> self . addImageItem ( root , "<STR_LIT>" ) <EOL> root . setState ( True ) <EOL> self . initWidget ( self . tree ) <EOL> def addImageItem ( self , root , title ) : <EOL> item = TreeItem ( self . imageItemHTML ( title + "<STR_LIT>" , title ) ) <EOL> root . addItem ( item ) <EOL> return item <EOL> def imageItemHTML ( self , imageUrl , title ) : <EOL> value = "<STR_LIT>" <EOL> value += "<STR_LIT>" <EOL> value += imageUrl . lower ( ) + "<STR_LIT>" + title + "<STR_LIT>" <EOL> return value </s>
