333 questions from the last 365 days
0
votes
1
answer
58
views
How to I get the positions for the corners of a turtle screen embeded in a tkinter canvas
I'm trying to draw a grid in the turtle, but doing so requires knowing the positions of the corners of the screen.
turtle.goto(0, 0) does not move the turtle to the middle of the screen; instead, it ...
2
votes
0
answers
90
views
Flow Layout with customtkinter adds extra padding between widgets [closed]
I am trying to implement a flow layout in a ScrollableFrame from customtkinter.
Specifically, instead of managing letters, the layout needs to manage small Frames in which names are written.
I have to ...
-3
votes
0
answers
85
views
how to make circular button with transparent background using CustomTkinter? [closed]
I am making an alarm using Python and MySQL integration for school project. I am using CustomTkinter to make UI
App UI
This is what I have reached so far.
I want to add a red circular icon with white ...
0
votes
1
answer
100
views
tkinter TclError After Update to Fedora 43
A few years back I hacked together a tk script to listen for events from frigate and show the camera feed for a few seconds when someone was at the door. It worked without much effort until I updated ...
2
votes
2
answers
131
views
Python Tkinter "tag mechanism" broken - _tkinter.TclError: invalid boolean operator in tag search expression
The following [mre]:
import tkinter as tk
root = tk.Tk()
cnvs = tk.Canvas(root)
cnvs.pack()
labl = tk.Label(cnvs, text='hello world')
laid = cnvs.create_window(0,0,window=labl,anchor='nw', tags=str(...
0
votes
1
answer
118
views
Child widgets not shown correctly if parent Frame is gridded later
I have an application that divides the main window in two:
Left: a canvas, where a map will be displayed
Right: a frame, where several other frames will share space and one of them will be shown ...
Tooling
0
votes
5
replies
135
views
Is there a tkinter editor suitable for beginners
I am a newbie in Python. My assignment requires me to use a graphical interface, and I plan to use tkinter for this purpose. However, I find manually typing code too complicated. Could any expert ...
0
votes
1
answer
124
views
How to destroy Tkinter windows from external script?
I have a script called GUI running two tkinter windows and I've been able to kill my program from within the script by creating a function for it
def gui_kill():
root.destroy()
win.destroy()
...
2
votes
1
answer
75
views
dateentry Tkcalendar change the month and year repeatedly?
I'm using DateEntry from tkcalendar. The problem is that I can only change the month and year the first time. When I try to change the year or month a second time, the calendar immediately disappears. ...
2
votes
1
answer
85
views
Cannot get an IntVar object from one tkinter script called by a function to the script which calls it
I'm trying to have an IntVar object move from one script to another via a function that calls the second script when the toplevel window created in the second script is destroyed
main script:
from ...
2
votes
1
answer
99
views
Tkinter window shows “Not Responding” while running my text-to-speech code (how do I prevent the GUI from freezing?)
I’m making a GUI application in Python using Tkinter that reads text out loud from PDF, DOCX, TXT, and images using gTTS.
The program works, but sometimes Tkinter window becomes unresponsive and shows ...
0
votes
1
answer
104
views
Image replacing/deleting other image in tkinter
When I have 2 images loaded in tkinter even though they are in a different position, only one of them shows up so I assume that one of them is deleting/replacing each other. how do i fix it?
import ...
0
votes
0
answers
71
views
How to fix Tkinter program shrinking when using MSS library to screenshot
Whenever I'm using mss I'm trying to take a screenshot of part of my program in which I would create an array of x and y values of nodes and find the minimum and maximums of those x, y values then ...
1
vote
2
answers
138
views
How can I make a square Tkinter Entry widget if width only accepts integers?
I'm trying to create a square tk.Entry widget in Tkinter, but the width parameter only accepts integers which represent a number of characters instead of pixels.
Setting width=2 makes the box too ...
-3
votes
1
answer
98
views
Placing text box next to text in tkinter
I'm attempting to learn tkinter, how can i edit this code so that the text box is directly next to the input statement ? I've tried putting the text box in the first column with an alignment to the ...