Hello, wxPythoners!
I've been 'toying' with wxPython (including PythonCard, wxGlade, XRCed, etc.) for several months, and now I'd like to develop the application that sparked my interest in all this. But first I thought I'd ask for recommendations from this group.
The application I have in mind will involve a database of business records. Each record has six fields. The first five fields are single line text (user entered), single line text (select from list) or boolen. The sixth field is a multiline text description (can be several paragraphs). My goal is to display the first five fields for all the records in a grid on the left side of the window (there will be no more than 300 records). I'd like the sixth field for the selected record to be displayed in a multiline textEdit box on the right side of the window.
I'm looking for recommendations on the following:
- backend database - do I need something complicated like MySQL, or can I get away with a text file? Do I need to save my data using Python's 'pickle' function, or can I just save the data to a text file (and perhaps some configuration information to a separate text file)?
- I'd like to have a splitter so I can change the ratio of grid to textEdit areas. Of the five 'grid' fields, three are relatively fixed width, while the other two should take up any remaining space. How can I tell those two columns to expand to fill available space?
- I want to be able to sort and (eventually) filter the grid columns. I know sorting is supported by wxGrid. What about filtering? Are there any good examples of this?
- And finally, (a sacrilegious question), is the wxGrid function mature enough to deal with my needs, or should I be looking at another toolkit such as GTK, etc.?
If you're interested, the way I deal with this database right now is as follows: I have an Excel spreadsheet with the first five fields in columns. I use Excel's autofilter function to provide for sorting and filtering. The sixth column of the sheet contains a URL to a local text file (one for each record). When I click on that link, it opens the text file, where I can type description notes. It's kludgey, but it works. I dream of the day when I can have this functionality in one wxPython application!
Any help will be sincerely appreciated and I'll keep the list up-to-date on my progress!
-- Clint
-- clint@robotic.com