#NEWLINE# def _qt4_on_triggered( self ) : #NEWLINE# #INDENT# ' Called when the tool bar tool is clicked. ' #NEWLINE# action = self . item . action #NEWLINE# action_event = ActionEvent ( ) #NEWLINE# if ( self . controller is not None ) : #NEWLINE# #INDENT# self . checked = action . checked = self . control . isChecked ( ) #NEWLINE# ( args , varargs , varkw , dflts ) = getargspec ( self . controller . perform ) #NEWLINE# if ( len ( action_event ) == 2 ) : #NEWLINE# #INDENT# self . controller . perform ( action ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . controller . perform ( action , action_event ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . checked = action . checked = self . control . isChecked ( ) #NEWLINE# ( args , varargs , varkw , dflts ) = getargspec ( action . perform ) #NEWLINE# if ( len ( args ) == 1 ) : #NEWLINE# #INDENT# action . perform ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# action . perform ( action_event )