oobuiltins
The oobuiltins module is accessible via the pylogo module.
Attributes
Functions
f actor(interp, the_actor) ...
ACTOR object
Adds the actor to the top of the actor list, so that commands will be passed to the actor first.
f actors(interp) ...
ACTORS
outputs all the actors; the first object in the list is the topmost actor that gets first chance at commands.
f removeactor(interp, the_actor=None) ...
REMOVEACTOR object
Remove the actor from the actor list. If the actor does not appear on the list, it will be an error. If the actor is None or [] then the most recent actor added with ACTOR will be removed.
f setprefix(prefix) ...
SETPREFIX string
command. Sets a prefix that will be used as the implicit beginning of filenames in OPENREAD, OPENWRITE, OPENAPPEND, OPENUPDATE, LOAD, and SAVE commands. Logo will put the appropriate separator character (slash for Unix, backslash for DOS/Windows, colon for MacOS) between the prefix and the filename entered by the user. The input to SETPREFIX must be a word, unless it is the empty list, to indicate that there should be no prefix.
@@ Note: LOAD and SAVE don't use this
f prefix() ...
PREFIX
outputs the current file prefix, or None if there is no prefix. See SETPREFIX.
@@ Note: None instead of [] like in ucblogo
f openread(filename) ...
OPENREAD filename
command. Opens the named file for reading. The read position is initially at the beginning of the file.
Use ACTOR OPENREAD filename to take all input from the given file.
f openwrite(filename) ...
OPENWRITE filename
command. Opens the named file for writing. If the file already existed, the old version is deleted and a new, empty file created.
Use ACTOR OPENWRITE filename to put all output to the given file.
f openappend(filename) ...
OPENAPPEND filename
command. Opens the named file for writing. If the file already exists, the write position is initially set to the end of the old file, so that newly written data will be appended to it.
Use ACTOR OPENAPPEND filename to put all output to the given file.
f allopen(interp) ...
ALLOPEN
outputs a list whose members are the file objects currently open. This list does not include the dribble file, if any.
f closeall(interp) ...
CLOSEALL
command. Closes all open files. Abbreviates FOREACH ALLOPEN [CLOSE ?]
f erasefile(filename) ...
ERASEFILE filename ERF filename
command. Erases (deletes, removes) the named file, which should not currently be open.
f filep(filename) ...
FILEP filename FILE? filename
predicate, outputs TRUE if a file of the specified name exists and can be read, FALSE otherwise.
Classes
C CaptureWriter(...) ...
This class contains 9 members.
See the source for more information.