Search the web
Sign In
New User? Sign Up
sqlite
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Anyone who is a Linux user and a Python programmer in this group?   Message List  
Reply | Forward Message #8 of 8 | Next >
Re: Anyone who is a Linux user and a Python programmer in this group?

--- In sqlite@yahoogroups.com, "Dan Presley" <dpresley@...> wrote:
>
> I'm currently in the planning phase of a dedicated DBMS project to br written
in Python with both the pySQLite and wxPython libraries. Because I'm an old
RPGer (AD&D 1st and 2nd ed's) and a Linux user, I find there are no truly cross
platform character generation programs. All of the ones I've found are for
'Windoze'. I'm looking for pythonic examples of code using wxPython to write and
retrieve records from a SQLite database. I doing this project in Python, and
using an SQLite database for maximum portability between OSes. Any help would be
much appreciated. Thanks.
>
As far as I can remember, the Python API for SQLite is a pure Python library;
wxPython provides you just with the ability to construct user interfaces.

I've used both Python and the wxPython library to create a home-grown photo
database and search facility. I didn't need SQLite in the end, as my database is
currently small enough to fit in memory as Python data structures (instantiated
by reading XML files containing my photo data). It may be worth checking out
this option if your database is relatively small.

However, in retrospect I would throw the whole lot away and be tempted to use
Mozilla technology (i.e. XULRunner, XUL and Javascript) to write the front end.
There's a simple Mozilla-provided Javascript API to read and write to a SQLite
database. I'm now converting a Micro$oft Access database I wrote some time ago
into this technology, and apart from the lack of modules in Javascript (I'm
having to define everything as an object in order to organise the program
variable namespaces), it's been a fairly painless affair. Mozilla technology is
cross-platform; if Firefox runs on an OS, then so does the Mozilla technology.

Of course, if you need to stay with Python, then this post is of no help at all
:-) A good reason to stay with Python is that it's such a wonderful language
(IMHO).

Cheers,
Trev




Fri May 15, 2009 12:03 pm

kingfam...
Offline Offline
Send Email Send Email

Forward
Message #8 of 8 | Next >
Expand Messages Author Sort by Date

I'm currently in the planning phase of a dedicated DBMS project to br written in Python with both the pySQLite and wxPython libraries. Because I'm an old RPGer...
Dan Presley
dpresley_50201
Offline Send Email
May 14, 2009
2:32 pm

... As far as I can remember, the Python API for SQLite is a pure Python library; wxPython provides you just with the ability to construct user interfaces. ...
kingfam@...
kingfam...
Offline Send Email
May 15, 2009
12:03 pm
< Prev Topic  |  Next Topic >
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help