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,xis horizontal, andyis verticalauto_zoom: whether or not to scale its itemskeep_ratio: the mode of aspect ratio,minfollows the minimum value,maxfollows the maximum valuefree_anchor: whether the anchor point is free-floatingkwargs: compatible with other parameters of classtkinter.Canvas
方法: