Ejemplo n.º 1
0
class DateSelectorDialogController(QDialog):
    """
    This class opens a dialog with a date selection.
    Once the dialog is accepted, the selected date will be returned
    """

    def __init__(self, parent):
        super().__init__(parent)
        self.view = DateSelectorDialog()
        self.view.setupUi(self)

    def get_date(self):
        return self.view.calendar.selectedDate().getDate()
Ejemplo n.º 2
0
 def __init__(self, parent):
     super().__init__(parent)
     self.view = DateSelectorDialog()
     self.view.setupUi(self)