On this page
tkinter.Canvas
Prev: tkinter.Button | Up: tkinter | Next: tkinter.Entry
Rel: tkinter.Button, tkinter.Entry, tkinter.Frame, tkinter.Label
Ref: docs.python.org — tkinter.Canvas
Tags: #public #python3 #stdlib #tkinter
Import
import tkinter
from tkinter import Canvas
Signature & Overview
tkinter.class Canvas(master=None, cnf={}, **kw)
Canvas widget to display graphical elements like lines or text.
Usage
import tkinter as tk
# Vector drawing widget supporting lines, ovals, polygons, images, and scrollable frames
assert hasattr(tk, 'Canvas')
Gotchas
- Coordinates have
(0, 0)at top-left.
REPL Inspect
from tkinter import Canvas
help(Canvas)
Linked from
Related notes
- tuts/python3/stdlib_module/tkinter/Button Linked here; links to this page; shared tags: #stdlib, #tkinter
- tuts/python3/stdlib_module/tkinter/Entry Linked here; links to this page; shared tags: #stdlib, #tkinter
- tuts/python3/stdlib_module/tkinter/Frame Linked here; links to this page; shared tags: #stdlib, #tkinter
- tuts/python3/stdlib_module/tkinter/Label Linked here; links to this page; shared tags: #stdlib, #tkinter
- tuts/python3/stdlib_module/tkinter Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/tkinter/Tk links to this page; shared tags: #stdlib, #tkinter
- tuts/python3/tutorials/popular_application_domains/desktop_gui_development shared tags: #stdlib, #tkinter
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib
- tuts/c/stdlib/assert/assert shared tags: #stdlib