Sample programs.
A couple are Python versions of old Be sample programs, most are
fairly self evident.
- doodad
Best eye candy, has a few controls. It also uses the lay
module for column/row self-sizing layout.
- menu
Illustrates several kinds of menus.
- script
Don't miss this subdirectory if you're interested in the BeOS scripting
system.
- listnode
Give it a file name, it will print out the attributes - like the "listattr"
command, but also prints values.
- mailnode
I have used this to make BeMail-ish messages out of text files retrieved
via poplib.POP3. Needs a sample message, you have to edit this program
to restore it to working condition.
- dump_attr
Reads a file's attributes, saves them in a pickle string and writes them
to output, which you should redirect to a file. load_attr can
reverse this process and put those attributes on any file. You can
use the pickle module to get into that attribute list and modify it,
if you want.
- bstructs.py
This file is generated by sgrules.py. It makes Python classes for the
various struct tuples - the C++ modules expect and return tuples for
any struct type that's not a Bxxx class with its own module (and that
includes BPoint and BRect, since they have no module.) The
bestructs.py module is a hand written derivative of this that
extends the BRect class with Height and Width methods.