Python ncurses, CDK, urwid difference

前端 未结 2 1410
臣服心动
臣服心动 2020-12-24 08:09

What\'s the difference between these 3? As far as I understand it they both provide binding to curses which is the C library for terminal text-based UI.

I currently

2条回答
  •  执念已碎
    2020-12-24 08:35

    I haven't used any of the libraries, but I'm assuming that you're referring to:

    • Python's built-in curses module
    • pycdk, a Python interface to CDK
    • The urwid console UI library

    They're just different libraries with the same goal: provide an API for a console-based UI. From a previous question, it seems that curses requires more low-level boilerplate. One thing to note is that Python's curses module is only available under Unix; if you're on Windows, you may want to look at the Console module written by Fredrik Lundh.

    Both of the other choices seem promising as well, although urwid looks to be more organized as far as development goes, and is still being actively developed somewhat.

提交回复
热议问题