Re: [PyQt] QThreads and exceptions

2012-12-18 Thread Szabo, Patrick (LNG-VIE)
] Gesendet: Dienstag, 18. Dezember 2012 14:53 An: Szabo, Patrick (LNG-VIE) Cc: PyQt Mailing List Betreff: Re: [PyQt] QThreads and exceptions no, what I want is to catch the exception in the main thread! On Tue, Dec 18, 2012 at 8:39 AM, Szabo, Patrick (LNG-VIE) mailto:patrick.sz...@lexisnexis.at>>

Re: [PyQt] QThreads and exceptions

2012-12-18 Thread José M . Rodriguez Bacallao
Rodriguez > Bacallao > *Gesendet:* Dienstag, 18. Dezember 2012 14:34 > *An:* PyQt Mailing List > *Betreff:* Re: [PyQt] QThreads and exceptions > > ** ** > > anyone? > > ** ** > > On Mon, Dec 17, 2012 at 3:53 PM, José M. Rodriguez Bacallao < > jmr...@

Re: [PyQt] QThreads and exceptions

2012-12-18 Thread Szabo, Patrick (LNG-VIE)
...@riverbankcomputing.com] Im Auftrag von José M. Rodriguez Bacallao Gesendet: Dienstag, 18. Dezember 2012 14:34 An: PyQt Mailing List Betreff: Re: [PyQt] QThreads and exceptions anyone? On Mon, Dec 17, 2012 at 3:53 PM, José M. Rodriguez Bacallao mailto:jmr...@gmail.com>> wrote: how to catch an exception throw

Re: [PyQt] QThreads and exceptions

2012-12-18 Thread José M . Rodriguez Bacallao
anyone? On Mon, Dec 17, 2012 at 3:53 PM, José M. Rodriguez Bacallao < jmr...@gmail.com> wrote: > how to catch an exception thrown from a QThread, if I use python threads, > I can catch it but no from QThread. ___ PyQt mailing listPyQt@riverbankcomp

[PyQt] QThreads and exceptions

2012-12-17 Thread José M . Rodriguez Bacallao
how to catch an exception thrown from a QThread, if I use python threads, I can catch it but no from QThread. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QThreads

2007-07-23 Thread Pierre Ducroquet
On Monday 23 July 2007 16:35:58 kib2 wrote: > Hi, > > What's the difference between > finished() and terminated() methods of a QThread ? > > Thanks. Terminated means it was closed using terminate while still working. Finished means it has finished its work.

[PyQt] QThreads

2007-07-23 Thread kib2
Hi, What's the difference between finished() and terminated() methods of a QThread ? Thanks. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyKDE] PyQt Qthreads

2006-11-02 Thread Gregor Kling
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > tell here which is the problem :-) Hm, my studies about the problem are not finished, but using postEvent instead of sendEvent gives me success -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFSfKEJFHWQ694uCYRAtjMAJ94rfU

Re: [PyKDE] PyQt Qthreads

2006-11-02 Thread Gregor Kling
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > test it, I think that this method called from QEvent or from onclick > Event should do the same. Or maybe you call two times too fast and there > is some problem because you haven't read the data first time and you > call again. But I don't think so

Re: [PyKDE] PyQt Qthreads

2006-11-01 Thread Carles Pina i Estany
Hello, On Nov/01/2006, Gregor Kling wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hello, > > > You mean that is not updating the representation (graphics) in that > > time? ¿? > > If you do from other method, called from other event (buttonclicked) > > then it works? > I didn't

Re: [PyKDE] PyQt Qthreads

2006-11-01 Thread Gregor Kling
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, > You mean that is not updating the representation (graphics) in that > time? ¿? > If you do from other method, called from other event (buttonclicked) > then it works? I didn't test it with another method. The result from the database-query re

Re: [PyKDE] PyQt Qthreads

2006-11-01 Thread Carles Pina i Estany
Hi! On Nov/01/2006, Gregor Kling wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hello Carles, > > Hope that will help... > Yes that does thanks. ok happy, > The update_host_find_dialog(host) does: > if (self.first): > > > nk = host.get_name_ipv4()[0] > host_id =

Re: [PyKDE] PyQt Qthreads

2006-11-01 Thread Gregor Kling
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Carles, > Hope that will help... Yes that does thanks. But,.. In my thread, in which i do the db-query i have now following line: for row in result: host_id = row[0] host = DVZhostData(self.__dbcon) host.fill_h

Re: [PyKDE] PyQt Qthreads

2006-10-31 Thread Carles Pina i Estany
Hello, On Oct/31/2006, Gregor Kling wrote: > > QCustomEvent. Something like that (note that this is for Qt3, not Qt4, I > > don't know if it has been changed): > In this case, regrettably i'm using Qt4, and there are no longer these > event-classes, i for one doesn't see them. > I found some exa

Re: [PyKDE] PyQt Qthreads

2006-10-31 Thread Gregor Kling
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > In this case, regrettably i'm using Qt4, and there are no longer these > event-classes, i for one doesn't see them. > I found some examples, but they all use the customevent stuff. Uh, ah, okay reading helps sometimes ;-) I just found the QEvent clas

Re: [PyKDE] PyQt Qthreads

2006-10-31 Thread Gregor Kling
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thnx Krzysztof, > As far as I understand your code, in GUI you are running in loop, > processing incoming pieces of data. This will not work, GUI updating is > event-driven, so you should process one piece of data at the time and > return control to G

Re: [PyKDE] PyQt Qthreads

2006-10-31 Thread Krzysztof Lichota
Gregor Kling napisał(a): > I can see that the printouts are as intended, but > the presentation in the WidgetTable ist presented when > the thread is complete instead of an iterative update. > > > Anyone has an idea ? As far as I understand your code, in GUI you are running in loop, processing i

[PyKDE] PyQt Qthreads

2006-10-31 Thread Gregor Kling
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, Maybe there has someone an idea what is wrong with my (possibly braindead) interaction with a database query and the representation in a Dialog. I have a class Finder with following impl: class Finder(QtCore.QThread): def __init__(self,sea