Hi,
I've just tried example from panels.py

#code begin
    import nuke
    import PyQt4.QtCore as QtCore
    import PyQt4.QtGui as QtGui
    from nukescripts import panels

    class NukeTestWindow(QtGui.QWidget):
      def __init__(self, parent=None):
        QtGui.QWidget.__init__(self, parent)
        self.setLayout( QtGui.QVBoxLayout() )
        self.myTable    = QtGui.QTableWidget( )
        self.myTable.header = ['Date', 'Files', 'Size', 'Path' ]
        self.myTable.size = [ 75, 375, 85, 600 ]
        self.layout().addWidget( self.myTable )

nukescripts.registerWidgetAsPanel('NukeTestWindow', 'NukeTestWindow', 'uk.co.thefoundry.NukeTestWindow' )
#code end

Had to replace PyQt4 with PySide like this in 2nd and 3rd line
import PySide.QtCore as QtCore
import PySide.QtGui as QtGui

Entry in panel menu is created but panel is empty. Same code works perfectly in 6.3v8. What has changed in Nuke 7? Or this is simply beta issue which will be fixed in one of next releases?

regards
Adam
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to