class documentation

class TopWindow(ContainerWidget): (source)

View In Hierarchy

A top-level container object which provides focus wrap-around and paint scheduling.
Method __init__ Undocumented
Method change​Focus Undocumented
Method keystroke​Received Undocumented
Method repaint Undocumented
Class Variable focused Undocumented
Instance Variable painter A no-argument callable which will be invoked when this widget needs to be redrawn.
Instance Variable scheduler A one-argument callable which will be invoked with a no-argument callable and should arrange for it to invoked at some point in the near future. The no-argument callable will cause this widget and all its children to be redrawn. It is typically beneficial for the no-argument callable to be invoked at the end of handling for whatever event is currently active; for example, it might make sense to call it at the end of twisted.conch.insults.insults.ITerminalProtocol.keystrokeReceived. Note, however, that since calls to this may also be made in response to no apparent event, arrangements should be made for the function to be called even if an event handler such as keystrokeReceived is not on the call stack (eg, using reactor.callLater with a short timeout).
Method _paint Undocumented
Instance Variable _paint​Call Undocumented

Inherited from ContainerWidget:

Method add​Child Undocumented
Method filthy Undocumented
Method focus​Received Called when focus is being given to this widget.
Method rem​Child Undocumented
Method render Undocumented
Instance Variable children Undocumented
Instance Variable focused​Child The contained widget which currently has focus, or None.

Inherited from Widget (via ContainerWidget):

Method backspace​Received Undocumented
Method character​Received Undocumented
Method draw Undocumented
Method focus​Lost Undocumented
Method function​Key​Received Undocumented
Method redraw Undocumented
Method size​Hint Undocumented
Method tab​Received Undocumented
Class Variable parent Undocumented
Instance Variable dirty Undocumented
Instance Variable height Undocumented
Instance Variable width Undocumented
def __init__(self, painter, scheduler): (source)
def keystrokeReceived(self, keyID, modifier): (source)
def repaint(self): (source)
painter = (source)
A no-argument callable which will be invoked when this widget needs to be redrawn.
scheduler = (source)
A one-argument callable which will be invoked with a no-argument callable and should arrange for it to invoked at some point in the near future. The no-argument callable will cause this widget and all its children to be redrawn. It is typically beneficial for the no-argument callable to be invoked at the end of handling for whatever event is currently active; for example, it might make sense to call it at the end of twisted.conch.insults.insults.ITerminalProtocol.keystrokeReceived. Note, however, that since calls to this may also be made in response to no apparent event, arrangements should be made for the function to be called even if an event handler such as keystrokeReceived is not on the call stack (eg, using reactor.callLater with a short timeout).
def _paint(self): (source)

Undocumented

_paintCall = (source)

Undocumented