#NEWLINE# def __init__( self ) : #NEWLINE# #INDENT# QtGui . QWidget . __init__ ( self ) #NEWLINE# self . ui = load_ui ( 'message_widget.ui' , labels , directory = os . path . dirname ( __file__ ) ) #NEWLINE# self . ui . messageTable . setColumnCount ( 3 ) #NEWLINE# labels = [ 'Time' , 'Message' , 'Sender' ] #NEWLINE# self . ui . messageTable . setHorizontalHeaderLabels ( labels )