Does the new style signal/connect work better?
http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/new_style_signals_slots.html

self.finished.connect(self.onFinished)

def onFinished(self, value):
    ...
    ...

Also, might want to call the method that gets called on the finished signal something different from the signal, so there's no confusion (for qt).




On 01/11/11 02:17, Josh Imbruglia wrote:
hi everybody,

I'm having trouble getting anything other then exec_ working to open
my PyQt dialogs under nuke 6.3. I want to make a dialog non-modal but
whenever i use show() to display the dialog none of my connections are
setup. Has anyone else experienced this or found a workaround?

a brief excerpt of my code is:

class pyQt_myDialog(object):
     def __init__(self):
         self.ui = uic.loadUi('myDialog.ui')
         self.ui.connect(self.ui, SIGNAL("finished(int)"), self.finished)

     def finished(self, code):
         sys.stderr.write('we are finished %s\n' % str(code))

if i use exec_() to run it i get the printed statement, with open() or
show() nothing gets printed on closing the window. the ui gets loaded
correctly with the loadUi command.

any help or ideas on making a non-modal pyqt window in nuke6.3 would
be oh so helpful.

thanks!
Josh
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to