Solved

Python: Gadfly (or other) + python GUI example

Posted on 2009-05-12
2
1,186 Views
Last Modified: 2012-05-06
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.)  
0
Comment
Question by:figmit
  • 2
2 Comments
 
LVL 7

Accepted Solution

by:
BarryTice earned 500 total points
ID: 24399930
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.
0
 
LVL 7

Expert Comment

by:BarryTice
ID: 24651841
Thanks, figmit!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Plenty of writing has gone on the web trying to compare Python with other competitive programming languages and vice versa. However, not much has been put into a wholistic perspective. This article should help you decide whether to adopt Python as a…
This article will show the steps for installing Python on Ubuntu Operating System. I have created a virtual machine with Ubuntu Operating system 8.10 and this installing process also works with upgraded version of Ubuntu OS. For installing Py…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now