Lines Matching refs:_canvas
366 self._canvas = TK.Canvas(master, width=width, height=height,
368 self.hscroll = TK.Scrollbar(master, command=self._canvas.xview,
370 self.vscroll = TK.Scrollbar(master, command=self._canvas.yview)
371 self._canvas.configure(xscrollcommand=self.hscroll.set,
375 self._canvas.grid(padx=1, in_ = self, pady=1, row=0,
392 self._canvas.config(bg=bg,
395 self._canvas.xview_moveto(0.5*(self.canvwidth - self.width + 30) /
397 self._canvas.yview_moveto(0.5*(self.canvheight- self.height + 30) /
405 cwidth = self._canvas.winfo_width()
406 cheight = self._canvas.winfo_height()
407 self._canvas.xview_moveto(0.5*(self.canvwidth-cwidth)/self.canvwidth)
408 self._canvas.yview_moveto(0.5*(self.canvheight-cheight)/self.canvheight)
425 return self._canvas.bbox(*args)
430 return self._canvas.cget(*args, **kwargs)
435 self._canvas.config(*args, **kwargs)
440 self._canvas.bind(*args, **kwargs)
445 self._canvas.unbind(*args, **kwargs)
450 self._canvas.focus_force()
461 self._canvas = ScrolledCanvas(self, width, height, cwidth, cheight)
462 self._canvas.pack(expand=1, fill="both")
465 return self._canvas
3559 _canvas = None variable in _Screen
3572 if _Screen._canvas is None:
3580 _Screen._canvas = self._root._getcanvas()
3581 TurtleScreen.__init__(self, _Screen._canvas)
3647 _Screen._canvas = None