[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] Multithreading and plotting
From: David Hoese <dhoese () gmail ! com>
Date: 2013-01-16 16:11:13
Message-ID: 50F6D121.3020306 () gmail ! com
[Download RAW message or body]
I know what you mean about "not only if it's working", I work for a
meteorology department at a University, it happens.
Your solution will work, but did you try my solution? Or did mine not
make sense? It might just be me, but most programmers look down on
global variables. Your solution isn't the way I would do it, but that
definitely doesn't mean it's wrong.
-Dave
On 1/16/13 3:25 AM, Fabien Lafont wrote:
> Hey,
>
> I found a solution! I've created the thread in the main:
>
> if __name__ == "__main__":
> qApp = QtGui.QApplication([" "])
> aw = ApplicationWindow()
> aw.showMaximized()
> thread = AThread()
> sys.exit(qApp.exec_())
>
> But I "run" thread.start() only when clicking on my button. I'll try
> to post my code soon here to have your comments on it. I'm physicist
> so I'm not coding very well :) but It's better if the code is well
> structured and not only if it's working (as we love to do as
> physicist). Thanks again!
>
> Fabien
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic