PEATDB/DNAtool/primer_database.py
def save_primerDB(self):
        """Save the primers to a file"""

        savedir=os.getcwd()
        filename=tkFileDialog.asksaveasfilename(defaultextension='.primerDB',
                                                initialdir=savedir,
                                                filetypes=[("Primer database files","*.primerDB"),("All files","*.*")])
        if not filename:
            return

        # Write the file
        primers=self.parent.data['primer_dict'].copy()
        fd=open(filename,'wb')
        import pickle
        pickle.dump(primers,fd)
        fd.close()
        return
Save the primers to a file
Save the primers to a file
Save the primers to a file
def save_primerDB(self):
        savedir=os.getcwd()
        filename=tkFileDialog.asksaveasfilename(defaultextension='.primerDB',
                                                initialdir=savedir,
                                                filetypes=[("Primer database files","*.primerDB"),("All files","*.*")])
        if not filename:
            return
        primers=self.parent.data['primer_dict'].copy()
        fd=open(filename,'wb')
        import pickle
        pickle.dump(primers,fd)
        fd.close()
        return
def save_primerDB ( self ) : savedir = os . getcwd ( ) filename = tkFileDialog . asksaveasfilename ( defaultextension = '.primerDB' , initialdir = savedir , filetypes = [ ( "Primer database files" , "*.primerDB" ) , ( "All files" , "*.*" ) ] ) if not filename : return primers = self . parent . data [ 'primer_dict' ] . copy ( ) fd = open ( filename , 'wb' ) import pickle pickle . dump ( primers , fd ) fd . close ( ) return
Save the primers to a file
Save the primers to a file
"""Save the primers to a file""" # Write the file
self