Lines Matching refs:canvheight
336 canvwidth=600, canvheight=500): argument
340 self.canvwidth, self.canvheight = canvwidth, canvheight
360 def reset(self, canvwidth=None, canvheight=None, bg = None): argument
364 if canvheight:
365 self.canvheight = canvheight
369 scrollregion=(-self.canvwidth//2, -self.canvheight//2,
370 self.canvwidth//2, self.canvheight//2))
373 self._canvas.yview_moveto(0.5*(self.canvheight- self.height + 30) /
374 self.canvheight)
384 self._canvas.yview_moveto(0.5*(self.canvheight-cheight)/self.canvheight)
385 if cwidth < self.canvwidth or cheight < self.canvheight:
485 h = self.cv.canvheight
491 self.canvheight = h
774 def _resize(self, canvwidth=None, canvheight=None, bg=None): argument
780 return self.canvwidth, self.canvheight
781 if canvwidth is canvheight is bg is None:
782 return self.cv.canvwidth, self.cv.canvheight
785 if canvheight is not None:
786 self.canvheight = canvheight
787 self.cv.reset(canvwidth, canvheight, bg)
1063 self._setscrollregion(-self.canvwidth//2, -self.canvheight//2,
1064 self.canvwidth//2, self.canvheight//2)
1098 self.yscale = self.canvheight / yspan
1102 sry2 = self.canvheight + sry1
1485 def screensize(self, canvwidth=None, canvheight=None, bg=None): argument
1502 return self._resize(canvwidth, canvheight, bg)
3685 canvheight = _CFG["canvheight"]
3688 self._root.setupcanvas(width, height, canvwidth, canvheight)