#NEWLINE# def __init__( self , tabBar = None , * kwargs ) : #NEWLINE# #INDENT# TabPanel . __init__ ( self , tabBar , * kwargs ) #NEWLINE# self . parent_buoy = None #NEWLINE# self . tabs = [ { #NEWLINE# #INDENT# 'hovertype' : ListBox ( ) , #NEWLINE# 'name' : 'Cost' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'hovertype' : ListBox ( ) , #NEWLINE# 'name' : 'Speed' , #NEWLINE# #UNINDENT# } ] #NEWLINE# self . cost = self . tabs [ 0 ] [ 'hovertype' ] #NEWLINE# items = [ 'cheap' , 'next to cheap' , 'average' , 'above average' , 'expensive' , 'if you have to ask' ] #NEWLINE# self . cost . setVisibleItemCount ( len ( items ) ) #NEWLINE# for item in items : #NEWLINE# #INDENT# self . cost . addItem ( item ) #NEWLINE# #UNINDENT# self . cost . addChangeListener ( self ) #NEWLINE# self . speed = self . tabs [ 1 ] [ 'hovertype' ] #NEWLINE# items = [ 'very slow' , 'slow' , 'average' , 'above average' , 'fast' , 'quick' , 'hyper' , 'turbo' , 'lightening' , 'light' ] #NEWLINE# self . speed . setVisibleItemCount ( len ( items ) ) #NEWLINE# for item in items : #NEWLINE# #INDENT# self . speed . addItem ( item ) #NEWLINE# #UNINDENT# self . speed . addChangeListener ( self ) #NEWLINE# for tab in self . tabs : #NEWLINE# #INDENT# h = HorizontalPanel ( ) #NEWLINE# h . add ( tab [ 'hovertype' ] ) #NEWLINE# self . add ( h , tab [ 'name' ] )