Skip to main content

被破坏的终端图形库的绑定

项目描述

失事的绑定

被破坏的终端接口库的 Python 绑定。
PyPI - 下载 派皮 GitHub

安装

可以通过pip安装

pip install wrecked

用法

import wrecked

# Instantiates the environment. Turns off input echo.
top_rect = wrecked.init()

# create a rectangle to put text in.
new_rect = top_rect.new_rect(width=16, height=5)

# Add a string to the center of the rectangle
new_rect.set_string(2, 3, "Hello World!")

# Make that rectangle blue
new_rect.set_bg_color(wrecked.BLUE)

# And finally underline the text of the rectangle
new_rect.set_underline_flag()

# Draw the environment
top_rect.draw()

# take down the environment, and turn echo back on.
wrecked.kill()

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分布

wrecked-1.0.20.tar.gz (855.3 kB 查看哈希

已上传 source