I don't think this is a Nuke bug.
You want to pass a parent to the QDialog, so that i can be collected as
Nuke closes. I assume it seg faults on close?
super(TestMainWindow, self).__init__(parent)
parent can be QtGui.QApplication.activeWindow() for example
Does that work?
On 02/04/12 21:22, Matthieu Cadet wrote:
But the thing is, i want to use the window and interact with Nuke at
the same time.
here a simple example window that crashs Nuke if you left it open when
exiting Nuke:
import PySide.QtCore as QtCore
import PySide.QtGui as QtGui
class TestMainWindow(QtGui.QDialog):
def __init__(self):
super(TestMainWindow, self).__init__()
self.hbox=QtGui.QHBoxLayout()
self.button=QtGui.QPushButton("TEST")
self.hbox.addWidget(self.button)
self.setLayout(self.hbox)
wnd=TestMainWindow()
wnd.show()
On Mon, Apr 2, 2012 at 10:35 AM, Jimmy Christensen<[email protected]> wrote:
How does the code look?
You can actually open the window in modal mode, which means it has to be
closed before you can close nuke. Nuke is actually frozen until you close
the window.
Best Regards
Jimmy Christensen
Developer
Ghost A/S
On 31/03/12 00:19, Brogan Ross wrote:
So I've got a very simple PySide widget that opens up and shows some
text. That's it. However, if it is left open and you try to quit Nuke,
the window gets closed, and Nuke crashes. I know it doesn't seem like a
big deal cause Nuke is closing anyway, but has anyone run into something
like this before?
I've tried assigning the window to a global variable and using a
scriptClose callback to make sure the window is closed. But that
doesn't help.
Anyone aware of any work arounds, or some such?
Thanks
_______________________________________________
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
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python