Top "Tkinter-canvas" questions

The Canvas widget provides structured graphics facilities for Tkinter.

How to clear Tkinter Canvas?

When I draw a shape using: canvas.create_rectangle(10, 10, 50, 50, color="green") Does Tkinter keep track of the fact that it …

python python-3.x tkinter tkinter-canvas
How to insert an image in a canvas item?

I am working on a game project for school, which look like this : In-game aspect I have created these colored …

python tkinter tkinter-canvas
Why does Tkinter image not show up if created in a function?

This code works: import tkinter root = tkinter.Tk() canvas = tkinter.Canvas(root) canvas.grid(row = 0, column = 0) photo = tkinter.PhotoImage(file = …

python image tkinter tkinter-canvas
tkinter: using scrollbars on a canvas

I'm trying to make a canvas scrollable. However, once I try to set up scrollbars to work with the canvas, …

python tkinter scrollbar tkinter-canvas
Rounded button tkinter python

I am trying to get rounded buttons for my script using tkinter. I found the following code: from tkinter import * …

python tkinter tkinter-canvas
How to bind a click event to a Canvas in Tkinter?

I was just wondering if there was any possible way to bind a click event to a canvas using Tkinter. …

python python-2.7 tkinter tkinter-canvas
How to open PIL Image in Tkinter on Canvas

I can't seem to get my PIL Image to work on canvas. Code: from Tkinter import* import Image, ImageTk root = …

python tkinter python-imaging-library tkinter-canvas
How do I remove the light grey border around my Canvas widget?

I've been messing with the Tkinter Canvas widget in order to see if I could make some aesthetically pleasing widgets, …

python tkinter tkinter-canvas
Vertical scrollbar for frame in Tkinter, Python

My aim is to have a scrollbar that stays at the right-side of a full-screen window, allowing the user to …

python python-3.x tkinter scrollbar tkinter-canvas
How to bind events to Canvas items?

If I'm using a canvas to display data and I want the user to be able to click on various …

python user-interface tkinter tkinter-canvas