Pygcurse(发音为“pig curse”)是运行在Pygame框架之上的curses库模拟器。
项目描述
Pygcurse
http://inventwithpython.com/pygcurse
https://github.com/asweigart/pygcurse
Pygcurse(发音为“pig curse”)是运行在Pygame框架之上的curses库模拟器。它提供了一种简单的方式来创建文字冒险、Rougelikes和基于控制台的程序。
遗憾的是,Python标准库中包含的curses库在Windows上无法工作。来自effbot的优秀Console模块提供了类似curses的功能,但它只能在Windows上运行,而不能在Mac/Linux上运行。通过使用Pygame,Pygcurse能够在所有平台上运行。
Pygcurse相较于常规的基于文本的stdio程序具有以下优势
1) Color text and background.
2) The ability to move the cursor and print text anywhere in the console window.
3) The ability to make console apps that make use of the mouse.
4) The ability to have programs respond to individual key presses, instead of waiting for the user to type an entire string and press enter (as with input()/raw_input()).
5) Since the console window that Pygcurse uses is just a Pygame surface object, additional drawing and transformations can be applied to it. Multiple consoles can also be used in the same program.
Pygcurse需要安装Pygame。Pygame可以从http://pygame.org下载
Pygcurse是由Al Sweigart (al@inventwithpython.com)开发的
https://github.com/asweigart/pygcurse
github仓库包含几个示例程序。
项目详情
关闭
pygcurse-1.0.1.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 5460c7d6b7ecccf1d441211b92d41d40e612214851456c1f0411a107acdb3d7c |
|
MD5 | 0d77b6b4ad685941ed37d1156dff421a |
|
BLAKE2b-256 | cc51b16db20f3e57cffddf712c16165a8c6d3ba22bb5692db53064b4271c8168 |