一个最小的,只显示文本的,只显示终端的运行程序。
prysenter的Python项目详细描述
普赖森特是一个绝对最小的,文本,终端只有演示运行。 它显示一系列字符串,以终端为中心。
安装
下载并运行presenter.py以获取它的外观示例。
python模块colorama是幻灯片彩色输出的可选依赖项。
颜色映射
- f_color映射到colorama.fore.code常量。
- b_color映射到colorama.back.code常量。
- s_color映射到colorama.style.code常量。
下面的用法部分提供了一个代码示例。
用法
在终端上拖动字体大小,运行演示文稿。
新演示文稿
from prysenter import Prysentation slides = ['Intro to Prysenter', 'Prysenter presents', 'Simple', 'Minimal', 'Quick', 'Thank You.',] Prysentation(slides=slides).start()
颜色示例
from prysenter import Prysentation slides = ["{f_red}Red Slide", "{f_green}Slide", "{b_white}{f_yellow}{s_bright}What is this, I don't even.{s_reset_all}"] Prysentation(slides=slides).start()
超时示例
在演示文稿超时后,您可以使所有幻灯片提前:
from prysenter import Prysentation, pechakucha slides = ["Pecha", "Kucha", "Who would ever need more", "Than 20 Seconds?"] Prysentation(slides=slides, timeout=pechakucha.timeout).start()