def init (self, parent):
        if self.factory.multi_select and not isinstance(self.value, list):
            raise ValueError('Multi-select is True, but editing a non-list.')
        elif not self.factory.multi_select and isinstance(self.value, list):
            raise ValueError('Multi-select is False, but editing a list.')

        calendar_ctrl = MultiCalendarCtrl(parent,
                                          -1,
                                          self,
                                          self.factory.multi_select,
                                          self.factory.shift_to_select,
                                          self.factory.on_mixed_select,
                                          self.factory.allow_future,
                                          self.factory.months,
                                          self.factory.padding)
        self.control = calendar_ctrl
        return
Finishes initializing the editor by creating the underlying widget.
dataset/ETHPy150Open enthought/traitsui/traitsui/wx/date_editor.py/CustomEditor.init