Home | Trees | Indices | Help |
|
---|
|
object --+ | view.View --+ | KeyValueView
An abstract superclass for views that display and permit editing of key-value type information. It will be used by the alias and environment views.
Subclasses need to provide self.content_dict with a mutable dictionary that this class will modify.
The view location and current key are tracked by self.curkey and self.dispkey. The position of the cursor on the line is tracked by self.cursor_pos, a 3-tuple: first element is 0 if the cursor is in the key or 1 if it's in the value; the second is the cursor position in the string; the third is the first character from the string to draw.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
boolean |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Default implementation does not draw a cursor.
|
This default implementation of draw() is purely illustrative, and only draws the header. Subclasses will certainly override it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Dec 14 22:46:37 2010 | http://epydoc.sourceforge.net |