示例#1
0
 def init(self, parent):
     """ Finishes initializing the editor by creating the underlying toolkit
         widget.
     """
     factory = self.factory
     self.control = QtGui.QDateTimeEdit()
     self.control.dateTimeChanged.connect(self.update_object)
示例#2
0
    def init(self, parent):
        """Finishes initializing the editor by creating the underlying toolkit
        widget.
        """
        # set min and max early, don't wait for editor sync
        self.minimum_datetime = self.factory.minimum_datetime
        self.maximum_datetime = self.factory.maximum_datetime

        self.control = QtGui.QDateTimeEdit()
        self.update_minimum_datetime()
        self.update_maximum_datetime()
        self.control.dateTimeChanged.connect(self.update_object)