Re: [Nuke-python] PySide Widget Panel

2017-05-23 Thread Bruno-Pierre Jobin
Thank you guys! Works beautifully! On Mon, May 22, 2017 at 6:32 AM, Matthieu Cadet wrote: > Hi > > I've updated the orginal Gist code for setNukeZeroMarginsWidget.py > Usage is the same as Ben says: > > class Example(QtGui.QWidget): > def __init__(self, parent=None): > super(Exampl

Re: [Nuke-python] PySide Widget Panel

2017-05-22 Thread Matthieu Cadet
Hi I've updated the orginal Gist code for setNukeZeroMarginsWidget.py Usage is the same as Ben says: class Example(QtGui.QWidget): def __init__(self, parent=None): super(Example, self).__init__(parent=parent) def showEvent(self, event): if not event.spontaneous():

Re: [Nuke-python] PySide Widget Panel

2017-05-21 Thread Ben Dickson
Call it on showEvent of your widget, e.g class Example(QtGui.QWidget): def __init__(self, parent=None): super(Example, self).__init__(parent=parent) def showEvent(self, event): if not event.spontaneous(): # Only need to fix margins when initially showing the

Re: [Nuke-python] PySide Widget Panel

2017-05-19 Thread Bruno-Pierre Jobin
This seems to be what I'm looking for, but I'm having a hard time putting it all together. If I'm creating my panel inside my menu.py instead of inside the module itself, will it work? Right now I'm getting this error: Traceback (most recent call last): File "/home/bpjobin/.nuke/menu.py", line 1

Re: [Nuke-python] PySide Widget Panel

2017-05-19 Thread Fredrik Averpil
Check out the "_nuke_set_zero_margins" function here: https://github.com/fredrikaverpil/pyvfx-boilerplate/blob/master/boilerplate.py fre 19 maj 2017 kl. 14:55 skrev Bruno-Pierre Jobin : > It helps a little bit (I'm gaining around 5px). When I compare to a python > panel though, it too has that be

Re: [Nuke-python] PySide Widget Panel

2017-05-19 Thread Bruno-Pierre Jobin
It helps a little bit (I'm gaining around 5px). When I compare to a python panel though, it too has that bezel. Maybe it's deeper inside Nuke styling? On Fri, May 19, 2017 at 2:14 AM, Frank Rueter|OHUfx wrote: > Have you tried setting your main widgets content margins to 0? > E.g.: > lay

Re: [Nuke-python] PySide Widget Panel

2017-05-18 Thread Frank Rueter|OHUfx
Have you tried setting your main widgets content margins to 0? E.g.: layout = QVBoxLayout() layout.setContentsMargins(0,0,0,0) On 18/05/17 8:10 AM, Bruno-Pierre Jobin wrote: Hi, I think this has been discussed before, but I can't find the thread. Is there a way to make a PySi

[Nuke-python] PySide Widget Panel

2017-05-18 Thread Bruno-Pierre Jobin
Hi, I think this has been discussed before, but I can't find the thread. Is there a way to make a PySide widget take up the full width and height of the available space in a tab? ​ ​Thank you! -- Bruno-Pierre Jobin www.bpjobin.com ___ Nuke-python mai