Exemplo n.º 1
0
    def __init__(self, parent):
        PAbstractBox.__init__(self, parent)

        self.ui = Ui_InfoWidget()
        self.ui.setupUi(self)

        self.ui.hideButton = QtGui.QPushButton(self.ui.webView)

        self._animation = 2
        self._duration = 500

        self.enableOverlay()
        self.hide()
Exemplo n.º 2
0
class UserStudyItemInfo(PAbstractBox):
    def __init__(self, parent):
        PAbstractBox.__init__(self, parent)

        self.ui = Ui_InfoWidget()
        self.ui.setupUi(self)

        self.ui.hideButton = QtGui.QPushButton(self.ui.webView)

        self._animation = 2
        self._duration = 500

        self.enableOverlay()
        self.hide()

    def resizeEvent(self, event):
        PAbstractBox.resizeEvent(self, event)
        print event.size().width()
        self.ui.hideButton.move(event.size().width() - self.ui.hideButton.width(), 0)
Exemplo n.º 3
0
class UserStudyItemInfo(PAbstractBox):
    def __init__(self, parent):
        PAbstractBox.__init__(self, parent)

        self.ui = Ui_InfoWidget()
        self.ui.setupUi(self)

        self.ui.hideButton = QtGui.QPushButton(self.ui.webView)

        self._animation = 2
        self._duration = 500

        self.enableOverlay()
        self.hide()

    def resizeEvent(self, event):
        PAbstractBox.resizeEvent(self, event)
        print event.size().width()
        self.ui.hideButton.move(
            event.size().width() - self.ui.hideButton.width(), 0)
Exemplo n.º 4
0
    def __init__(self, parent):
        PAbstractBox.__init__(self, parent)

        self.ui = Ui_InfoWidget()
        self.ui.setupUi(self)

        self.ui.hideButton = QtGui.QPushButton(self.ui.webView)

        self._animation = 2
        self._duration = 500

        self.enableOverlay()
        self.hide()