Exemplo n.º 1
0
 def setInputValue(cls, widget, value):
     value, ok = cls.resolveValue(value)
     if ok:
         widget.setDateTime(
             QtCore.QDateTime(
                 QtCore.QDate(value.year, value.month, value.day),
                 QtCore.QTime(value.hour, value.minute, value.second)))
     return ok
Exemplo n.º 2
0
 def setInputValue(cls, widget, value):
     value, ok = cls.resolveValue(value)
     if ok:
         widget.setDate(QtCore.QDate(value.year, value.month, value.day))
     return ok