Top "Tkinter-canvas" questions

The Canvas widget provides structured graphics facilities for Tkinter.

Tkinter - Inserting text into canvas windows

I have a Tkinter canvas populated with text and canvas windows, or widgets, created using the create_text and create_…

python text tkinter tkinter-canvas
Tkinter Canvas create_window()

I'm trying to use Tkinter Canvas (self._canvas) to create window using create_window function. The window field for that …

python python-2.7 tkinter tkinter-canvas
Can you change the attributes of a Canvas object after creation?

I'm trying to simulate an American traffic light, with 3 circles on a rectangle, all drawn on a set Canvas. The …

python tkinter tkinter-canvas
Tkinter canvas zoom + move/pan

Tkinter's canvas widget has built-in features to: move/pan the canvas (for example with Click + Drag) with canvas.scan_mark …

python canvas tkinter tkinter-canvas
Vertical and Horizontal Scrollbars on Tkinter Widget

I am trying to output the contents of a database to a Tkinter widget. The database has enough rows and …

python tkinter scrollbar tkinter-canvas
Tkinter Canvas move item to top level

I have a Tkinter Canvas widget (Python 2.7, not 3), and on this Canvas I have different items. If I create a …

python tkinter widget tkinter-canvas
Tkinter: How to get frame in canvas window to expand to the size of the canvas?

So I've been using the canvas widget in tkinter to create a frame full of labels which has a scrollbar. …

python python-3.x tkinter tkinter-canvas
How to update the contents of a FigureCanvasTkAgg

I'm plotting some data in a Tkinter FigureCanvasTkagg using matplotlib. I need to clear the figure where I plot data …

python tkinter updating tkinter-canvas
Changing the colour on click of a tkinter rectangle on click in python

So I have this code which draws a simple rectangle: from tkinter import * root = Tk() canvas = Canvas(root, width = 500, height = 500) …

python tkinter tkinter-canvas
Tkinter: how to colorize the outline of a canvas rectangle?

I draw a rectangle on a Canvas: canvas = Canvas(parent, cursor="cross") rect = canvas.create_rectangle(20,20, 1, 1, fill="") I only want …

python tkinter tkinter-canvas