Example #1
0
    def __init__(self, parent=None):
        QtGui.QDialog.__init__(self, parent)

        self.ui=Ui_TosWindow()
        self.ui.setupUi(self)
        self.ui.pushAccept.clicked.connect(self.pushAccept)
        self.ui.pushCancel.clicked.connect(self.pushCancel)
Example #2
0
class TosWindow(QtGui.QDialog):
    def __init__(self, parent=None):
        QtGui.QDialog.__init__(self, parent)

        self.ui=Ui_TosWindow()
        self.ui.setupUi(self)
        self.ui.pushAccept.clicked.connect(self.pushAccept)
        self.ui.pushCancel.clicked.connect(self.pushCancel)

    def show(self):
        QtGui.QDialog.show(self)
        self.setWindowState(QtCore.Qt.WindowMaximized)
        self.setModal(True)

    def pushAccept(self):
        self.accept()

    def pushCancel(self):
        self.reject()