跳转至

tkintertools.standard._auxiliary

字数 62 个   代码 83 行   阅读时间 1 分钟   访问量

Some auxiliary classes

🟢_AuxiliaryButton

class protected | Widget

def __init__(
    self,
    master: Canvas,
    position: tuple[int, int],
    size: tuple[int, int] | None = None,
    *,
    text: str = '',
    family: str | None = None,
    fontsize: int | None = None,
    weight: typing.Literal['normal', 'bold'] = 'normal',
    slant: typing.Literal['roman', 'italic'] = 'roman',
    underline: bool = False,
    overstrike: bool = False,
    justify: typing.Literal['left', 'center', 'right'] = 'left',
    anchor: typing.Literal['n', 'e', 'w', 's', 'nw', 'ne', 'sw', 'se', 'center'] = 'center',
    command: typing.Optional[typing.Callable] = None,
    image: tkintertools.toolbox.enhanced.PhotoImage | None = None,
    ignore: typing.Literal['left', 'right'] = 'left',
    name: str | None = None,
    through: bool = False,
    animation: bool = True,
) -> None: ...

🟢_AuxiliaryInputBox

class protected | Widget

def __init__(
    self,
    master: Canvas,
    position: tuple[int, int],
    size: tuple[int, int] | None = None,
    *,
    family: str | None = None,
    fontsize: int | None = None,
    weight: typing.Literal['normal', 'bold'] = 'normal',
    slant: typing.Literal['roman', 'italic'] = 'roman',
    underline: bool = False,
    overstrike: bool = False,
    align: typing.Literal['left', 'right', 'center'] = 'left',
    placeholder: str = '',
    show: str | None = None,
    limit: int = inf,
    image: tkintertools.toolbox.enhanced.PhotoImage | None = None,
    ignore: typing.Literal['left', 'right'] = 'left',
    name: str | None = None,
    through: bool = False,
    animation: bool = True,
) -> None: ...

🟡append

method public

1
2
3
4
def append(
    self,
    value: str,
) -> None: ...
Append text to Entry

🟡clear

method public

1
2
3
def clear(
    self,
) -> None: ...
Clear the text value of the Entry

🟡delete

method public

1
2
3
4
def delete(
    self,
    count: int,
) -> None: ...
Delete a specified amount of text

🟡get

method public

1
2
3
def get(
    self,
) -> str: ...
Get the value of the Entry

🟡set

method public

1
2
3
4
def set(
    self,
    value: str,
) -> None: ...
Set the text value of the Entry

🟢_AuxiliaryLabel

class protected | Widget

def __init__(
    self,
    master: Canvas,
    position: tuple[int, int],
    size: tuple[int, int] | None = None,
    *,
    text: str = '',
    family: str | None = None,
    fontsize: int | None = None,
    weight: typing.Literal['normal', 'bold'] = 'normal',
    slant: typing.Literal['roman', 'italic'] = 'roman',
    underline: bool = False,
    overstrike: bool = False,
    justify: typing.Literal['left', 'center', 'right'] = 'left',
    anchor: typing.Literal['n', 'e', 'w', 's', 'nw', 'ne', 'sw', 'se', 'center'] = 'center',
    image: tkintertools.toolbox.enhanced.PhotoImage | None = None,
    ignore: typing.Literal['left', 'right'] = 'left',
    name: str | None = None,
    through: bool = False,
    animation: bool = True,
) -> None: ...