#NEWLINE# def __init__( self , port_spec , is_connected , is_optional , is_visible , is_editable = False , parent = None ) : #NEWLINE# #INDENT# QtGui . QTreeWidgetItem . __init__ ( self , parent ) #NEWLINE# self . setFlags ( QtCore . Qt . ItemIsEnabled ) #NEWLINE# self . port_spec = port_spec #NEWLINE# self . is_connected = is_connected #NEWLINE# self . is_optional = is_optional #NEWLINE# self . is_visible = is_visible #NEWLINE# self . is_editable = is_editable #NEWLINE# self . is_unset = False #NEWLINE# self . build_item ( port_spec , is_connected , is_optional , is_visible , is_editable )