Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Python: Gadfly (or other) + python GUI example

Posted on 2009-05-12
2
Medium Priority
?
1,215 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 2000 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Dictionaries contain key:value pairs. Which means a collection of tuples with an attribute name and an assigned value to it. The semicolon present in between each key and values and attribute with values are delimited with a comma.  In python we can…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
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

722 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