def __init__(self, parent, ancestor): QTabBar.__init__(self, parent) self.ancestor = ancestor # Dragging tabs self.__drag_start_pos = QPoint() self.setAcceptDrops(True)
def __init__(self, parent, ancestor): QTabBar.__init__(self, parent) self.ancestor = ancestor # To style tabs on Mac if sys.platform == 'darwin': self.setObjectName('plugin-tab') # Dragging tabs self.__drag_start_pos = QPoint() self.setAcceptDrops(True)