Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
60 views

I have a tkinter window that runs script, with this general layout: ┌─────────────────────────────────────┐ │ Op Buttons │ ← Row 0 (fixed) ├───────────────────────────────────...
Smorkster's user avatar
  • 357
0 votes
1 answer
83 views

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 ...
Mike Duke's user avatar
  • 235
-1 votes
1 answer
62 views

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 ...
Waylon Orndorff's user avatar
1 vote
3 answers
170 views

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 ...
YUSUf's user avatar
  • 13
-1 votes
1 answer
167 views

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
1 vote
1 answer
79 views

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 ...
Julian Webb's user avatar
1 vote
1 answer
74 views

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 ...
ciaraGT's user avatar
  • 21
-4 votes
1 answer
81 views

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 ...
Parsa's user avatar
  • 1
0 votes
2 answers
113 views

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 '...
Felix508's user avatar
1 vote
1 answer
94 views

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 ...
TBK's user avatar
  • 43
2 votes
1 answer
71 views

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

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 ...
Markuss Celms's user avatar
1 vote
1 answer
102 views

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, ...
notsomeone's user avatar
1 vote
3 answers
84 views

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 ...
tnazarro's user avatar
0 votes
0 answers
88 views

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 ...
flsd fkln's user avatar
0 votes
1 answer
79 views

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. ...
Sigur's user avatar
  • 354
0 votes
0 answers
58 views

I am creating a GUI application that generates certificate based on the user input. The problem arising is that the placement of placeholder text in 900x650 canvas image does not align with the ...
user23369511's user avatar
8 votes
4 answers
409 views

I'm making an (infinite) scrollable GUI that displays 100x100px thumbnails of possibly 100 000 image files (JPG), in Python Tkinter. The MCVE code below works: using lazy loading: it reloads 30 new ...
Basj's user avatar
  • 47.5k
0 votes
1 answer
100 views

I have used tkinter to organize pictures with text inside various frames on a canvas with a scrollbar. (as can be seen in the picture). I'm really struggling to achieve same functionalities with ...
Kjell's user avatar
  • 24
0 votes
0 answers
29 views

I am making a ping pong game, in the line code ball movement ball.goto(ball.xcor() +2, ball.ycor() +2) after run the code it appear me this error message Exception has occurred: TclError invalid ...
Sara Fudl's user avatar
1 vote
1 answer
71 views

I have three column with scrollbar and it needs to be expand and it should be stretched the window size but i am unable to increase the column width according to the screen size and i need top first ...
Sathish's user avatar
  • 445
0 votes
1 answer
45 views

I have a frame that is scrollable horizontally. That is working as desired. I desire the frame to vertically size itself such that all widgets are displayed. Currently, the frame will not grow as ...
JClark's user avatar
  • 199
0 votes
0 answers
174 views

I'm trying to figure out how the scale canvas.scale(tag, x, y, ds, ds) method works in the Tkinter canvas package. It is possible to move elements on the canvas without using the corresponding move ...
user21199884's user avatar
0 votes
1 answer
58 views

I'm not talking about maxsize(), which is the only thing that appears on Google. I would like to know if there is a known pixel limit to a Tkinter widget, if it is for a specific widget or if it's ...
Mitchell hingley's user avatar
-2 votes
2 answers
81 views

Pleaase someone fix the scrollbaar for me and also add scrollbars for the third canvas. Actually i have created data structure visualizer. and facing a scrollbar,cureently ia cant scoll to the third ...
Adnaann Paal's user avatar
0 votes
1 answer
52 views

I've been trying to make a program, with 3 layouts depending on the window's width (using Tkinter). The issue is in the medium layout. Whenever I place my mouse onto the left canvas and use the ...
clicky clicky's user avatar
0 votes
1 answer
71 views

The following script runs standalone to run a scenario: The results are printed first, followed by the plot is closed with an animation. import numpy as np import matplotlib.pyplot as plt import ...
Nick's user avatar
  • 927
0 votes
0 answers
54 views

