maliang.standard.images¶
字数 9 个 阅读时间不到 1 分钟 访问量
源代码:maliang/standard/images.py
All standard Image classes
类:
-
StillImage–A simple still image
StillImage ¶
StillImage(
widget: Widget,
relative_position: tuple[int, int] = (0, 0),
size: tuple[int, int] | None = None,
*,
image: enhanced.PhotoImage | None = None,
name: str | None = None,
gradient_animation: bool = True,
**kwargs
)
A simple still image
方法:
Smoke ¶
Smoke(
widget: virtual.Widget,
relative_position: tuple[int, int] = (0, 0),
size: tuple[int, int] | None = None,
*,
color: str | None = "#00000066",
name: str | None = None,
animation: bool = True,
**kwargs
)
A special Image with only one color
widget: parent widgetrelative_position: position relative to its widgetssize: size of elementcolor: color of the image object of the elementname: name of elementanimation: whether use animation to change colorkwargs: extra parameters for CanvasItem
方法: