All Questions
150 questions
0
votes
0
answers
27
views
Creating and Exiting a Thread that Runs http.server on a Tinter Window
I've been trying to end a thread in python with no result. The main problem is that when I set an IP like '127.0.0.1' and a port like 8080 as a proxy server on the Tkinter app it runs normally. but ...
0
votes
0
answers
85
views
Why does my tkinter app resize after running a pywebview window?
I have a simple tkinter app with 2 buttons. I'm using 1 button to open a pywebview window to a website. Initially, the 2nd button was to close this window, however I kept getting a problem where the ...
0
votes
0
answers
85
views
Why does my python program start another instance of itself at a button click?
Every time I click a button in the app I am currently working on, the program goes to "no response" and then launches another instance of itself while the old one is still active. I don't ...
0
votes
1
answer
70
views
How to avoid problems with tkinters mainloop when integrating client/server communication for a python tkinter game using sockets and threading?
I am a self proclaimed intermediate/hobby python programmer and my latest passion project has been replicating the board game Catan using python and the GUI library tkinter. I've spent the better part ...
0
votes
0
answers
48
views
Cant make sure only one thread is talking to a device - Python
Ive got three threads.
One for getting Data from a device.
One for calculation something
and the last is a tkinter thread.
Everytime one of these threads has an error a Device needs to be resetted. ...
1
vote
0
answers
69
views
Updating Tkinter GUI while running a thread using concurrent futures
I am trying to update the GUI of my application using the result from a thread. But the application just freezes and does not respond. It does not even reach the open dialog box part.
def ...
0
votes
1
answer
105
views
Python, tkinter: Use multiprocessing.Pool() in a class instance, get new data from pool in a function that runs every second
I'm still struggling to get a thread pool working inside a class instance. In a file we'll call test.py I have the following:
import multiprocessing as mp
class Test:
def __init__(self):
...
-1
votes
1
answer
870
views
How do i make a customtkinter button run a function without freezing
right now am trying to make a customtkinter GUI for my code
the problem that am running in which I cannot really find an answer to it is as follows,
I am trying to make a button run a specific bit of ...
1
vote
0
answers
34
views
Workaround Thread and Tkinter
From my main script, I want to run a thread with tkinter to visualize all the parameters of my simulation. Something relatable to this.
Since, as it is well described in the linked question, "...
0
votes
1
answer
803
views
Python: RuntimeError: main thread is not in main loop (Threading & Tkinter)
I'm encountering this error when I run my code every time I understand it has something to do with threading but I'm a beginner so I do not understand much about it I tried searching on Google, ...
0
votes
0
answers
67
views
Why is my thread still alive and how do I terminate it?
So I previously had the same problem but I somehow fixed it. Now that I have started using Tkinter to display my output(Previously I just used the terminal) I have run into it again. I tried ...
0
votes
1
answer
104
views
Time a thread, then pass the time to another function in the main thread
I am writing a Tkinter app and i need an indeterminate progressbar that shows over the main window, while, in the back, the function called does some operations. Because i don't know how long this ...
3
votes
1
answer
162
views
Update plot in tkinter from user input without lag using threading
I'm currently coding my first tkinter GUI. I'm trying to make an interactive plot, using some scales so that the user can set the values of parameters affecting the plot. when I do this it starts ...
1
vote
0
answers
56
views
Multiprocessing and multithreading with tkinter in python
Im having an runtime error using multiprocessing with tkinter, i'm not completely familiarized with tkinter.
The program have two processes one have two threads, one of them take data and send it to ...
0
votes
1
answer
98
views
Why does tkinter block when ending this thread?
I'm trying to create a worker thread that manages further threads/processes and communicates with my tkinter GUI thread.
For this I have a GUI class that inherits from tkinter.Frame with a simple ...