I don't know if it'll help but I use .setMinumumSize(x, y)
This sets the initial and minimum size, since I ran into the same problem as you did. On Sep 26, 2014 5:23 AM, "Fredrik Averpil" <fredrik.aver...@gmail.com> wrote: > Hi, > > How can I set a pane to a certain width? > I’m creating my own pyside widget and I’m attaching it to a pane like this: > > pane = nuke.getPaneFor('Toolbar.1') > panel = panels.registerWidgetAsPanel( 'MyApp' , windowTitle, > ('uk.co.thefoundry.MyAppWindow'), True) > panel.addToPane(pane) > > And then I try to perform a pane.setWidth(350). But that just doesn’t > work althought I can view the current width with print pane.width(). > I can’t find anything in the python docs on anything like a nuke.pane > either... > > Any ideas? > > Regards, > Fredrik > > > _______________________________________________ > 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 > >
_______________________________________________ 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