Created
September 12, 2014 13:19
-
-
Save maty974/bb08fde11d52926c0808 to your computer and use it in GitHub Desktop.
nuke9 - widget Pane loose scroll focus example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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