Package peppy :: Module stcinterface :: Class STCProxy
[frames] | no frames]

Class STCProxy

object --+
         |
        STCProxy

Proxy object to defer requests to a real STC.

Used to wrap a real STC but supply some custom methods. This is used in the case where the major mode is using a real stc for its data storage, but not using the stc for display. Because the major mode depends on an stc interface to manage the user interface (enabling/disabling buttons, menu items, etc.), a mode that doesn't use the stc for display still has to present an stc interface for this purpose. So, wrapping the buffer's stc in this object and reassigning methods as appropriate for the display is the way to go.

Instance Methods
 
__init__(self, stc)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
__getattr__(self, name)

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties

Inherited from object: __class__

Method Details

__init__(self, stc)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)