(self)
Precalculate some values, this must be called whenever self.width, self.height or self.pixelsize is changed.
Precalculate some values, this must be called whenever self.width, self.height or self.pixelsize is changed.
Precalculate some values this must be called whenever self . width self . height or self . pixelsize is changed .
def _precalculate(self):
        """
        Precalculate some values, this must be called whenever self.width, self.height or self.pixelsize is changed.
        """
        self.line_length = self.width * self.pixelsize
        self.size = self.line_length * self.height
def _precalculate ( self ) : self . line_length = self . width * self . pixelsize self . size = self . line_length * self . height