BestSteve's Blog

使用Python在命令列模式下畫視窗

urwid這個library可以在console user interface內畫視窗,透過繼承內部已經定義好的class,再透過一層一層container的包裝,就可以達到自動縮放大小、偵測按鍵等等功能。

這個Library支援Python2/3,安裝方式為

pip install urwid [--user]
comments powered by Disqus