[PyQt] Re: launch a dialog from main window

Alberto Berti alberto at metapensiero.it
Fri Jun 6 17:37:06 BST 2008


>>>>> "Paolo" == Paolo Franzetti <paolo at lambrate.inaf.it> writes:


    Paolo> How can I do this job without blocking the main window ?

Maybe just studying a bit more of python before writing apps?:)
Some points:

- just one app object for process!!

- if your object must survive the end of the method (e.g. the viewer),
  attach it to something that will survive the method or make it
  global;

- what's the clue on making a main window modal?

Have a look at the demos on the best practices about qt programming,
and also learn about python's nested scopes!

Attached you find a path that will make your code work... 

cheers

-------------- next part --------------
A non-text attachment was scrubbed...
Name: working.patch
Type: text/x-diff
Size: 1736 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080606/11fce948/working.bin


More information about the PyQt mailing list