Re: [PyQt] QThread problem in linux

2009-03-24 Thread mir amicitas
(ack sorry I pressed the wrong button and sent it before it was done. Here is the exciting conculsion . . .) I think what you probably want to do here is to put your loadModule() function in a thread instead of the the progress dialog.  That is to say the program that you want to run in the backgr

[PyQt] QThread problem in linux

2009-03-24 Thread Stefan Stammberger
Hi, I have a small QThread problem here. I'm trying to do a small progress bar in my app while my app is working. I have already tried QApplication.processEvents() which works very well in Windows but screws everything up in Linux. When I use it my app receives key events only once in 10 tries,

Re: [PyQt] QThread problem

2008-12-10 Thread Sergio Jovani
El Monday 08 December 2008 03:53:28 vàreu escriure: > On Mon, Dec 8, 2008 at 12:53 AM, Sergio Jovani <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I'm developing a downloads application and I have created a QThread for > > that reason. I start the QThread with no problems, but when I try > > termi

Re: [PyQt] QThread problem

2008-12-08 Thread Giovanni Bajo
On lun, 2008-12-08 at 19:48 +0100, Sergio Jovani wrote: > > On lun, 2008-12-08 at 01:53 +0100, Sergio Jovani wrote: > > > I'm developing a downloads application and I have created a QThread > > > for that reason. > > > > You don't need threads to download files with PyQt. In fact, it's far > > easi

Re: [PyQt] QThread problem

2008-12-08 Thread Sergio Jovani
> I'm going to throw this out there, you should exchange information via > signals/slots. When you get a cancel use terminate() slot. That will > stop it from freezing you program from the looks of it. I tried and I get the same running terminate() slot from signal and outside. Thanks. ___

Re: [PyQt] QThread problem

2008-12-08 Thread Sergio Jovani
El Monday 08 December 2008 17:19:42 vàreu escriure: > Hello, > > Sergio Jovani wrote > > > class Download(QThread): > > def __init__(self, url, path, filename, parent = None): > > QThread.__init__(self, parent) > > self.path=path > > self.url=url > >

Re: [PyQt] QThread problem

2008-12-08 Thread Sergio Jovani
> On lun, 2008-12-08 at 01:53 +0100, Sergio Jovani wrote: > > I'm developing a downloads application and I have created a QThread > > for that reason. > > You don't need threads to download files with PyQt. In fact, it's far > easier without. Hi, I would like know it! Thanks. ___

Re: [PyQt] QThread problem

2008-12-08 Thread Giovanni Bajo
On lun, 2008-12-08 at 01:53 +0100, Sergio Jovani wrote: > I'm developing a downloads application and I have created a QThread > for that reason. You don't need threads to download files with PyQt. In fact, it's far easier without. -- Giovanni Bajo Develer S.r.l. http://www.develer.com _

Re: [PyQt] QThread problem

2008-12-08 Thread Darryl Wallace
Hello, Sergio Jovani wrote class Download(QThread): def __init__(self, url, path, filename, parent = None): QThread.__init__(self, parent) self.path=path self.url=url self.filename=filename def run(self):

Re: [PyQt] QThread problem

2008-12-08 Thread Matt Smith
I'm going to throw this out there, you should exchange information via signals/slots. When you get a cancel use terminate() slot. That will stop it from freezing you program from the looks of it. ___ PyQt mailing listPyQt@riverbankcomputing.com htt

[PyQt] QThread problem

2008-12-08 Thread Sergio Jovani
El Monday 08 December 2008 03:53:28 vàreu escriure: > On Mon, Dec 8, 2008 at 12:53 AM, Sergio Jovani <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I'm developing a downloads application and I have created a QThread for > > that reason. I start the QThread with no problems, but when I try > > termi

[PyQt] QThread problem

2008-12-07 Thread Sergio Jovani
Hi all, I'm developing a downloads application and I have created a QThread for that reason. I start the QThread with no problems, but when I try terminate it clicking on cancel pushbutton, I can't, application freezes. Thanks in advance. Here the code: --- class MainWindow(QMainWindow):

Re: [PyQt] QThread problem using PyQt4.4.2

2008-05-23 Thread Stanislas Marquis
2008/5/23 Matt Newell <[EMAIL PROTECTED]>: ... > Does it consistently error on the first import or variable use, or is it > somewhat random? > > Matt > Difficult to say wether it's random, but I think yes, this is the first import (according to urllib.py) after the run() method. And it's the first

Re: [PyQt] QThread problem using PyQt4.4.2

2008-05-23 Thread Matt Newell
On Friday 23 May 2008 09:06:12 Stanislas Marquis wrote: > Hello all, > I'm facing a problem with threads. The strange part of it is that it > was working fine with PyQt4.3.x. > It seems like inside the thread it's not able to "import" modules or > access variables anymore. All I get is tracebacks l

Re: [PyQt] QThread problem using PyQt4.4.2

2008-05-23 Thread Phil Thompson
On Friday 23 May 2008 5:06:12 pm Stanislas Marquis wrote: > Hello all, > I'm facing a problem with threads. The strange part of it is that it > was working fine with PyQt4.3.x. > It seems like inside the thread it's not able to "import" modules or > access variables anymore. All I get is tracebacks

[PyQt] QThread problem using PyQt4.4.2

2008-05-23 Thread Stanislas Marquis
Hello all, I'm facing a problem with threads. The strange part of it is that it was working fine with PyQt4.3.x. It seems like inside the thread it's not able to "import" modules or access variables anymore. All I get is tracebacks like: Traceback (most recent call last): File "/usr/lib/python2.