class TopWindow(ContainerWidget): (source)
Constructor: TopWindow(painter, scheduler)
A top-level container object which provides focus wrap-around and paint scheduling.
Method | __init__ |
Undocumented |
Method | change |
Undocumented |
Method | keystroke |
Undocumented |
Method | repaint |
Undocumented |
Instance 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... |
Method | _paint |
Undocumented |
Instance Variable | _paint |
Undocumented |
Inherited from ContainerWidget
:
Method | add |
Undocumented |
Method | filthy |
Undocumented |
Method | focus |
Called when focus is being given to this widget. |
Method | rem |
Undocumented |
Method | render |
Undocumented |
Instance Variable | children |
Undocumented |
Instance Variable | focused |
The contained widget which currently has focus, or None. |
Inherited from Widget
(via ContainerWidget
):
Method | backspace |
Undocumented |
Method | character |
Undocumented |
Method | draw |
Undocumented |
Method | focus |
Undocumented |
Method | function |
Undocumented |
Method | redraw |
Undocumented |
Method | size |
Undocumented |
Method | tab |
Undocumented |
Class Variable | parent |
Undocumented |
Instance Variable | dirty |
Undocumented |
Instance Variable | height |
Undocumented |
Instance Variable | width |
Undocumented |
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).