Lines Matching refs:_canvas
342 self._canvas = TK.Canvas(master, width=width, height=height,
344 self.hscroll = TK.Scrollbar(master, command=self._canvas.xview,
346 self.vscroll = TK.Scrollbar(master, command=self._canvas.yview)
347 self._canvas.configure(xscrollcommand=self.hscroll.set,
351 self._canvas.grid(padx=1, in_ = self, pady=1, row=0,
368 self._canvas.config(bg=bg,
371 self._canvas.xview_moveto(0.5*(self.canvwidth - self.width + 30) /
373 self._canvas.yview_moveto(0.5*(self.canvheight- self.height + 30) /
381 cwidth = self._canvas.winfo_width()
382 cheight = self._canvas.winfo_height()
383 self._canvas.xview_moveto(0.5*(self.canvwidth-cwidth)/self.canvwidth)
384 self._canvas.yview_moveto(0.5*(self.canvheight-cheight)/self.canvheight)
401 return self._canvas.bbox(*args)
406 return self._canvas.cget(*args, **kwargs)
411 self._canvas.config(*args, **kwargs)
416 self._canvas.bind(*args, **kwargs)
421 self._canvas.unbind(*args, **kwargs)
426 self._canvas.focus_force()
437 self._canvas = ScrolledCanvas(self, width, height, cwidth, cheight)
438 self._canvas.pack(expand=1, fill="both")
441 return self._canvas
3668 _canvas = None variable in _Screen
3681 if _Screen._canvas is None:
3689 _Screen._canvas = self._root._getcanvas()
3690 TurtleScreen.__init__(self, _Screen._canvas)
3756 _Screen._canvas = None