Hi Marcus, my bad on this. `hlay` actually refers to the `HBoxLayout()`
I have updated the snippet - https://pastebin.com/raw/EYcMh5hq
When trying out your method where:
class MyTabBar(QtGui.QTabBar):
def __init__(self, parent=None):
super(MyTabBar, self).__init__(parent)
...
...
hlay = QtGui.QHBoxLayout(self)
hlay.addWidget(self.add_button)
...
# Or added in the following
self.setLayout(self)
While it does not seems to error out but the 'add' icon is gone, and I am
presented with nothing..
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/1e49a218-9a06-437e-b2bb-ee971e59a913%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.