Solved

Python: Gadfly (or other) + python GUI example

Posted on 2009-05-12
2
1,209 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Ready to get started with anonymous questions?

It's easy! Check out this step-by-step guide for asking an anonymous question on Experts Exchange.

Question has a verified solution.

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

The really strange introduction Once upon a time there were individuals who intentionally put the grass seeds to the soil with anticipation of solving their nutrition problems. Or they maybe only played with seeds and noticed what happened... Som…
Flask is a microframework for Python based on Werkzeug and Jinja 2. This requires you to have a good understanding of Python 2.7. Lets install Flask! To install Flask you can use a python repository for libraries tool called pip. Download this f…
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 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 …
Suggested Courses

631 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