Previous|Next|Index
A Guide to Applet Programming
The first thing to know is how to include an applet in an HTML page.
We use a new experimental HTML tag(*).
<APP CLASS=modname.classname
SRC=url
ARG1=value1
ARG2=value2
...>
Attributes:
- CLASS specifies the module and class names; if they are the same,
the module name may be omitted.
- SRC specifies the URL of a directory from which the module is to
be loaded (if it isn't already loaded).
- all other attributes are converted to numbers or strings and
passed to the applet constructor as keyword arguments. HTML attribute
names are case-insensitive; they are passed to Python in lowercase.
(*) Note: the <APP> tag is actually illegal SGML because of its
arbitrary attribute values. Work is underway to design a conformant
interface.
Previous|Next|Index