maliang.media¶
字数 11 个 阅读时间不到 1 分钟 访问量
Extension package of maliang to play media files
Provides:
- The ability to play videos with audio;
模块:
类:
-
VideoCanvas
–A canvas that is scalable and playable for videos
VideoCanvas ¶
VideoCanvas(
master: containers.Tk | containers.Toplevel | containers.Canvas | None = None,
*,
controls: bool = False,
loop: bool = False,
click_pause: bool = True,
expand: typing.Literal["", "x", "y", "xy"] = "xy",
auto_zoom: bool = False,
keep_ratio: typing.Literal["min", "max"] | None = None,
free_anchor: bool = False,
**kwargs
)
Bases: containers.Canvas
A canvas that is scalable and playable for videos
master
: parent widgetcontrols
: whether to enable the built-in UIloop
: whether the video loops automaticallyclick_pause
: whether to pause when clickedexpand
: the mode of expand,x
is horizontal, andy
is verticalauto_zoom
: whether or not to scale its itemskeep_ratio
: the mode of aspect ratio,min
follows the minimum value,max
follows the maximum valuefree_anchor
: whether the anchor point is free-floatingkwargs
: compatible with other parameters of classtkinter.Canvas
方法: