Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
48 views

Trying to get tkinter to save info from a second window. Text box information is saving but not togglables

My code consist of a page that has a simple button, you click the button and it brings a popup to store information. You have title and desc fields etc. but only the text fields seem to be saving (as ...
SOmeUsEr's user avatar
-1 votes
1 answer
46 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 ...
Waylon Orndorff's user avatar
0 votes
0 answers
73 views

Pydroid Tkinter Not Reassigning

I have this Python Tkinter code right here: from tkinter.filedialog import * import tkinter as tk class App(tk.Tk): def __init__(self): super().__init__() self.apptitle = "TODO.py&...
SubFabula's user avatar
1 vote
3 answers
92 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 ...
YUSUf's user avatar
  • 13
3 votes
2 answers
94 views

Where do i place/create a dynamically created widget that controls elided text in Tkinter

i am building a python tkinter editor / IDE and want to create a widget that can be clicked on to collapse / expand elided text. i am not sure what widget is best to use (button, label, image). think ...
stevmjon's user avatar
0 votes
1 answer
95 views

python standalone builds causes problem with pillow tkinter

I am trying to embed python standalone builds to my electron app. I downloaded standalone from https://github.com/astral-sh/python-build-standalone Everything seems to work fine until pillow is ...
Art's user avatar
  • 3,131
3 votes
2 answers
100 views

Restrict date selection from calendar to specific dates

I'd like to let the user pick one out of a list of dates from my calendar but prevent her from selecting any other date. Based on this answer I managed to restrict the date range that can be selected ...
Joooeey's user avatar
  • 4,117
0 votes
1 answer
62 views

Multiple screens | python custom Tkinter [closed]

In my Tkinter chatbot app, clicking the 'History' menu opens a new window every time. How can I make it so only one history window exists, and if it's already open, bring it to focus instead of ...
Ashaz Akhtar's user avatar
1 vote
1 answer
162 views

ttk.Combobox selected text vanishes when focus is lost (clam theme, readonly)

I'm new to python and recently started coding a combobox using the "clam" UI theme. However, the selected text vanishes when focus is lost from the dropdown? It seems confined to "clam&...
vengy's user avatar
  • 2,389
0 votes
2 answers
159 views

how to use grid with textbox? my textsize seems to impact my grid but I don't want it to

I want my screen to have a small notepad in the bottom left. My textsize within this textbox seems to impact my grid, but I don't want it to. My understanding is that using uniform ="a" ...
Mike Nijland's user avatar
2 votes
1 answer
64 views

Changing button's look by state; Only works while debugging

For some background, I'm displaying my button as an image. What I want to change the look of my button when it's clicked and keep it as that new look until it is clicked again. Here's what I have so ...
Thevin Jayawardena's user avatar
-2 votes
1 answer
123 views

When i work with tkinter no window pops up and my command line terminal acts as if a program is running. Not even CTRL + c kills it

I have been trying out the tkinter library for python and have been noticing a strange pattern of behavior that I encounter but the behavior doesnt occur with the tutorial videos. I have tried: from ...
jacob 6823's user avatar
1 vote
0 answers
107 views

Python 3.13.5 Ctypes and Tkinter imports not working

So I installed python 3.13.5 today and tried to run my projects with ctypes and tkinter. It had worked fine before the installation, but it didn't work after When I ran my project with ctypes in it ...
SomePerson's user avatar
0 votes
1 answer
25 views

How do I get Tkinter to place the window in the same place on my screen?

The following code will place the window in a random position. I want it to use the fixed position I specified. My screen is a TV with a 3840x2160 HDMI connection and a second screen 1920x1080. ...
Peter Mason's user avatar
0 votes
0 answers
64 views

Python Tkinter - Maintaining coordinates when scaling Canvas

I have a map where the user can build cities and move around their units and attack other player's units. The mouse wheel can be used to zoom in or out. No matter what the level of zoom is, I want to ...
Mike Duke's user avatar
  • 183

15 30 50 per page
1
2 3 4 5
3513