Trees | Indices | Help |
|
---|
|
1 # Copyright (c) 2009 The Foundry Visionmongers Ltd. All Rights Reserved. 2 # This example assumes that PyQt was built and setup with Nuke's Qt Version 3 # !! It will only work in this situation !! 4 # otherwise use the other example PyQtRender.py 5 import sys, os.path 6 import nuke 7 8 from PyQt4 import QtCore, QtGui, uic 936 4012 # Set up the user interface from Designer. 13 self.ui = uic.loadUi(os.path.join(os.path.dirname(nukescripts.__file__), "pyQtExamples", "pyQtRender.ui")) 14 self.ui.connect(self.ui.renderButton, QtCore.SIGNAL("clicked()"), self.render) 15 nuke.addOnCreate(self.onCreateCallback)1618 self.ui.show()19 2527 item = QtGui.QTreeWidgetItem() 28 item.setText(0, n['name'].value()) 29 self.ui.treeWidget.addTopLevelItem(item)30
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jun 30 18:46:45 2017 | http://epydoc.sourceforge.net |