Entry Boxes
- class pumpia.widgets.entry_boxes.IntEntry(parent: Misc, widget: str | None = None, *, background: str = ..., class_: str = '', cursor: str | tuple[str] | tuple[str, str] | tuple[str, str, str] | tuple[str, str, str, str] = ..., exportselection: bool = True, font: str | Font | list[Any] | tuple[str] | tuple[str, int] | tuple[str, int, str] | tuple[str, int, list[str] | tuple[str, ...]] = 'TkTextFont', foreground: str = '', invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = '', justify: Literal['left', 'center', 'right'] = 'left', name: str = ..., show: str = '', state: str = 'normal', style: str = '', takefocus: bool | Literal[0, 1, ''] | Callable[[str], bool | None] = ..., textvariable: IntVar = ..., validate: Literal['none', 'focus', 'focusin', 'focusout', 'key', 'all'] = 'all', validatecommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = '', width: int = 20, xscrollcommand: str | Callable[[float, float], object] = '')
- class pumpia.widgets.entry_boxes.IntEntry(parent: Misc, widget: str | None = None, *, validate: Literal['none', 'focus', 'focusin', 'focusout', 'key', 'all'] = 'all', **kw)
Entry widget for integer input.
- Parameters:
parent (tk.Misc) – The parent widget.
widget (str or None, optional) – The widget name (default is None).
background (str, optional) – The background color (default is undocumented).
class (str, optional) – The class name (default is “”).
cursor (Cursor, optional) – The cursor type (default is “”).
exportselection (bool, optional) – Whether to export selection (default is True).
font (FontDescription, optional) – The font description (default is “TkTextFont”).
foreground (str, optional) – The foreground color (default is “”).
invalidcommand (EntryValidateCommand, optional) – The command to run when validation fails (default is “”).
justify (Literal["left", "center", "right"], optional) – The justification of the text (default is “left”).
name (str, optional) – The name of the widget (default is None).
show (str, optional) – The character to display instead of the actual text (default is “”).
state (str, optional) – The state of the widget (default is “normal”).
style (str, optional) – The style of the widget (default is “”).
takefocus (TakeFocusValue, optional) – Whether the widget can take focus (default is None).
textvariable (tk.IntVar, optional) – The variable to store the integer value (default is None).
validate (EntryValidateOptions, optional) – The validation option (default is ‘all’).
validatecommand (EntryValidateCommand, optional) – The command to run when validation is triggered (default is “”).
width (int, optional) – The width of the widget (default is 20).
xscrollcommand (XYScrollCommand, optional) – The command to run when the widget is scrolled (default is “”).
- class pumpia.widgets.entry_boxes.FloatEntry(parent: Misc, widget: str | None = None, *, background: str = ..., class_: str = '', cursor: str | tuple[str] | tuple[str, str] | tuple[str, str, str] | tuple[str, str, str, str] = ..., exportselection: bool = True, font: str | Font | list[Any] | tuple[str] | tuple[str, int] | tuple[str, int, str] | tuple[str, int, list[str] | tuple[str, ...]] = 'TkTextFont', foreground: str = '', invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = '', justify: Literal['left', 'center', 'right'] = 'left', name: str = ..., show: str = '', state: str = 'normal', style: str = '', takefocus: bool | Literal[0, 1, ''] | Callable[[str], bool | None] = ..., textvariable: DoubleVar = ..., validate: Literal['none', 'focus', 'focusin', 'focusout', 'key', 'all'] = 'all', validatecommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = '', width: int = 20, xscrollcommand: str | Callable[[float, float], object] = '')
- class pumpia.widgets.entry_boxes.FloatEntry(parent: Misc, widget: str | None = None, *, validate: Literal['none', 'focus', 'focusin', 'focusout', 'key', 'all'] = 'all', **kw)
Entry widget for float input.
- Parameters:
parent (tk.Misc) – The parent widget.
widget (str or None, optional) – The widget name (default is None).
background (str, optional) – The background color (default is undocumented).
class (str, optional) – The class name (default is “”).
cursor (Cursor, optional) – The cursor type (default is “”).
exportselection (bool, optional) – Whether to export selection (default is True).
font (FontDescription, optional) – The font description (default is “TkTextFont”).
foreground (str, optional) – The foreground color (default is “”).
invalidcommand (EntryValidateCommand, optional) – The command to run when validation fails (default is “”).
justify (Literal["left", "center", "right"], optional) – The justification of the text (default is “left”).
name (str, optional) – The name of the widget (default is None).
show (str, optional) – The character to display instead of the actual text (default is “”).
state (str, optional) – The state of the widget (default is “normal”).
style (str, optional) – The style of the widget (default is “”).
takefocus (TakeFocusValue, optional) – Whether the widget can take focus (default is None).
textvariable (tk.DoubleVar, optional) – The variable to store the float value (default is None).
validate (EntryValidateOptions, optional) – The validation option (default is ‘all’).
validatecommand (EntryValidateCommand, optional) – The command to run when validation is triggered (default is “”).
width (int, optional) – The width of the widget (default is 20).
xscrollcommand (XYScrollCommand, optional) – The command to run when the widget is scrolled (default is “”).
- class pumpia.widgets.entry_boxes.PercEntry(parent: Misc, widget: str | None = None, *, background: str = ..., class_: str = '', cursor: str | tuple[str] | tuple[str, str] | tuple[str, str, str] | tuple[str, str, str, str] = ..., exportselection: bool = True, font: str | Font | list[Any] | tuple[str] | tuple[str, int] | tuple[str, int, str] | tuple[str, int, list[str] | tuple[str, ...]] = 'TkTextFont', foreground: str = '', invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = '', justify: Literal['left', 'center', 'right'] = 'left', name: str = ..., show: str = '', state: str = 'normal', style: str = '', takefocus: bool | Literal[0, 1, ''] | Callable[[str], bool | None] = ..., textvariable: DoubleVar = ..., validate: Literal['none', 'focus', 'focusin', 'focusout', 'key', 'all'] = 'all', validatecommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = '', width: int = 20, xscrollcommand: str | Callable[[float, float], object] = '')
- class pumpia.widgets.entry_boxes.PercEntry(parent: Misc, widget: str | None = None, *, validate: Literal['none', 'focus', 'focusin', 'focusout', 'key', 'all'] = 'all', **kw)
Entry widget for percentage input.
- Parameters:
parent (tk.Misc) – The parent widget.
widget (str or None, optional) – The widget name (default is None).
background (str, optional) – The background color (default is undocumented).
class (str, optional) – The class name (default is “”).
cursor (Cursor, optional) – The cursor type (default is “”).
exportselection (bool, optional) – Whether to export selection (default is True).
font (FontDescription, optional) – The font description (default is “TkTextFont”).
foreground (str, optional) – The foreground color (default is “”).
invalidcommand (EntryValidateCommand, optional) – The command to run when validation fails (default is “”).
justify (Literal["left", "center", "right"], optional) – The justification of the text (default is “left”).
name (str, optional) – The name of the widget (default is None).
show (str, optional) – The character to display instead of the actual text (default is “”).
state (str, optional) – The state of the widget (default is “normal”).
style (str, optional) – The style of the widget (default is “”).
takefocus (TakeFocusValue, optional) – Whether the widget can take focus (default is None).
textvariable (tk.DoubleVar, optional) – The variable to store the percentage value (default is None).
validate (EntryValidateOptions, optional) – The validation option (default is ‘all’).
validatecommand (EntryValidateCommand, optional) – The command to run when validation is triggered (default is “”).
width (int, optional) – The width of the widget (default is 20).
xscrollcommand (XYScrollCommand, optional) – The command to run when the widget is scrolled (default is “”).
- class pumpia.widgets.entry_boxes.DateEntry(parent: Misc, textvariable: DateVar, widget: str | None = None, *, background: str = ..., class_: str = '', cursor: str | tuple[str] | tuple[str, str] | tuple[str, str, str] | tuple[str, str, str, str] = ..., exportselection: bool = True, font: str | Font | list[Any] | tuple[str] | tuple[str, int] | tuple[str, int, str] | tuple[str, int, list[str] | tuple[str, ...]] = 'TkTextFont', foreground: str = '', invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = '', justify: Literal['left', 'center', 'right'] = 'left', name: str = ..., show: str = '', state: str = 'normal', style: str = '', takefocus: bool | Literal[0, 1, ''] | Callable[[str], bool | None] = ..., validate: Literal['none', 'focus', 'focusin', 'focusout', 'key', 'all'] = 'focusout', validatecommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = '', width: int = 20, xscrollcommand: str | Callable[[float, float], object] = '')
- class pumpia.widgets.entry_boxes.DateEntry(parent: Misc, textvariable: DateVar, widget: str | None = None, *, validate: Literal['none', 'focus', 'focusin', 'focusout', 'key', 'all'] = 'focusout', **kw)
Entry widget for date input.
- Parameters:
parent (tk.Misc) – The parent widget.
textvariable (DateVar) – The variable to store the date.
widget (str or None, optional) – The widget name (default is None).
background (str, optional) – The background color (default is undocumented).
class (str, optional) – The class name (default is “”).
cursor (Cursor, optional) – The cursor type (default is “”).
exportselection (bool, optional) – Whether to export selection (default is True).
font (FontDescription, optional) – The font description (default is “TkTextFont”).
foreground (str, optional) – The foreground color (default is “”).
invalidcommand (EntryValidateCommand, optional) – The command to run when validation fails (default is “”).
justify (Literal["left", "center", "right"], optional) – The justification of the text (default is “left”).
name (str, optional) – The name of the widget (default is None).
show (str, optional) – The character to display instead of the actual text (default is “”).
state (str, optional) – The state of the widget (default is “normal”).
style (str, optional) – The style of the widget (default is “”).
takefocus (TakeFocusValue, optional) – Whether the widget can take focus (default is None).
validate (EntryValidateOptions, optional) – The validation option (default is ‘focusout’).
validatecommand (EntryValidateCommand, optional) – The command to run when validation is triggered (default is “”).
width (int, optional) – The width of the widget (default is 20).
xscrollcommand (XYScrollCommand, optional) – The command to run when the widget is scrolled (default is “”).