Uploaded Test files
This commit is contained in:
parent
f584ad9d97
commit
2e81cb7d99
16627 changed files with 2065359 additions and 102444 deletions
44
venv/Lib/site-packages/ipywidgets/widgets/widget_date.py
Normal file
44
venv/Lib/site-packages/ipywidgets/widgets/widget_date.py
Normal file
|
@ -0,0 +1,44 @@
|
|||
# Copyright (c) Jupyter Development Team.
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
|
||||
"""Color class.
|
||||
|
||||
Represents an HTML Color .
|
||||
"""
|
||||
|
||||
from .widget_description import DescriptionWidget
|
||||
from .valuewidget import ValueWidget
|
||||
from .widget import register
|
||||
from .widget_core import CoreWidget
|
||||
from .trait_types import Date, date_serialization
|
||||
from traitlets import Unicode, Bool
|
||||
|
||||
|
||||
@register
|
||||
class DatePicker(DescriptionWidget, ValueWidget, CoreWidget):
|
||||
"""
|
||||
Display a widget for picking dates.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
|
||||
value: datetime.date
|
||||
The current value of the widget.
|
||||
|
||||
disabled: bool
|
||||
Whether to disable user changes.
|
||||
|
||||
Examples
|
||||
--------
|
||||
|
||||
>>> import datetime
|
||||
>>> import ipywidgets as widgets
|
||||
>>> date_pick = widgets.DatePicker()
|
||||
>>> date_pick.value = datetime.date(2019, 7, 9)
|
||||
"""
|
||||
value = Date(None, allow_none=True).tag(sync=True, **date_serialization)
|
||||
disabled = Bool(False, help="Enable or disable user changes.").tag(sync=True)
|
||||
|
||||
|
||||
_view_name = Unicode('DatePickerView').tag(sync=True)
|
||||
_model_name = Unicode('DatePickerModel').tag(sync=True)
|
Loading…
Add table
Add a link
Reference in a new issue