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()
def __init__(self, parent): super().__init__(parent) self.view = DateSelectorDialog() self.view.setupUi(self)