DNATool2/Base.py
def centerPage(self):
        """Center canvas on sequence after redraw"""
        top, bottom = self.yview()
        size = bottom - top
        if size==0: size=0.4
        middle = size * 0.4
        self.yview('moveto', middle)
        #print top, bottom
        #print middle
        return
Center canvas on sequence after redraw
Center canvas on sequence after redraw
Center canvas on sequence after redraw
def centerPage(self):
        top, bottom = self.yview()
        size = bottom - top
        if size==0: size=0.4
        middle = size * 0.4
        self.yview('moveto', middle)
        return
def centerPage ( self ) : top , bottom = self . yview ( ) size = bottom - top if size == 0 : size = 0.4 middle = size * 0.4 self . yview ( 'moveto' , middle ) return
Center canvas on sequence after redraw
Center canvas on sequence after redraw
"""Center canvas on sequence after redraw""" #print top, bottom #print middle
self