#NEWLINE# def set_icon( self , icon = None ) : #NEWLINE# #INDENT# " Sets the frame's icon.\n        " #NEWLINE# from pyface.image_resource import ImageResource #NEWLINE# if ( not isinstance ( icon , ImageResource ) ) : #NEWLINE# #INDENT# icon = ImageResource ( 'frame.ico' ) #NEWLINE# #UNINDENT# self . control . SetIcon ( icon . create_icon ( ) )