import sys
sys.path.insert(0, '/user_data/dev_test/anmg/')
import mainTool
reload(mainTool)
win = mainTool.MigrationUi()
win.show()# anmgToolUI
def editSelected(self):
inputWin = PublishInfoUI()
inputWin.show()
You are creating that widget without a parent, so it gets garbage collected immediately and you never see it.
Try calling it with:
inputWin = PublishInfoUI(self)
inputWin.setAttribute(QtCore.Qt.WA_DeleteOnClose)
inputWin.show()
That will make sure you don’t leak the window reference when you close it. Or you can do this if you want a modal dialog:
inputWin = PublishInfoUI()
inputWin.exec_()
Justin
—
You received this message because you are subscribed to the Google Groups “Python Programming for Autodesk Maya” group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/4a9d4782-5f81-49a6-907b-c03f81b9ac44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
Ya it is effectively the same thing except Qt handles it for you in the closeEvent
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/9d847ab0-b688-48e1-94a6-6e59e13be325%40googlegroups.com.