#NEWLINE# def onFileSaveAs( self ) : #NEWLINE# #INDENT# data = self . timeProxy . exportData ( ) #NEWLINE# data_uri = ( 'data:text/plain;base64,%s' % base64 . encodestring ( data ) ) #NEWLINE# w = wnd ( ) . open ( '' , '_blank' , 'scrollbars=yes,width=300,height=300' ) #NEWLINE# w . document . open ( 'text/html' ) #NEWLINE# w . document . write ( ( '<a href="%s">Right click here</a> if your browser supports data uri<br />Otherwise, you\'ll have to copy and paste this output to a text file<br />\n' % data_uri ) ) #NEWLINE# w . document . write ( '<pre>' ) #NEWLINE# w . document . write ( data ) #NEWLINE# w . document . write ( '</pre>' ) #NEWLINE# w . document . close ( )