Lines Matching refs:canvwidth
337 canvwidth=600, canvheight=500): argument
341 self.canvwidth, self.canvheight = canvwidth, canvheight
361 def reset(self, canvwidth=None, canvheight=None, bg = None): argument
363 if canvwidth:
364 self.canvwidth = canvwidth
370 scrollregion=(-self.canvwidth//2, -self.canvheight//2,
371 self.canvwidth//2, self.canvheight//2))
372 self._canvas.xview_moveto(0.5*(self.canvwidth - self.width + 30) /
373 self.canvwidth)
384 self._canvas.xview_moveto(0.5*(self.canvwidth-cwidth)/self.canvwidth)
386 if cwidth < self.canvwidth or cheight < self.canvheight:
483 w = self.cv.canvwidth
489 self.canvwidth = w
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
782 if canvwidth is not None:
783 self.canvwidth = canvwidth
786 self.cv.reset(canvwidth, canvheight, bg)
1064 self._setscrollregion(-self.canvwidth//2, -self.canvheight//2,
1065 self.canvwidth//2, self.canvheight//2)
1098 self.xscale = self.canvwidth / xspan
1102 srx2 = self.canvwidth + srx1
1486 def screensize(self, canvwidth=None, canvheight=None, bg=None): argument
1503 return self._resize(canvwidth, canvheight, bg)
3686 canvwidth = _CFG["canvwidth"]
3690 self._root.setupcanvas(width, height, canvwidth, canvheight)