DNATool2/Base.py
def update(self, sequence=None, enzymes=None, cutpos=None):
        """Update display of the current sequence(s)"""

        if sequence == None:
            X = self.getDatafromProject()
            if X == None:
                return
            else:
                sequence, enzymes, cutpos = X
        #remove previous
        self.clear()
        self.calculateScaling()
        self.drawDefaultLabels()
        #update sequence
        self.showSequence(sequence)
        self.colorSequence()
        self.drawSeqBackground()
        #if self.ORFselected == True:
        self.showAA3Seq(sequence)
        #draw restr sites
        if enzymes != None:
            self.showRestrictionSites(enzymes, cutpos)
        #update primers if selected
        #self.showPrimers()
        self.canvas.configure(bg=self.backgrcolor)
        return
Update display of the current sequence(s)
Update display of the current sequence(s)
Update display of the current sequence ( s )
def update(self, sequence=None, enzymes=None, cutpos=None):
        if sequence == None:
            X = self.getDatafromProject()
            if X == None:
                return
            else:
                sequence, enzymes, cutpos = X
        self.clear()
        self.calculateScaling()
        self.drawDefaultLabels()
        self.showSequence(sequence)
        self.colorSequence()
        self.drawSeqBackground()
        self.showAA3Seq(sequence)
        if enzymes != None:
            self.showRestrictionSites(enzymes, cutpos)
        self.canvas.configure(bg=self.backgrcolor)
        return
def update ( self , sequence = None , enzymes = None , cutpos = None ) : if sequence == None : X = self . getDatafromProject ( ) if X == None : return else : sequence , enzymes , cutpos = X self . clear ( ) self . calculateScaling ( ) self . drawDefaultLabels ( ) self . showSequence ( sequence ) self . colorSequence ( ) self . drawSeqBackground ( ) self . showAA3Seq ( sequence ) if enzymes != None : self . showRestrictionSites ( enzymes , cutpos ) self . canvas . configure ( bg = self . backgrcolor ) return
Update display of the current sequence(s)
Update display of the current sequence ( s )
"""Update display of the current sequence(s)""" #remove previous #update sequence #if self.ORFselected == True: #draw restr sites #update primers if selected #self.showPrimers()
self
sequence
enzymes
cutpos