Part of twisted.manhole.ui.spelunk_gnome View Source View In Hierarchy
Known subclasses: twisted.manhole.ui.spelunk_gnome.ClassVisage, twisted.manhole.ui.spelunk_gnome.ImmutableVisage, twisted.manhole.ui.spelunk_gnome.InstanceVisage, twisted.manhole.ui.spelunk_gnome.MappingVisage, twisted.manhole.ui.spelunk_gnome.SequenceVisage
A "face" of an object under exploration.
A Visage is a representation of an object presented to the user. The "face" in "interface".
'propertyLabels' and 'groupLabels' are lists of (key, name) 2-ples, with 'key' being the string the property or group is denoted by in the code, and 'name' being the pretty human-readable string you want me to show on the Visage. These attributes are accumulated from base classes as well.I am a gnome.CanvasItem (more specifically, CanvasGroup).
|Method||__init__||Place a new Visage of an explorer in a canvas group.|
|Method||fill_properties||Fill in values for my properites.|
|Method||fill_property||Set a value for a particular property.|
|Method||fill_attributeGroup||Provide members of an attribute group.|
|Method||_setup_table||Called by __init__ to set up my main table.|
Place a new Visage of an explorer in a canvas group.I also need a 'canvas' reference is for certain coordinate conversions, and pygnome doesn't give access to my GtkObject's .canvas attribute. :(
Called by __init__ to set up my main table.You can easily override me instead of clobbering __init__.
Fill in values for my properites.Takes a list of (name, value) pairs. 'name' should be one of the keys in my propertyLabels, and 'value' either an Explorer or a string.
Set a value for a particular property.'property' should be one of the keys in my propertyLabels.
Provide members of an attribute group.'group' should be one of the keys in my groupLabels, and 'attributes' a list of (name, value) pairs, with each value as either an Explorer or string.