Ghost/EM_effect.py
def print_chemshift_to_file(self):
        """Print the chemical shift canvas to file"""
        import sys, os
        import tkFileDialog, os
        if not hasattr(self,'lastdir'):
            self.lastdir=os.getcwd()
        filename=tkFileDialog.asksaveasfilename(defaultextension='.ps',
                                                initialdir=self.lastdir,
                                                filetypes=[("Postscript files","*.ps"),("All files","*.*")])
        if filename:
            import os
            self.lastdir=os.path.split(filename)[0]
            if filename[-3:]!='.ps':
                filename=filename+'.ps'
            self.tc.postscript(colormode='color',file=filename)
        return
Print the chemical shift canvas to file
Print the chemical shift canvas to file
Print the chemical shift canvas to file
def print_chemshift_to_file(self):
        import sys, os
        import tkFileDialog, os
        if not hasattr(self,'lastdir'):
            self.lastdir=os.getcwd()
        filename=tkFileDialog.asksaveasfilename(defaultextension='.ps',
                                                initialdir=self.lastdir,
                                                filetypes=[("Postscript files","*.ps"),("All files","*.*")])
        if filename:
            import os
            self.lastdir=os.path.split(filename)[0]
            if filename[-3:]!='.ps':
                filename=filename+'.ps'
            self.tc.postscript(colormode='color',file=filename)
        return
def print_chemshift_to_file ( self ) : import sys , os import tkFileDialog , os if not hasattr ( self , 'lastdir' ) : self . lastdir = os . getcwd ( ) filename = tkFileDialog . asksaveasfilename ( defaultextension = '.ps' , initialdir = self . lastdir , filetypes = [ ( "Postscript files" , "*.ps" ) , ( "All files" , "*.*" ) ] ) if filename : import os self . lastdir = os . path . split ( filename ) [ 0 ] if filename [ - 3 : ] != '.ps' : filename = filename + '.ps' self . tc . postscript ( colormode = 'color' , file = filename ) return
Print the chemical shift canvas to file
Print the chemical shift canvas to file
"""Print the chemical shift canvas to file"""
self