Module albow.input.TextField

Source code
from albow.input.Field import Field


class TextField(Field):

    """
    A control for editing values of type str.

    """
    _value = ""

    def __init__(self, width=None, **kwds):
        self.type = str
        super().__init__(width, **kwds)

Classes

class TextField (width=None, **kwds)

A control for editing values of type str.

Args

width
The width may be an integer or a string, as for TextEditor. If no width is specified, but a value for min and/or max is specified at construction time, the width will be determined from the min or max value. If no other way of determining the width is available, it defaults to 100.

**kwds:

Source code
class TextField(Field):

    """
    A control for editing values of type str.

    """
    _value = ""

    def __init__(self, width=None, **kwds):
        self.type = str
        super().__init__(width, **kwds)

Ancestors

Inherited members