GUI wxPython and SQL database
Sebastian Żurek
sebzur at gmail.com
Tue Nov 6 09:19:10 PST 2007
Laurent François wrote:
> Hello
>
> I'm trying to code a GUI to interface with a SQL database like postgresql
> And I'm looking for some tutorial or resources.
> Specialy I'm looking for good practice for coding how to fetch data from
> widgets and update database.
> Psycopg2 is OK for me (well a little...). My problem is the code that
> "connect" wxPython to psycopg2
>
> Thanks for your help
Hi!
I dont wont to start a new thread, so I'm just connecting to Laurent
question...
I've just found a psycopg2 very interesting (thanks to the DB-API2.0), but
I'm not sure if I understend cursors clearly.
The question is: supposing I have some frames (or threads) in application
that will get and put data from db: shall I create as many cursor as many
frames/threads I have and provide each frame/thread a distinct cursor to
communicate with db? That looks for me like a a very nice soulution...
Or maybe I shall create a thread to handle a connection and let the frames
communicate with the thread by queues?
Would You please be so kind with providing me some clues?
Thanks in advice.
--
Sebastian Żurek
http://www.p2o.pl
More information about the wxpython-users
mailing list