#NEWLINE# def on_user_select( self , item ) : #NEWLINE# #INDENT# if ( item == ( - 1 ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# self . user = self . users [ item ] #NEWLINE# username = self . user [ 0 ] #NEWLINE# self . actions = [ 'Kick' ] #NEWLINE# if ( username in G . FOLLOW_USERS ) : #NEWLINE# #INDENT# self . actions . append ( 'Unfollow' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . actions . append ( 'Follow' ) #NEWLINE# #UNINDENT# actions = [ ( '%s %s' % ( a , username ) ) for a in self . actions ] #NEWLINE# self . window . show_quick_panel ( actions , self . on_user_action )