This repository has been archived by the owner on Sep 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PropertSheets interface API Documentation
- Loading branch information
Michel Pelletier
committed
Jun 12, 2000
1 parent
e33de4a
commit 3cd4d3f
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
""" | ||
PropertySheets | ||
""" | ||
|
||
class PropertySheets: | ||
""" | ||
A PropertySheet is an abstraction for organizing and working with | ||
a set of related properties. Conceptually it acts like a container | ||
for a set of related properties and metadata describing those | ||
properties. PropertySheet objects are accessed through a | ||
PropertySheets object that acts as a collection of PropertySheet | ||
instances. | ||
Objects that support property sheets (objects that support the | ||
PropertyManager interface or ZClass objects) have a | ||
'propertysheets' | ||
attribute (a PropertySheets instance) that is the collection of | ||
PropertySheet objects. The PropertySheets object exposes an | ||
interface much like a Python mapping, so that individual | ||
PropertySheet objects | ||
may be accessed via dictionary-style key indexing. | ||
""" | ||
|
||
def values(self): | ||
""" | ||
Return a sequence of all of the PropertySheet objects for | ||
in the collection. | ||
""" | ||
|
||
def items(self): | ||
""" | ||
Return a sequence containing an '(id, object)' tuple for | ||
each PropertySheet object in the collection. | ||
""" | ||
|
||
def get(self, name, default=None): | ||
""" | ||
Return the PropertySheet identified by 'name', or the value | ||
given in 'default' if the named PropertySheet is not found. | ||
""" |