def __init__(self):
     FwTabWidget.__init__(self)
     self.setMovable(True)
     self.setSizePolicy(
         QtWidgets.QSizePolicy.Expanding,
         QtWidgets.QSizePolicy.Expanding)
     self.hide()
Exemple #2
0
    def __init__(self):
        FwTabWidget.__init__(self)
        self.setMovable(True)
        self.setSizePolicy(QtWidgets.QSizePolicy.Expanding,
                           QtWidgets.QSizePolicy.Expanding)
        self.hide()

        # pop-out button:
        s = QtWidgets.QApplication.style()
        btn = QtWidgets.QToolButton()
        btn.setIcon(s.standardIcon(QtWidgets.QStyle.SP_TitleBarNormalButton))
        btn.setToolTip('Pop-out Dock Preferences')
        btn.clicked.connect(self._togglePopOut)
        self.cornerWidget().layout().addWidget(btn)
Exemple #3
0
 def __init__(self):
     FwTabWidget.__init__(self)
     self.setMovable(True)
     self.setSizePolicy(QtGui.QSizePolicy.Expanding,
                        QtGui.QSizePolicy.Expanding)
     self.hide()