Lines Matching refs:canvwidth
360 canvwidth=600, canvheight=500): argument
364 self.canvwidth, self.canvheight = canvwidth, canvheight
384 def reset(self, canvwidth=None, canvheight=None, bg = None): argument
386 if canvwidth:
387 self.canvwidth = canvwidth
393 scrollregion=(-self.canvwidth//2, -self.canvheight//2,
394 self.canvwidth//2, self.canvheight//2))
395 self._canvas.xview_moveto(0.5*(self.canvwidth - self.width + 30) /
396 self.canvwidth)
407 self._canvas.xview_moveto(0.5*(self.canvwidth-cwidth)/self.canvwidth)
409 if cwidth < self.canvwidth or cheight < self.canvheight:
508 w = self.cv.canvwidth
514 self.canvwidth = w
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
789 if canvwidth is not None:
790 self.canvwidth = canvwidth
793 self.cv.reset(canvwidth, canvheight, bg)
1010 self._setscrollregion(-self.canvwidth//2, -self.canvheight//2,
1011 self.canvwidth//2, self.canvheight//2)
1044 self.xscale = self.canvwidth / xspan
1048 srx2 = self.canvwidth + srx1
1402 def screensize(self, canvwidth=None, canvheight=None, bg=None): argument
1419 return self._resize(canvwidth, canvheight, bg)
3575 canvwidth = _CFG["canvwidth"]
3579 self._root.setupcanvas(width, height, canvwidth, canvheight)