(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
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,
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
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
> 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.
___
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
> >
> 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.
___
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
_
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):
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
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
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):
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
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
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
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.
16 matches
Mail list logo