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
Field:addadd_anchoradd_centeredallow_charanchorattention_lostaugment_mouse_eventbg_colorbg_imageborder_colorborder_widthcall_handlercall_parent_handlercommitdefer_drawingdismissdrawdraw_overeditingemptyenableenabledenterActionescapeActionfg_colorfocusfocus_switchfontformatformat_valueget_cursorget_focusget_margin_rectget_rootget_top_widgetget_visibleglobal_to_localhas_focushighlightedinheritedinsertionPointinvalidateis_gl_containerkey_downkey_uplocal_to_globalmarginmaxmenu_barminparentparent_resizedpresentrectrefrelative_moderemoveremove_anchorresizedscale_bgsel_colorset_parentset_size_for_textset_texttab_stoptexttypeuppervaluevisible