TEST_PLOT.py [![import matplotlib.pyplot as plt import numpy as np from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg import tkinter as tk class TestPlot: def __init__(self, master=...
Nick's user avatar
  • 927
1 vote
1 answer
445 views

this is example of my code - im using tkinter with tabs and pandas table inside. when im trying to insert data to a cell in the first tab im getting error ` import pandas as pd from pandastable import ...
guy bardah's user avatar
1 vote
0 answers
82 views

Here is the code: import tkinter as tk from tkinter import * from tkinter import messagebox import tkinter.font as font from tkinter import ttk from PIL import Image, ImageTk def CustomerScreen(): ...
MrGrapes2565's user avatar
0 votes
0 answers
48 views

I am writing a GUI using tkinter that has a graph inside the main and only window. I have to update the value of the graph every 2 seconds (as I received data every 2 seconds from a serial port). I ...
bardulia's user avatar
  • 210
1 vote
1 answer
55 views

I am currently developping an application using tkinter and I struggle with a cosmetic issue. When adding an entry to a canvas, tkinter displays a selection cursor around the entry and the canvas. I ...
Paul Creusy's user avatar
0 votes
0 answers
39 views

I have a Tkinter app for detecting the objects by importing images or videos from my system(using my custom model which predict fine when used via cmd predict function). It works well, without any ...
ThunderBolt_23's user avatar
2 votes
1 answer
142 views

I made an app in tkinter which helps creating tkinter app/scripts, (when I export the file it is stored as a .py) I want to run this .py script from my app so that we can preview it immediately after ...
Akascape's user avatar
  • 582
0 votes
1 answer
110 views

I am trying to make an app in tkinter to visualize data structures and algorithms. However, I have an issue with the way the program is updating the canvas during the visualisation process. When the ...
user avatar
-2 votes
1 answer
136 views

I am creating a GUI with Python's tkinter. I have encountered an issue while trying to place an image read by OpenCV onto a tkinter canvas. The error is as follows: AttributeError: 'NoneType' object ...
Yamm's user avatar
  • 29
2 votes
1 answer
75 views

My program displays a Rectangle on top of a video image on a tkinter.Canvas. A mouse handler lets the user move and stretch the rectangle to identify an area of the video for processing. When the ...
VanDee's user avatar
  • 27
1 vote
3 answers
91 views

import tkinter as tk from PIL import ImageTk, Image window = tk.Tk() window.geometry("300x300") canvas = tk.Canvas(window, width=300, height=300,bg="red") canvas.pack() class ...
MeHocha 333's user avatar
1 vote
1 answer
106 views

I'm trying to make a simultaneous drawing of plants, the plant is a class that contains the method get_circles() , and also is_growing() that returns the status of the plant. get_circles() returns a ...
killer whale's user avatar
0 votes
0 answers
98 views

I'm experiencing pretty bad tearing while scrolling around in Tkinter. My code so far is a bit complex, so I'll try to explain it by words: I'm using a scrollable Canvas which has a grid of Text ...
DoctorEvil's user avatar
1 vote
2 answers
52 views

I want to move a widget inside of a canvas with a click of a button. Unfortunatly I always get the same Error:"_tkinter.TclError: invalid boolean operator in tag search expression" I've ...
CyberTigerhai's user avatar
0 votes
0 answers
48 views

I have a list of buttons, and I want to make them scroll by touching. I made a canvas, and it frame contained the buttons. Now, how can I make them scroll? I have try this : def on_button_drag_(event):...
Ahmed Ahmed's user avatar
0 votes
1 answer
166 views

I am coding a digital version of the card game Dominion to play with some friends. This is only my second time using tkinter for window management and I'm not very skilled at python in general. ...
nope noper's user avatar
1 vote
0 answers
97 views

I can’t get any information on exactly how window and canvas sizes work in Tkinter. If I create a window, I can set its size using either the .configure() method or the .geometry() method. If I set ...
Manngo's user avatar
  • 17k
0 votes
1 answer
32 views

So I am trying to make a frame and fill it up with data from my database. Only thing is, I need the whole frame to be scrollable. I followed the instructions I saw online and also checked ...
Lukas Orozco's user avatar
0 votes
1 answer
73 views

I am writing a small example with tkinter. Here what I got (things are layouted nicely) enter image description here The codes for it are given below import tkinter from tkinter import ttk from ...
Math's user avatar
  • 35
1 vote
2 answers
142 views

i am making a paint app in python. it has functions for making shapes and drawing using click and drag. i've been trying to implement an undo button to my app. it work fine to undo the shapes but not ...
Percy's user avatar
  • 43
1 vote
2 answers
59 views

I'm working on a dragable tkinter canvas class that knows its position and scale, for that I would like to use a class that inherits from tkinter.canvas. However, the inheriting class behaves ...
user21199884's user avatar
1 vote
0 answers
63 views

I am facing this issue where whenever I try to trigger the activate() method by clicking the command inside the Menu widget, I am not able to see the method in action because by default the Menu ...
user23339661's user avatar
0 votes
0 answers
60 views

Issue I am created a GridEditor program that generates a grid based on the dimensions provided and then allows you to paint patterns in each of these grid squares. I implemented a zoom and pan method ...
Marco Cassar's user avatar

1
2 3 4 5
41