예제 #1
0
class getDropDialog(QtGui.QDialog):    
    def __init__(self):
        QtGui.QDialog.__init__(self)
        self.drop = Ui_dropDateDialog()
        self.drop.setupUi(self)
        closeFlag = 0

        self.drop.ok_btn.clicked.connect(self.addDate)
        self.drop.cancel_btn.clicked.connect(self.setClose)


    def addDate(self):
        self.dropDate = self.drop.dropDateEdit.date()
        self.drop = self.dropDate.toPyDate()
        self.accept()

    def getDate(self):
        return self.dropDate

    def setClose(self):
        self.closeFlag = 1
        self.accept()

    def getClose(self):
        return self.closeFlag
예제 #2
0
    def __init__(self):
        QtGui.QDialog.__init__(self)
        self.drop = Ui_dropDateDialog()
        self.drop.setupUi(self)
        closeFlag = 0

        self.drop.ok_btn.clicked.connect(self.addDate)
        self.drop.cancel_btn.clicked.connect(self.setClose)
예제 #3
0
    def __init__(self):
        QtGui.QDialog.__init__(self)
        self.drop = Ui_dropDateDialog()
        self.drop.setupUi(self)
        closeFlag = 0

        self.drop.ok_btn.clicked.connect(self.addDate)
        self.drop.cancel_btn.clicked.connect(self.setClose)
예제 #4
0
class getDropDialog(QtGui.QDialog):
    def __init__(self):
        QtGui.QDialog.__init__(self)
        self.drop = Ui_dropDateDialog()
        self.drop.setupUi(self)
        closeFlag = 0

        self.drop.ok_btn.clicked.connect(self.addDate)
        self.drop.cancel_btn.clicked.connect(self.setClose)

    def addDate(self):
        self.dropDate = self.drop.dropDateEdit.date()
        self.drop = self.dropDate.toPyDate()
        self.accept()

    def getDate(self):
        return self.dropDate

    def setClose(self):
        self.closeFlag = 1
        self.accept()

    def getClose(self):
        return self.closeFlag