TimePicker

Screenshot

Timepicker - Reference - Enaml-native - CodeLV

Example

from enamlnative.widgets.api import *

enamldef ContentView(Flexbox):
    flex_direction = "column"
    align_items = "center"
    TimePicker: tp:
        width = "match_parent"
        height = "wrap_content"
    TextView:
        text << "Time: {}:{} ".format(tp.hour, tp.minute)

Declaration

class enamlnative.widgets.time_picker.TimePicker(parent=None, **kwargs)[source]

Bases: enamlnative.widgets.frame_layout.FrameLayout

A simple control for displaying read-only text.

enabled

Set the enabled state of this view.

hour

Sets the currently selected hour using 24-hour time.

minute

Sets the currently selected minute.

hour_mode

Sets whether this widget displays time in 24-hour mode or 12-hour mode with an AM/PM picker.

proxy

A reference to the ProxyLabel object.

Android Implementation

class enamlnative.android.android_time_picker.AndroidTimePicker[source]

Bases: enamlnative.android.android_frame_layout.AndroidFrameLayout, enamlnative.widgets.time_picker.ProxyTimePicker

An Android implementation of an Enaml ProxyTimePicker.

widget

A reference to the widget created by the proxy.

create_widget()[source]

Create the underlying widget.

init_widget()[source]

Initialize the underlying widget.

No iOS implementation found.