ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pythoncard
pythoncard
Re: [Pythoncard-users] Beginning Questions
by gregpinero other posts by this author
Nov 24 2006 6:39PM messages near this date
[Pythoncard-users] Beginning Questions | [Pythoncard-users] on_initialize not being called for first child window
On 11/24/06, Greg Lindstrom <gslindstrom@[...].com>  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

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Pythoncard-users mailing list
Pythoncard-users@[...].net
https://lists.sourceforge.net/lists/listinfo/pythoncard-users
Thread:
Greg Lindstrom
gregpinero

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved