0
votes
0answers
11 views

PySide Qt threading: Why won't my QThreads quit?

I have a task that periodically gets data from a blocking event and wants to send it to the rest of an application. This blocking event cannot be made nonblocking, so I want to use threads to wait on ...
0
votes
0answers
15 views

With-Statement and Threading :Making function execute before run

This question is a follow up from following question:With statement and python threading I have been experimenting with python threading api. I have this code which works for what I want to achieve ...
0
votes
1answer
20 views

timer interrupt thread python

I've been trying to make a precise timer in python, or as precise a OS allows it to be. But It seams to be more complicated than I initially thought. This is how I would like it to work: from time ...
1
vote
0answers
13 views

How to use Tornado with APScheduler?

I am running python's apscheduler and periodically want to do some work POST-ing to some http resources which will involve using tornado's AsyncHttpClient as a scheduled job. Each job will do several ...
0
votes
1answer
21 views

Is it possible to discover the sender of a signal using new style pyqtSignal?

Given the following code as an example I would like to know whether the receiver() function is able to discover whether w1 or w2 sent it the signal? Obviously I know that I could package this ...
0
votes
1answer
27 views

What is a thread-specific os.chdir and mkdir in python?

I have several threads each of which is changing working directories and occasionally creating new ones in specific working directories, copying/moving files etc in these directories. Think e.g.: def ...
-2
votes
2answers
51 views

Why is the CPU usage of my threaded python merge sort only 50% for each core?

Questions Why is the CPU usage of my threaded python merge sort only 50% for each core? Why does this result in "cannot create new thread" errors for relatively small inputs (100000) How can I make ...
0
votes
1answer
35 views

Writing to a file at specific time intervals in different threads for a simple keylogger

import pythoncom , pyHook, time temp_keylogs = '' def OnKeyboardEvent(event): global temp_keylogs key = chr(event.Ascii) temp_keylogs += key hm = pyHook.HookManager() hm.KeyDown = ...
0
votes
1answer
41 views

With statement and python threading

I am a noob in python trying to understand the threading module. I am using python 2.7.One of the motivation for with_statement in python was given to be code pattern of with threading.Lock(): ...
2
votes
0answers
38 views
+50

Memory Leak in Threaded COM Object with Python

I am creating a COM client within a thread and performing several operations with this client. Each thread is spawned from a server that uses Python's socketserver module which has built-in threading ...
-2
votes
3answers
69 views

How do I run a Python method as a subprocess?

i need a help with a python project: Example: class MyFrame(wx.Frame): def __init__(self, parent, title): super(MyFrame, self).__init__(parent, title=title, size=(330, 300)) ...
1
vote
0answers
14 views

Python Pika - Consumer into Thread

I'm working on a Python app with a background thread for consuming message from a RabbitMQ Queue (topic scenario). I start the thread on on_click event of a Button. Here is my code, please take ...
0
votes
0answers
27 views

Stop timer thread

Here is my issue. I'm coding a game in Python in which you have to complete a labyrinth before the countdown reaches 0. So I wrote a Timer(threading.Thread) that looks like this. Only I do not know ...
0
votes
2answers
23 views

Listen for thread while executing task

I tried to look for an answer, but couldn't find anything relevant. Hence, the decision to ask. I have a script A. At the beginning of script A, it calls script B (or a function, either works) in a ...
0
votes
1answer
32 views

Multiprocessing with Python and Arguements

related to my last post (Which somehow got marked off and closed), I wrote some code to create a thread for a command handler for my python TCP listener. What basically happens is that I send in some ...

1 2 3 4 5 147
15 30 50 per page