tarun wrote:
> Thanks a lot Laszlo Nagy,
>
> I used the following and it worked.
I thought this is a producer/consumer scenario, this is why I suggested
the Queue class. But now I see that you only want to compute one value
in your thread and stop it afterwards.
In fact using a wx.PyEvent is m
On Nov 13, 6:18 am, Laszlo Nagy <[EMAIL PROTECTED]> wrote:
> tarun írta:> Hi Laszlo Nagy,
>
> > Thanks a lot.
> > But the issue over here is that how will the child thread acknowledge
> > the main thread that it has completed its task. For this I'll have to
> > set some flag in the child thread and
Thanks a lot Laszlo Nagy,
I used the following and it worked.
import time
from threading import *
import wx
# Button definitions
ID_START = wx.NewId()
ID_STOP = wx.NewId()
# Define notification event for thread completion
EVT_RESULT_ID = wx.NewId()
def EVT_RESULT(win, func):
"""Define Resu
tarun írta:
> Hi Laszlo Nagy,
>
> Thanks a lot.
> But the issue over here is that how will the child thread acknowledge
> the main thread that it has completed its task. For this I'll have to
> set some flag in the child thread and poll for it in the main thread.
> This will create a problem.
Hi Laszlo Nagy,
Thanks a lot.
But the issue over here is that how will the child thread acknowledge the
main thread that it has completed its task. For this I'll have to set some
flag in the child thread and poll for it in the main thread. This will
create a problem. Any alternatives??
Thanks & R
>
> *New Problem: *I am opening and executing a script from the GUI. The
> script has a many log messages,
> which it posts on some shared memory. The GUI reads the messages from
> the shared memory,
> in the Idle loop. But the script is huge and so the logging is not
> run-time.
> Rather this
Hi All,
I've a probelm and solution for it to build the preface. Below it is the new
problem I'm facing. Can someone help me out?
*Problem:* I've have created a GUI (using wxPython widgets) where in I've a
message log window (A TextCtrl window).
I've a router.dll that helps me putting in message