Tagged Questions
2
votes
1answer
25 views
Setting up idle thread/signalling thread
I'm using Python with wxPython for writing an app.
The method I'm considering to accomplish this may not be the best - if that's the case, let me know because I'm open to refactoring.
Right now, I ...
0
votes
1answer
14 views
Call Function inside of another class that is threaded
I am writing a gui application in python. In one instance of the GUI I want to call a method inside of my thread class, but I don't want to call the initial run() method.
Here is an example of my ...
-2
votes
3answers
73 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
1answer
46 views
Python multiprocessing and wxPython working together
I've got the following problem:
I've written a script which is running up to four processes at the same time. Works like a charm when using it via command line.
Then I made the decision to write a ...
0
votes
0answers
18 views
Let thread-daemon wait until a certain “final value” is met
I have a small issue with a deamon process I'm running inside my Python script.
This is my main script;
# -*- coding: utf-8 -*-
import os
import wx
import threading
from library.gui import WebGui
...
0
votes
1answer
42 views
What is the easiest way to move a function within a wxPython class to a different thread?
I am relatively new to Python but am using it to hack together some automation. I am having a bit of trouble with Classes and how functions within speak to functions outside. My real goal is to create ...
1
vote
2answers
93 views
Stopping a WxPython app's main loop from a thread requires window focus
I have a command line utility that starts and stops a WxPython app instance. I'm starting the app in a thread so that I can continue to run commands as well as use the gui app.
My problem is that ...
1
vote
2answers
84 views
wxPython OnExit() not stoping thread?
I'm trying to create a thread, and end it when the frame of a wxPython app is closed. Here's my code:
#! /usr/bin/env python
import time, wx
from threading import Thread
class UpdateThread(Thread):
...
1
vote
0answers
39 views
Python app (with wx) hangs when running non-terminating thread [closed]
tl;dr: Loading a non-blocking, but non-terminating thread prevents the main thread from running.
I have an app which is monitoring the contents of a number of log files. These log files are passed ...
0
votes
2answers
114 views
Repeat function at an interval?
I'm making a wxPython app that I need to update a value from the internet every 15 seconds. Is there any way I can have a function to set the value, and make it run in the background at this interval, ...
0
votes
1answer
57 views
Wx.Python non-Blocking GUI starting and stopping script/module
I want to be able to run and stop script/module from my GUI without blocking it. I learned some basic things about threading and running "simple" long tasks inside GUI code. However all the examples ...
0
votes
1answer
59 views
Interact with a wxPython frame in both directions from another thread
I have already read
http://wiki.wxpython.org/LongRunningTasks
http://wiki.wxpython.org/CallAfter
and searched a lot in Google but found no answer to my problem. Because in my opinion it would be to ...
1
vote
0answers
56 views
App with wx gui is busy and crashes
First of all sorry for my English.
I do measurements with my Agilent.
I wrote some high-level functions to do it simply.
And now I want to plot result while measurement in progress.
I use wxPython ...
0
votes
2answers
160 views
how to use wxpython threading to prevent blocking main loop
I'm working on a school project to develop a customized media player on python platform. The problem is when i use time.sleep(duration), it block the main loop of my GUI preventing it from updating. ...
0
votes
2answers
90 views
wxPython Pango error when using a while True loop in a thread
In this program I get an error when I use a while True loop in the thread. Without the loop I get no error. Of course in the real program I don't update a label continuously. Any idea what I'm doing ...