noresource sample
Samples
addresses
chat
companies
conversions
custdb
dbBrowser
dialogs
doodle
flatfileDatabase
gadflyDatabase
hopalong
jabberChat
life
minimal
minimalStandalone
noresource
pictureViewer
proof
pysshed
radioclient
redemo
rpn
samples
saveClipboardBitmap
searchexplorer
simpleBrowser
simpleIEBrowser
slideshow
sounds
SourceForgeTracker
spirograph
stockprice
textIndexer
textRouter
tictactoe
turtle
webgrabber
webserver
widgets
worldclock

readme.txt

noresource is a short example of a PythonCard application that has no resource file.
Normally apps should use a resource file to simplify editing layout and localization,
but there might be times when you don't want an external resource file, so this shows
how it can be done.

There is still a resource dictionary, but it is defined as part of the source file.
The one used in this sample was copied from the minimal sample, so the names haven't
been changed. I did delete the menubar to shorten the example code and removed the
menu handler from the background class.

To make it a little more interesting, I also delayed creating 'field1' until the
openBackground handler in order to show an example of creating components at runtime.
Note that the name of the component must match in the assignment
(self.components['field1']) and the dictionary ('name':'field1').


SourceForge Logo