> Hello there !
> i am having a problem with threading.
> OK, i have this GUI app that i am building with pygtk.
> there is a process (four actually, just working on getting one right now)
> that needs to run in the background.
> there is a button that starts the background function. But, it locks
Pierre Barbier de Reuille wrote:
>Great :)
>
>Just to be clear about that: you can see the "connect" line as a dynamic
>registration process (with the symetric disconnect operation available
>via ... "disconnect"). The only thing you need is to connect (at
>runtime) the even before it's called (ob
Great :)
Just to be clear about that: you can see the "connect" line as a dynamic
registration process (with the symetric disconnect operation available
via ... "disconnect"). The only thing you need is to connect (at
runtime) the even before it's called (obvious isn't it ? ;) ), but you
have no o
Pierre Barbier de Reuille wrote:
>nephish a écrit :
>
>
>>one more thing.
>>if i uncomment the lines
>>gtk.threads_enter()
>>and
>>gtk.threads_leave()
>>the whole thing locks up when the function is called.
>>the gui, and the thread both lock up.
>>
>>
>
>Well, that's just normal. However, w
Pierre Barbier de Reuille wrote:
>nephish a écrit :
>
>
>>one more thing.
>>if i uncomment the lines
>>gtk.threads_enter()
>>and
>>gtk.threads_leave()
>>the whole thing locks up when the function is called.
>>the gui, and the thread both lock up.
>>
>>
>
>Well, that's just normal. However, w
nephish a écrit :
>
> one more thing.
> if i uncomment the lines
> gtk.threads_enter()
> and
> gtk.threads_leave()
> the whole thing locks up when the function is called.
> the gui, and the thread both lock up.
Well, that's just normal. However, what you should do is to send a
signal from your th
nephish wrote:
> Serial1() just call the function ... it will be evaluated and then the
> result will be sent to Thread.start ...
>
> So try:
>
> Thread.start(Serial)
>
>
>ok,
>so far the thread runs fine in the background, but just does not send the
>output to the
>textb
Serial1() just call the function ... it will be evaluated and then the
result will be sent to Thread.start ...
So try:
Thread.start(Serial)
ok,
so far the thread runs fine in the background, but just does not send the
output to the
textbuffer, and hangs up th
Ok, comments inside your code ...
nephish a écrit :
> Pierre Barbier de Reuille wrote:
>
>> nephish a écrit :
>>
>>
>>> Pierre Barbier de Reuille wrote:
>>>
>>> [...]
>>> ok, i am still having a little problem understanding.
>>> tried it but i don't know if i have things set in the right order.
Pierre Barbier de Reuille wrote:
>nephish a écrit :
>
>
>>Pierre Barbier de Reuille wrote:
>>
>>[...]
>>ok, i am still having a little problem understanding.
>>tried it but i don't know if i have things set in the right order.
>>
>>
>>gtk.gdk.threads_init()
>># Here initialize what you want
>>[.
nephish a écrit :
> Pierre Barbier de Reuille wrote:
>
> [...]
> ok, i am still having a little problem understanding.
> tried it but i don't know if i have things set in the right order.
>
>
> gtk.gdk.threads_init()
> # Here initialize what you want
> [...]
> # Launch the Gtk loop
> gtk.gdk.t
Pierre Barbier de Reuille wrote:
>nephish a écrit :
>
>
>>Hello there !
>>
>>
>
>Hello,
>
>
>
>>i am having a problem with threading.
>>OK, i have this GUI app that i am building with pygtk.
>>there is a process (four actually, just working on getting one right now)
>>that needs to run in
nephish a écrit :
> Hello there !
Hello,
> i am having a problem with threading.
> OK, i have this GUI app that i am building with pygtk.
> there is a process (four actually, just working on getting one right now)
> that needs to run in the background.
Please, do not mix "process" and "threads"
Hello there !
i am having a problem with threading.
OK, i have this GUI app that i am building with pygtk.
there is a process (four actually, just working on getting one right now)
that needs to run in the background.
there is a button that starts the background function. But, it locks up
the gui.
14 matches
Mail list logo