Skip to content

Instantly share code, notes, and snippets.

@maty974
Created September 12, 2014 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maty974/bb08fde11d52926c0808 to your computer and use it in GitHub Desktop.
Save maty974/bb08fde11d52926c0808 to your computer and use it in GitHub Desktop.
nuke9 - widget Pane loose scroll focus example
import PySide.QtGui as QtGui
class SampleScrollWidget(QtGui.QListWidget):
def __init__(self, parent=None):
QtGui.QListWidget.__init__(self, parent)
self.add_random_items()
def add_random_items(self):
for n in range(0, 88):
self.addItem("item - %04d" % n)
def addToPane():
nukescripts.panels.registerWidgetAsPanel('SampleScrollWidget', 'SampleScrollWidget', 'test.SampleScrollWidget')
# Add the Pane to Nuke
addToPane()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment