[Qgis-developer] QGIS, Python and Threads

2013-01-22 Thread Matthias Ludwig
Hello, I try to write a plugin in python. The plugin will be part of a complex plugin and will make a longer running numpy calculation. I want the GUI to be responsive during the calculation. As a basis I used Aaron Racicots(http://svn.reprojected.com/qgisplugins/trunk/threading_demo/)

Re: [Qgis-developer] QGIS, Python and Threads

2013-01-22 Thread Kelly Thomas
Hi Matthias, I had a similar problem a couple of weeks back. While I was unable to identify why my first attempt was failing I was able to produce a functioning implementation on the second attempt. I posted my problem (and later a working solution) over here. [1] Another gotcha to be aware of

Re: [Qgis-developer] QGIS, Python and Threads

2013-01-22 Thread Kelly Thomas
Another gotcha to be aware of is that any python errors that occur in the other thread will be displayed in the MessageLog, I find it useful to have this as a floating window during development. I think it's an indenting error.It looks like your code is indented with tabs, while the other code