PEATDB/DNAtool/primer_database.py
def delete_primer(self):
        """Delete a primer from the database"""

        self.clear_pDB_objects()
        # Delete a primer
        selection=int(str(self.primers.curselection()[0]))
        name_selected=self.primer_order[selection]
        print 'in primer_dict, deleting',name_selected
        del self.parent.data['primer_dict'][name_selected]

        # Update the view
        self.details.delete(1.0,END)
        self.show_pDB_contents()
        self.parent.projectChanged()
        return
Delete a primer from the database
Delete a primer from the database
Delete a primer from the database
def delete_primer(self):
        self.clear_pDB_objects()
        selection=int(str(self.primers.curselection()[0]))
        name_selected=self.primer_order[selection]
        print 'in primer_dict, deleting',name_selected
        del self.parent.data['primer_dict'][name_selected]
        self.details.delete(1.0,END)
        self.show_pDB_contents()
        self.parent.projectChanged()
        return
def delete_primer ( self ) : self . clear_pDB_objects ( ) selection = int ( str ( self . primers . curselection ( ) [ 0 ] ) ) name_selected = self . primer_order [ selection ] print 'in primer_dict, deleting' , name_selected del self . parent . data [ 'primer_dict' ] [ name_selected ] self . details . delete ( 1.0 , END ) self . show_pDB_contents ( ) self . parent . projectChanged ( ) return
Delete a primer from the database
Delete a primer from the database
"""Delete a primer from the database""" # Delete a primer # Update the view
self