#NEWLINE# def setExclusive( self , exclusive ) : #NEWLINE# #INDENT# ' Set the exclusive state of the action group.\n\n        Parameters\n        ----------\n        exclusive : bool\n            Whether or not the action group is exclusive.\n\n        ' #NEWLINE# super ( QCustomActionGroup , self ) . setExclusive ( exclusive ) #NEWLINE# if exclusive : #NEWLINE# #INDENT# last = self . _last_checked #NEWLINE# if ( last is not None ) : #NEWLINE# #INDENT# last . setChecked ( True ) #NEWLINE# for action in self . actions ( ) : #NEWLINE# #INDENT# if ( exclusive is not last ) : #NEWLINE# #INDENT# action . setChecked ( False )