#NEWLINE# def Selected( self , selected = None ) : #NEWLINE# #INDENT# ' Gets or sets the selection state of the image.\n        ' #NEWLINE# if ( control is not None ) : #NEWLINE# #INDENT# selected = ( selected != 0 ) #NEWLINE# if ( selected != self . _selected ) : #NEWLINE# #INDENT# if selected : #NEWLINE# #INDENT# for control in self . GetParent ( ) . GetChildren ( ) : #NEWLINE# #INDENT# if ( isinstance ( control , ImageControl ) and control . Selected ( ) ) : #NEWLINE# #INDENT# control . Selected ( False ) #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# self . _selected = selected #NEWLINE# self . Refresh ( ) #NEWLINE# #UNINDENT# #UNINDENT# return self . _selected