You cannot draw on widgets from within threads. However since you are calling run() and not start(), your thread is not created at all and run() is called on behalf of the main thread. Have a look at the mandlebrot example to see how to use threads for drawing.
Bookmarks