DNATool2/Base.py
def drawSiteConnector(self,x2,y2,uid,move=False):
        """Draw line connecting site label to sequence"""
        c = self.canvas
        pos = self.restrictionsites[uid]
        x1 = self.getBasePosition(pos)
        y1 = self.baserow-15

        if move==True:
            old = list(set(c.find_withtag(uid))&set(c.find_withtag('line')))
            for i in old:
                c.delete(i)
        line = c.create_line(x1,y1,x1,y2, fill='blue',
                              width=2,stipple='gray25',
                              tag=(uid,'line','restrsite'))
        c.tag_lower(line)
        line = c.create_line(x1,y2,x2,y2, fill='blue',
                              width=2,stipple='gray25',
                              tag=(uid,'line','restrsite'))
        c.tag_lower(line)
        return
Draw line connecting site label to sequence
Draw line connecting site label to sequence
Draw line connecting site label to sequence
def drawSiteConnector(self,x2,y2,uid,move=False):
        c = self.canvas
        pos = self.restrictionsites[uid]
        x1 = self.getBasePosition(pos)
        y1 = self.baserow-15
        if move==True:
            old = list(set(c.find_withtag(uid))&set(c.find_withtag('line')))
            for i in old:
                c.delete(i)
        line = c.create_line(x1,y1,x1,y2, fill='blue',
                              width=2,stipple='gray25',
                              tag=(uid,'line','restrsite'))
        c.tag_lower(line)
        line = c.create_line(x1,y2,x2,y2, fill='blue',
                              width=2,stipple='gray25',
                              tag=(uid,'line','restrsite'))
        c.tag_lower(line)
        return
def drawSiteConnector ( self , x2 , y2 , uid , move = False ) : c = self . canvas pos = self . restrictionsites [ uid ] x1 = self . getBasePosition ( pos ) y1 = self . baserow - 15 if move == True : old = list ( set ( c . find_withtag ( uid ) ) & set ( c . find_withtag ( 'line' ) ) ) for i in old : c . delete ( i ) line = c . create_line ( x1 , y1 , x1 , y2 , fill = 'blue' , width = 2 , stipple = 'gray25' , tag = ( uid , 'line' , 'restrsite' ) ) c . tag_lower ( line ) line = c . create_line ( x1 , y2 , x2 , y2 , fill = 'blue' , width = 2 , stipple = 'gray25' , tag = ( uid , 'line' , 'restrsite' ) ) c . tag_lower ( line ) return
Draw line connecting site label to sequence
Draw line connecting site label to sequence
"""Draw line connecting site label to sequence"""
self
x2
y2
uid
move