Question : Python: Gadfly (or other) + python GUI example

I am looking for an example, either in a book, or free online, that gives the code for a simple implementation of a python GUI interface that uses a python database.  Basically, a gui that is sort of like excel, where you have a X rows of objects, and you can add columns which are an attribute, then are able to sort by columm - and do all this via button clicking in the GUI.  

(I would like to create a simple computer file management structure where i can add additional descriptions to files and sort by my own labels.)  

Answer : Python: Gadfly (or other) + python GUI example

Take a look at the wxGrid object in wxPython.

www.wxpython.org

There's a good book available for wxPython, but you can also install the libraries and then run the wxPython Demo program, which shows samples of nearly every object available (oodles of them), including editable sourcecode right in the demo program, so you can see exactly what they've done and how you can do it yourself.

The grid object captures all the "normal" events (various clicks and such) so even though it doesn't directly have a built-in sort option, it wouldn't take much to code one from a column-header click.

wxPython is pretty easy to work with, too -- especially using xrced as your resource editor. And the online help (http://www.wxpython.org/onlinedocs.php) gives exhaustive interlinked detail about the complete API, so it's relatively easy to figure out how to get at whatever it is you want to get at.

Hope this helps.
Random Solutions  
 
programming4us programming4us