Lines Matching refs:canvheight
360 canvwidth=600, canvheight=500): argument
364 self.canvwidth, self.canvheight = canvwidth, canvheight
384 def reset(self, canvwidth=None, canvheight=None, bg = None): argument
388 if canvheight:
389 self.canvheight = canvheight
393 scrollregion=(-self.canvwidth//2, -self.canvheight//2,
394 self.canvwidth//2, self.canvheight//2))
397 self._canvas.yview_moveto(0.5*(self.canvheight- self.height + 30) /
398 self.canvheight)
408 self._canvas.yview_moveto(0.5*(self.canvheight-cheight)/self.canvheight)
409 if cwidth < self.canvwidth or cheight < self.canvheight:
509 h = self.cv.canvheight
515 self.canvheight = h
780 def _resize(self, canvwidth=None, canvheight=None, bg=None): argument
786 return self.canvwidth, self.canvheight
787 if canvwidth is canvheight is bg is None:
788 return self.cv.canvwidth, self.cv.canvheight
791 if canvheight is not None:
792 self.canvheight = canvheight
793 self.cv.reset(canvwidth, canvheight, bg)
1010 self._setscrollregion(-self.canvwidth//2, -self.canvheight//2,
1011 self.canvwidth//2, self.canvheight//2)
1045 self.yscale = self.canvheight / yspan
1049 sry2 = self.canvheight + sry1
1402 def screensize(self, canvwidth=None, canvheight=None, bg=None): argument
1419 return self._resize(canvwidth, canvheight, bg)
3576 canvheight = _CFG["canvheight"]
3579 self._root.setupcanvas(width, height, canvwidth, canvheight)