[QtGui module]
该QTimeEdit类提供了基于编辑时间窗口小部件QDateTimeEdit小工具。More…
Methods
__init__ (self, QWidget parent = None)
__init__ (self, QTime time, QWidget parent = None)
Detailed Description
该QTimeEdit类提供了基于编辑时间窗口小部件QDateTimeEdit小工具。
许多由QTimeEdit提供的性能和功能都在实施QDateTimeEdit。下列属性是最相关与这个类的用户:
- time holds the date displayed by the widget.
- minimumTime defines the minimum (earliest) time that can be set by the user.
- maximumTime defines the maximum (latest) time that can be set by the user.
- displayFormat contains a string that is used to format the time displayed in the widget.
| | A time editing widget shown in the Windows XP widget style. |
| | A time editing widget shown in the Macintosh widget style. |
| | A time editing widget shown in the Plastique widget style. |
Method Documentation
QTimeEdit.__init__ (self, QWidget parent = None)
该parent的说法,如果不是没有,原因self通过Qt的,而不是PyQt的拥有。
构造一个空的时间编辑器parent。
QTimeEdit.__init__ (self, QTime time, QWidget parent = None)
该parent的说法,如果不是没有,原因self通过Qt的,而不是PyQt的拥有。
构造一个空的时间编辑器parent。的时间设定为time。