|
From: <gre...@gm...> - 2006-11-25 02:38:59
|
On 11/24/06, Greg Lindstrom <gsl...@gm...> wrote: > I am writing my first pythoncard application; a system to help my wife track > her sewing/embroidery business. I will be using MySQL as my database and > would like to know how to instantiate the database connection when the > routine starts up and then pass the cursor from screen to screen. I tried > using __init__() but that raised an exception. Is there a method that I can > call to initialize the database connection (eventually, I will have a logon > dialog pop up, but one step at a time). The dbBrowser sample app might help (http://pythoncard.sourceforge.net/samples/dbBrowser.html) Just copy how it connects to MySQL. BTW, I've found the samples extremely helpful in PythonCard development. I'd reccomend looking at those frequently. The samples should have been installed when you installed PythonCard. Let the list know if you can't find them. -Greg Pinero |