#NEWLINE# def save_to_clipboard( self ) : #NEWLINE# #INDENT# 'Saves a bitmap of the scene to the clipboard.' #NEWLINE# ( handler , name ) = tempfile . mkstemp ( ) #NEWLINE# self . save_bmp ( name ) #NEWLINE# QtGui . QApplication . clipboard ( ) . setImage ( QtGui . QImage ( name ) ) #NEWLINE# os . close ( handler ) #NEWLINE# os . unlink ( name )