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
[Pythoncard-users] The Power of flatfileDatabase.py
by Dan Shafer other posts by this author
Jul 9 2002 7:39AM messages near this date
[Pythoncard-users] my pythoncard app: posterchild available for download | [Pythoncard-users] added redemo
Everyone else may already know this -- and I'll do a more detailed 
walkthrough at some point -- but in case you haven't taken the time to look 
at it, check out the power of flatfileDatabase.py (it's in the samples).

If you want to do a sort of typical HyperCard stack which has buttons, 
menus, and fields that store their contents automagically, where all the 
navigation stuff is available (next, previous, first, last) , here's what 
you have to do:

1. Copy the flatfileDatabase folder.
2. Paste it where you want your new app to live.
3. Rename the folder for your app (in this case, MyNewApp)
4. Rename flatfileDatabase.py to match your app name (MyNewApp.py)
5. edit the flatfileDatabase.ini file to point to your resource file and 
your data file
6. In the resourceEditor, create your app interface.
7. Connect buttons and menu items to the appropriate commands built into 
flatfileDatabase.py:

     save, close, exit, goPrev, goNext, goFirst, goLast, findRecord, 
findNextRecord, editUndo, editRedo, editCut, editCopy, editPaste, 
editSelectAll, editNewCard, and editDeleteCard

NOTE: You don't write code. You just tell your buttons and menu items to 
use these commands as appropriate.

That's it. Fini. Nothing else is required as long as you don't want to 
override any of the bulit-in behavior in flatfileDatabase.

I may be the only guy on this list who thinks this is hot stuff. But I sure do.

Dan Shafer, Chief Scribe and Tablet Keeper
PythonCard Open Source Project
http://pythoncard.sourceforge.net



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
_______________________________________________
Pythoncard-users mailing list
Pythoncard-users@[...].net
https://lists.sourceforge.net/lists/listinfo/pythoncard-users

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