Skip to content

TenLun/Console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Console

给控制台窗口增添美色的库


How to use?

example.py

#py3
import Consoles as c

window = c.Console()
text = c.Label(window, fill=rgb(3,3,255,1)) #添加Label
line = c.HrefLine(a)
line.pack('center') #居中
window.EventLoop()

以上是一小段示例

Label() 是其中的一个控件,用于创建一个Label对象.

rgb() 函数可返回对应色值的ANSI转义序列

利用 pack() 方法将其添加到屏幕上

其实这东东我还没弄好什么时候来个文档...


TODO List

  • 按钮事件绑定
  • 鼠标/键盘窗口交互
  • 在线文档

About

应该可能是给控制台窗口用的

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages