def scale_cb(self, setting, value):
        """Handle callback related to image scaling."""
        zoomlevel = self.zoom.calc_level(value)
        self.t_.set(zoomlevel=zoomlevel)

        self.redraw(whence=0)
def scale_cb ( self , setting , value ) : zoomlevel = self . zoom . calc_level ( value ) self . t_ . set ( zoomlevel = zoomlevel ) self . redraw ( whence = 0 )
Handle callback related to image scaling.