Solved

Python: Gadfly (or other) + python GUI example

Posted on 2009-05-12
2
1,197 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

"The time has come," the Walrus said, "To talk of many things: Of sets--and lists--and dictionaries-- Of variable kinks-- And why you see it changing not-- And why so strange are strings." This part describes how variables and references (see …
A set of related code is known to be a Module, it helps us to organize our code logically which is much easier for us to understand and use it. Module is an object with arbitrarily named attributes which can be used in binding and referencing. …
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
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…

786 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