Python 终端/文本 UI (TUI) 库

标签 python user-interface console console-application tui

<分区>

如何制作控制台 GUI(更恰本地称为 TUI)?

重要的是要注意,我将更改某些地方的文本,这就是为什么我不能让它直接打印到屏幕上的原因。使用其他模块会很好,但我宁愿不必。这是它的外观的 ASCII 模型:

           ********************************************
           *                                          *
           *                                          *         
           *                                          * 
           *      There are 8 seconds left.           *
           *                                          *         
           *                                          * 
           *                                          *
           *      The script has run 8 times          *         
           *                                          * 
           *                                          *
           *                                          *         
           *                                          * 
           ********************************************

我需要能够动态更新计时器和迭代次数。

我知道如何使用回车符覆盖最后打印的行。但我不能同时使用它。

最佳答案

有一些图书馆:

关于Python 终端/文本 UI (TUI) 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22394090/

相关文章:

python - 合并包含公共(public)元素的子列表

user-interface - 在 MATLAB 中,如何在拖动 slider 时执行回调?

grails - Grails 3:控制台插件不在生产模式下出现

python - 如何使用 Tkinter 在屏幕的每个顶角分组两组按钮?

c# - 在 WPF 中创建可重用的界面元素

php - 使用控制台安装 Zend Framework 2

c# - 卡巴斯基将我的 ConsoleApplication 检测为木马

python - 如何在Python中将pandas数据框转换为矩阵格式?

python - 如何添加两组?

python - 为什么在 Windows 终端中用 Python 进行彩色打印不起作用?