Modern Tkinter
Canvas widget to display graphical elements like lines or text.

Tkinter Class API Reference Contents

Canvas

tkinter.Canvas(master=None, cnf={}, **kw)

Configuration Options:

background, bd, bg, borderwidth, closeenough, confine, cursor, height, highlightbackground, highlightcolor, highlightthickness, insertbackground, insertborderwidth, insertofftime, insertontime, insertwidth, offset, relief, scrollregion, selectbackground, selectborderwidth, selectforeground, state, takefocus, width, xscrollcommand, xscrollincrement, yscrollcommand, yscrollincrement

Methods:
canvasx(screenx, gridspacing=None)
canvasy(screeny, gridspacing=None)
coords(*args)
dchars(*args)
delete(*args)
dtag(*args)
gettags(*args)
icursor(*args)
index(*args)
insert(*args)
itemcget(tagOrId, option)
itemconfigure(tagOrId, cnf=None, **kw) ... aka itemconfig
move(*args)
moveto(tagOrId, x='', y='')
postscript(cnf={}, **kw)
scale(*args)
type(tagOrId)
addtag(*args)
addtag_above(newtag, tagOrId)
addtag_all(newtag)
addtag_below(newtag, tagOrId)
addtag_closest(newtag, x, y, halo=None, start=None)
addtag_enclosed(newtag, x1, y1, x2, y2)
addtag_overlapping(newtag, x1, y1, x2, y2)
addtag_withtag(newtag, tagOrId)
create_arc(*args, **kw)
create_bitmap(*args, **kw)
create_image(*args, **kw)
create_line(*args, **kw)
create_oval(*args, **kw)
create_polygon(*args, **kw)
create_rectangle(*args, **kw)
create_text(*args, **kw)
create_window(*args, **kw)
find(*args)
find_above(tagOrId)
find_all()
find_below(tagOrId)
find_closest(x, y, halo=None, start=None)
find_enclosed(x1, y1, x2, y2)
find_overlapping(x1, y1, x2, y2)
find_withtag(tagOrId)
scan_dragto(x, y, gain=10)
scan_mark(x, y)
select_adjust(tagOrId, index)
select_clear()
select_from(tagOrId, index)
select_item()
select_to(tagOrId, index)
tag_bind(tagOrId, sequence=None, func=None, add=None)
tag_lower(*args) ... aka lower
tag_raise(*args) ... aka tkraise
tag_unbind(tagOrId, sequence, funcid=None)
xview(*args)
xview_moveto(fraction)
xview_scroll(number, what)
yview(*args)
yview_moveto(fraction)
yview_scroll(number, what)

Inherited from Widget:

bbox(*args)
bindtags(tagList=None)
cget(key)
configure(cnf=None, **kw) ... aka config
destroy()
keys()
lift(*args)
bind(sequence=None, func=None, add=None)
bind_all(sequence=None, func=None, add=None)
bind_class(className, sequence=None, func=None, add=None)
unbind(sequence, funcid=None)
unbind_all(sequence)
unbind_class(className, sequence)
focus(*args)
focus_displayof()
focus_force()
focus_get()
focus_lastfor()
focus_set()
grab_current()
grab_release()
grab_set()
grab_set_global()
grab_status()
grid_anchor(anchor=None) ... aka anchor
grid_bbox(column=None, row=None, col2=None, row2=None)
grid_columnconfigure(index, cnf={}, **kw) ... aka columnconfigure
grid_configure(cnf={}, **kw) ... aka grid
grid_forget()
grid_info()
grid_location(x, y) ... aka location
grid_propagate(flag=)
grid_remove()
grid_rowconfigure(index, cnf={}, **kw) ... aka rowconfigure
grid_size() ... aka size
grid_slaves(row=None, column=None)
pack_configure(cnf={}, **kw) ... aka pack
pack_forget() ... aka forget
pack_info() ... aka info
pack_propagate(flag=) ... aka propagate
pack_slaves() ... aka slaves
place_configure(cnf={}, **kw) ... aka place
place_forget()
place_info()
place_slaves()
winfo_atom(name, displayof=0)
winfo_atomname(id, displayof=0)
winfo_cells()
winfo_children()
winfo_class()
winfo_colormapfull()
winfo_containing(rootX, rootY, displayof=0)
winfo_depth()
winfo_exists()
winfo_fpixels(number)
winfo_geometry()
winfo_height()
winfo_id()
winfo_interps(displayof=0)
winfo_ismapped()
winfo_manager()
winfo_name()
winfo_parent()
winfo_pathname(id, displayof=0)
winfo_pixels(number)
winfo_pointerx()
winfo_pointerxy()
winfo_pointery()
winfo_reqheight()
winfo_reqwidth()
winfo_rgb(color)
winfo_rootx()
winfo_rooty()
winfo_screen()
winfo_screencells()
winfo_screendepth()
winfo_screenheight()
winfo_screenmmheight()
winfo_screenmmwidth()
winfo_screenvisual()
winfo_screenwidth()
winfo_server()
winfo_toplevel()
winfo_viewable()
winfo_visual()
winfo_visualid()
winfo_visualsavailable(includeids=False)
winfo_vrootheight()
winfo_vrootwidth()
winfo_vrootx()
winfo_vrooty()
winfo_width()
winfo_x()
winfo_y()