#NEWLINE# def __init__( self ) : #NEWLINE# #INDENT# super ( NotificationTrayExample , self ) . __init__ ( ) #NEWLINE# self . setSpacing ( True ) #NEWLINE# self . setWidth ( None ) #NEWLINE# caption = TextField ( 'Caption' , 'New message' ) #NEWLINE# caption . setWidth ( '200px' ) #NEWLINE# self . addComponent ( caption ) #NEWLINE# description = TextField ( 'Description' , '<b>John:</b> Could you upload Invoices-2008.csv so that...' ) #NEWLINE# description . setWidth ( '300px' ) #NEWLINE# self . addComponent ( description ) #NEWLINE# l = ShowListener ( self , caption , description ) #NEWLINE# show = Button ( 'Show notification' , l ) #NEWLINE# self . addComponent ( self ) #NEWLINE# self . setComponentAlignment ( show , Alignment . MIDDLE_RIGHT )