Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a Python library that allows to build user interfaces without writing much code?

I am writing editing front ends in Python since several years now, and I am fed up with micromanaging every UI detail of a window or dialog every single time.

Is there a technology that allows me to, say, specify the relations between a GTK+ Glade-designed interface and the tables and records of an SQLite database to do all the middle man work? It should spare me the work of manually writing event handlers, input evaluators and view updates.

The technologies in question are just examples, but I want to stick with Python as far as possible.

like image 710
paniq Avatar asked Mar 22 '09 22:03

paniq


2 Answers

Besides the ones already mentioned I can add:

  • Kiwi
  • uxpython
  • pygtk
  • treethon

I've never used any of them so have no recommendations but, for what it's worth, I have used at least 2 complex programs built directly on pygtk that worked in both Windows and Linux.

I think Kiwi is the only one of these with baked in support for db (through interface with SQLAlchemy, SQLObject, or Storm) but I would be surprised if you couldn't use one of those ORM's inside any of the other frameworks.

like image 178
Van Gale Avatar answered Oct 19 '22 03:10

Van Gale


PyQt and its models can automate some of these tasks for you (to some amount off course, e.g. filling widgets with data from a database and handling most of the widgets behaviour, buffering etc.).

If you want a more object-oriented approach to handling SQL you could look into an ORM-oriented solution (for example SQLAlchemy).

like image 33
ChristopheD Avatar answered Oct 19 '22 03:10

ChristopheD