Home | History | Annotate | Download | only in lib-tk

Lines Matching defs:Canvas

74 - A scrollable Canvas class. The default scrollable Canvas can be
78 background image, window and canvas size and other properties of the
305 ## helper functions for Scrolled Canvas, to forward Canvas-methods
309 """helper function for Scrolled Canvas"""
319 """helper function for Scrolled Canvas"""
329 """Helper functions for Scrolled Canvas, used to forward
330 ScrolledCanvas-methods to Tkinter.Canvas class.
354 """Modeled after the scrolled canvas class from Grayons's Tkinter book.
356 Used as the default canvas, which pops up automatically when
366 self._canvas = TK.Canvas(master, width=width, height=height,
385 """Adjust canvas and scrollbars according to given canvas size."""
403 """ Adjust scrollbars according to window- and canvas-size.
423 """ 'forward' method, which canvas itself has inherited...
428 """ 'forward' method, which canvas itself has inherited...
433 """ 'forward' method, which canvas itself has inherited...
438 """ 'forward' method, which canvas itself has inherited...
443 """ 'forward' method, which canvas itself has inherited...
448 """ 'forward' method, which canvas itself has inherited...
452 __forwardmethods(ScrolledCanvas, TK.Canvas, '_canvas')
479 Canvas = TK.Canvas
510 else: # expected: ordinary TK.Canvas
519 """Create an invisible polygon item on canvas self.cv)
531 will be put on top of the canvas' displaylist so it
549 """Create an invisible line item on canvas self.cv)
561 will be put on top of the canvas' displaylist so it
578 """Delete graphics item from canvas.
584 """Redraw graphics items on canvas
589 """Delay subsequent canvas actions for delay ms."""
603 """Set canvas' backgroundcolor if color is not None,
612 """Write txt at pos in canvas with specified font
632 of the clicked point on the canvas.
647 of the point on the canvas where mouse button is released.
666 actual mouse position on the canvas.
685 """Bind fun to mouse-click event on canvas.
687 of the clicked point on the canvas.
704 Canvas must have focus. See method listen
714 """Set focus on canvas (in order to collect key-events)
727 """Create and return image item on canvas.
733 at position (x,y) on canvas)
740 at center of canvas. Set item to the first item
780 """Resize the canvas the turtles are drawing on. Does
1018 llx -- a number, x-coordinate of lower left corner of canvas
1019 lly -- a number, y-coordinate of lower left corner of canvas
1020 urx -- a number, x-coordinate of upper right corner of canvas
1021 ury -- a number, y-coordinate of upper right corner of canvas
1274 """Return the Canvas of this TurtleScreen.
1297 """Bind fun to mouse-click event on canvas.
1301 clicked point on the canvas.
1402 """Resize the canvas the turtles are drawing on.
1405 canvwidth -- positive integer, new width of canvas in pixels
1406 canvheight -- positive integer, new height of canvas in pixels
1411 the canvas use the scrollbars. (Can make visible those parts
1412 of a drawing, which were outside the canvas before!)
2423 def __init__(self, canvas=None,
2427 if isinstance(canvas, _Screen):
2428 self.screen = canvas
2429 elif isinstance(canvas, TurtleScreen):
2430 if canvas not in RawTurtle.screens:
2431 RawTurtle.screens.append(canvas)
2432 self.screen = canvas
2433 elif isinstance(canvas, (ScrolledCanvas, Canvas)):
2435 if screen.cv == canvas:
2439 self.screen = TurtleScreen(canvas)
2442 raise TurtleGraphicsError("bad cavas argument %s" % canvas)
2852 """Stamp a copy of the turtleshape onto the canvas and return its id.
2856 Stamp a copy of the turtle shape onto the canvas at the current
3415 """Bind fun to mouse-click event on this turtle on canvas.
3419 the coordinates of the clicked point on the canvas.
3436 """Bind fun to mouse-button-release event on this turtle on canvas.
3440 the coordinates of the clicked point on the canvas.
3461 """Bind fun to mouse-move event on this turtle on canvas.
3465 the coordinates of the clicked point on the canvas.
3690 """RawTurtle auto-creating (scrolled) canvas.