跳转至

maliang.standard.features

字数 239 个   代码 168 行   阅读时间 3 分钟   访问量

源代码:maliang/standard/features.py

All standard Feature classes

🟢ButtonFeature

class public | Feature

1
2
3
4
5
6
7
def __init__(
    self,
    widget: virtual.Widget,
    *,
    command: collections.abc.Callable | None = None,
    args: tuple = (),
) -> None: ...
Feature of Button

  • widget: parent widget
  • command: callback function
  • args: arguments of callback function

🟡_b_1_motion

method protected

1
2
3
4
def _b_1_motion(
    self,
    event: tkinter.Event,
) -> bool: ...

🟡_b_2_motion

method protected

1
2
3
4
def _b_2_motion(
    self,
    event: tkinter.Event,
) -> bool: ...

🟡_b_3_motion

method protected

1
2
3
4
def _b_3_motion(
    self,
    event: tkinter.Event,
) -> bool: ...

🟡_button_1

method protected

1
2
3
4
def _button_1(
    self,
    _: tkinter.Event,
) -> bool: ...

🟡_button_release_1

method protected

1
2
3
4
def _button_release_1(
    self,
    event: tkinter.Event,
) -> bool: ...

🟡_motion

method protected

1
2
3
4
def _motion(
    self,
    event: tkinter.Event,
) -> bool: ...

🟢CheckBoxFeature

class public | ToggleButtonFeature

🟢Highlight

class public | ButtonFeature

🟡_button_1

method protected

1
2
3
4
def _button_1(
    self,
    _: tkinter.Event,
) -> bool: ...

🟡_button_release_1

method protected

1
2
3
4
def _button_release_1(
    self,
    event: tkinter.Event,
) -> bool: ...

🟡_motion

method protected

1
2
3
4
def _motion(
    self,
    event: tkinter.Event,
) -> bool: ...

🟢InputBoxFeature

class public | ButtonFeature

1
2
3
4
5
6
7
def __init__(
    self,
    widget: virtual.Widget,
    *,
    command: collections.abc.Callable[..., typing.Any] | None = None,
    args: tuple = (),
) -> None: ...
Feature of input box

🟡_b_1_motion

method protected

1
2
3
4
def _b_1_motion(
    self,
    event: tkinter.Event,
) -> bool: ...

🟡_button_1

method protected

1
2
3
4
def _button_1(
    self,
    event: tkinter.Event,
) -> bool: ...

🟡_button_release_1

method protected

1
2
3
4
def _button_release_1(
    self,
    _: tkinter.Event,
) -> bool: ...

🟡_copy

method protected

1
2
3
4
def _copy(
    self,
    _: tkinter.Event,
) -> bool: ...

🟡_cut

method protected

1
2
3
4
def _cut(
    self,
    event: tkinter.Event,
) -> bool: ...

🟡_key_press

method protected

1
2
3
4
def _key_press(
    self,
    event: tkinter.Event,
) -> bool: ...

🟡_motion

method protected

1
2
3
4
def _motion(
    self,
    event: tkinter.Event,
) -> bool: ...

🟡_paste

method protected

1
2
3
4
def _paste(
    self,
    _: tkinter.Event,
) -> bool: ...

🟡_select_all

method protected

1
2
3
4
def _select_all(
    self,
    _: tkinter.Event,
) -> bool: ...

🟢LabelFeature

class public | Feature

🟡_motion

method protected

1
2
3
4
def _motion(
    self,
    event: tkinter.Event,
) -> bool: ...

🟢ProgressBarFeature

class public | LabelFeature

🟢RadioBoxFeature

class public | ButtonFeature

🟡_button_1

method protected

1
2
3
4
def _button_1(
    self,
    _: tkinter.Event,
) -> bool: ...

🟡_button_release_1

method protected

1
2
3
4
def _button_release_1(
    self,
    event: tkinter.Event,
) -> bool: ...

🟢SegmentedButtonFeature

class public | Feature

🟡_motion

method protected

1
2
3
4
def _motion(
    self,
    event: tkinter.Event,
) -> bool: ...

🟢SliderFeature

class public | Feature

1
2
3
4
def __init__(
    self,
    widget: virtual.Widget,
) -> None: ...
Feature of Slider

🟡_b_1_motion

method protected

1
2
3
4
def _b_1_motion(
    self,
    event: tkinter.Event,
) -> bool: ...

🟡_button_1

method protected

1
2
3
4
def _button_1(
    self,
    event: tkinter.Event,
) -> bool: ...

🟡_button_release_1

method protected

1
2
3
4
def _button_release_1(
    self,
    _: tkinter.Event,
) -> bool: ...

🟡_motion

method protected

1
2
3
4
def _motion(
    self,
    event: tkinter.Event,
) -> bool: ...

🟢SpinBoxFeature

class public | Feature

1
2
3
4
5
6
def __init__(
    self,
    widget: virtual.Widget,
    *,
    command: collections.abc.Callable[[bool], typing.Any] | None = None,
) -> None: ...
Feature of SpinBox

  • widget: parent widget
  • command: callback function

🟡_mouse_wheel

method protected

1
2
3
4
def _mouse_wheel(
    self,
    event: tkinter.Event,
) -> bool: ...

🟢SwitchFeature

class public | ButtonFeature

🟡_button_1

method protected

1
2
3
4
def _button_1(
    self,
    _: tkinter.Event,
) -> bool: ...

🟡_button_release_1

method protected

1
2
3
4
def _button_release_1(
    self,
    event: tkinter.Event,
) -> bool: ...

🟡_motion

method protected

1
2
3
4
def _motion(
    self,
    event: tkinter.Event,
) -> bool: ...

🟢ToggleButtonFeature

class public | ButtonFeature

🟡_button_1

method protected

1
2
3
4
def _button_1(
    self,
    _: tkinter.Event,
) -> bool: ...

🟡_button_release_1

method protected

1
2
3
4
def _button_release_1(
    self,
    event: tkinter.Event,
) -> bool: ...

🟡_motion

method protected

1
2
3
4
def _motion(
    self,
    event: tkinter.Event,
) -> bool: ...

🟢Underline

class public | ButtonFeature

🟡_button_1

method protected

1
2
3
4
def _button_1(
    self,
    _: tkinter.Event,
) -> bool: ...

🟡_button_release_1

method protected

1
2
3
4
def _button_release_1(
    self,
    event: tkinter.Event,
) -> bool: ...

🟡_motion

method protected

1
2
3
4
def _motion(
    self,
    event: tkinter.Event,
) -> bool: ...