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
------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-users-unsubscribe lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help lists.wxwidgets.org
|