GUI vs TUI in Python

I am interested in the rapid development of Python applications. Since this is mainly for prototyping, I’m looking for a way to create “rough” user interfaces. By this I mean that they should not look professional, they just have to be flexible enough to look the way I want. I originally intended to do this by creating a graphical interface (using something like GTK), but now I'm starting to think about TUI (using ncurses).

What is the difference between creating a GUI and TUI? Can I quickly create an interface in pyGTK or Python curses module?

+3
source share
2 answers

pyGTK - , . . TUI, - , urwid.

0

, -, , : http://flask.pocoo.org/. (, , ..). HTML , , , CSS , - .

, "Hello world" (, ) 80 pyGTK: http://www.pygtk.org/pygtk2tutorial/examples/helloworld.py.

from flask import Flask
app = Flask(__name__)

@app.route("/")
def hello():
    return "Hello World!"

if __name__ == "__main__":
    app.run()

- , .

0

Source: https://habr.com/ru/post/1764225/


All Articles