Lines Matching refs:canvheight
337 canvwidth=600, canvheight=500): argument
341 self.canvwidth, self.canvheight = canvwidth, canvheight
361 def reset(self, canvwidth=None, canvheight=None, bg = None): argument
365 if canvheight:
366 self.canvheight = canvheight
370 scrollregion=(-self.canvwidth//2, -self.canvheight//2,
371 self.canvwidth//2, self.canvheight//2))
374 self._canvas.yview_moveto(0.5*(self.canvheight- self.height + 30) /
375 self.canvheight)
385 self._canvas.yview_moveto(0.5*(self.canvheight-cheight)/self.canvheight)
386 if cwidth < self.canvwidth or cheight < self.canvheight:
484 h = self.cv.canvheight
490 self.canvheight = h
773 def _resize(self, canvwidth=None, canvheight=None, bg=None): argument
779 return self.canvwidth, self.canvheight
780 if canvwidth is canvheight is bg is None:
781 return self.cv.canvwidth, self.cv.canvheight
784 if canvheight is not None:
785 self.canvheight = canvheight
786 self.cv.reset(canvwidth, canvheight, bg)
1064 self._setscrollregion(-self.canvwidth//2, -self.canvheight//2,
1065 self.canvwidth//2, self.canvheight//2)
1099 self.yscale = self.canvheight / yspan
1103 sry2 = self.canvheight + sry1
1486 def screensize(self, canvwidth=None, canvheight=None, bg=None): argument
1503 return self._resize(canvwidth, canvheight, bg)
3687 canvheight = _CFG["canvheight"]
3690 self._root.setupcanvas(width, height, canvwidth, canvheight)