Lines Matching refs:canvwidth
336 canvwidth=600, canvheight=500): argument
340 self.canvwidth, self.canvheight = canvwidth, canvheight
360 def reset(self, canvwidth=None, canvheight=None, bg = None): argument
362 if canvwidth:
363 self.canvwidth = canvwidth
369 scrollregion=(-self.canvwidth//2, -self.canvheight//2,
370 self.canvwidth//2, self.canvheight//2))
371 self._canvas.xview_moveto(0.5*(self.canvwidth - self.width + 30) /
372 self.canvwidth)
383 self._canvas.xview_moveto(0.5*(self.canvwidth-cwidth)/self.canvwidth)
385 if cwidth < self.canvwidth or cheight < self.canvheight:
484 w = self.cv.canvwidth
490 self.canvwidth = w
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
783 if canvwidth is not None:
784 self.canvwidth = canvwidth
787 self.cv.reset(canvwidth, canvheight, bg)
1063 self._setscrollregion(-self.canvwidth//2, -self.canvheight//2,
1064 self.canvwidth//2, self.canvheight//2)
1097 self.xscale = self.canvwidth / xspan
1101 srx2 = self.canvwidth + srx1
1485 def screensize(self, canvwidth=None, canvheight=None, bg=None): argument
1502 return self._resize(canvwidth, canvheight, bg)
3684 canvwidth = _CFG["canvwidth"]
3688 self._root.setupcanvas(width, height, canvwidth, canvheight)