Skip to main content
Stack Overflow
  1. About
  2. For Teams
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
0 votes
1 answer
80 views

Getting canvas.find_closest(x, y) to discriminate among elements

I have problems getting canvas.find_closest(x, y) to work properly. Below you can see a minimum working example. The program draws several points in the map (small radius ovals) and several horizontal ...
-1 votes
1 answer
59 views

Using move method from canvas on object created from another class

I created a class called Player in a player.py file. The class creates a rectangle when called and I am trying to use canvas.move using the created object in my main.py file. So I created object as ...
1 vote
3 answers
160 views

How can I run a long-running task in Tkinter without freezing the UI (while keeping real-time updates on a Canvas)?

I’m building a Tkinter app where I visualize sorting algorithms on a Canvas. The problem: whenever I run the sorting function, the entire UI freezes until the function finishes. Here’s a simplified ...
-1 votes
1 answer
167 views

How can I make a backgroud grid using tkinter to help align items?

I am trying to make a grid system for my tkinter window. I do not know how to do this correctly. This would be a system where I can enter something like 2,2 and it puts it on the grid (with larger ...
user avatar
anon
1 vote
1 answer
75 views

How do you remove the background of a Checkbutton in tkinter?

I'm trying to overlay Checkbuttons on an Image in tkinter, so that the user can select locations on the image. Unfortunately, the Checkbuttons always have a grey background which I have not been able ...
1 vote
1 answer
73 views

Tkinter Canvas postscript outputing black rectangles instead of child widget

I am working on Tkinter (Python3.12) on Windows 10. My issue is that when using postscript on a Canvas on which a window was drawn, only black rectangles appear instead. After some tests, the ...
-4 votes
1 answer
81 views

Spacing between widgets in tkinter

I wanted the button and password input to be right next to each other without a gap, but I ran into this problem and there was a gap between them. I tried to remove the space between this input and ...
0 votes
2 answers
112 views

The tkinter canvas background color does not change

I have 2 seperate files and trying to make a sort of 'module' with this one file. But it does not work. The background color is still this weird gray color even if I set it to say, black. Here is the '...
1 vote
1 answer
94 views

Tkinter can't delete something from a canvas on ubuntu

I created a programm on python to read serial data from an arduino and show it on a tkinter window. I made a Thread to read the from the arduino and the tkinter programm. My Programm runs perfectly on ...
2 votes
1 answer
71 views

Tkinter canvas rectangle appears with incorrect size depending on row/column – how to fix?

I am writing a Python tkinter rectangle function: def Rectangle(row,col,color="#FFFFFF",outline="gray"): """ Fills a block with a color. Args: ...
-1 votes
2 answers
80 views

Python CV2 and tkinter canvas

I have been working on face recognition tool and I have to draw a square on an image. The problem is before the last line cv2.rectangle(photo1.....) because the image is not a cv2 it says I have given ...
1 vote
1 answer
97 views

Python 3.13.0's tkinter's canvas.itemconfigure returns an error for some reason

I am making a program called "Clocker" and i am using canvas.itemconfigure to change canvas.create_text text property, i think i am just using it wrong, but i want to upload this to be sure, ...
1 vote
3 answers
82 views

Ways to prevent tkinter from opening a graph on each plot drawn/draw in a selected frame?

I am working on a python tkinter GUI, for plotting/modifying plots for device calibration and data analysis. Basically, I want to list various columns of data and then select regions of said data for ...
0 votes
0 answers
85 views

Tkinter Grid stacking after 900+ elements

I am trying to create an expandable list viewer in python3.6.8 using tkinter grid. I have a scroll frame that contains a list of element frames in a grid layout: ApplicationWorkingProperlyIMG This ...
0 votes
1 answer
75 views

Tkinter: Canvas item color change on state change

The Tkinter code below displays a root window containing a canvas and a blue rectangle. Clicking on the rectangle toggles its state between 'normal' and 'disabled'. I'd like to also toggle its color. ...

15 30 50 per page
1
2 3 4 5
...
137

AltStyle によって変換されたページ (->オリジナル) /