Go to the latest version of this document.

# ``twisted`.`conch`.`insults`.`window`.`Button``

class documentation

`class Button(Widget): (source)`

Constructor: `Button(label, onPress)`

View In Hierarchy

Undocumented

Method | `__init__` | Undocumented
Method | `characterReceived` | Undocumented
Method | `render` | Undocumented
Method | `sizeHint` | Undocumented
Instance Variable | `label` | Undocumented
Instance Variable | `onPress` | Undocumented

Inherited from `Widget`:

Method | `backspaceReceived` | Undocumented
Method | `draw` | Undocumented
Method | `filthy` | Undocumented
Method | `focusLost` | Undocumented
Method | `focusReceived` | Called when focus is being given to this widget.
Method | `functionKeyReceived` | Undocumented
Method | `keystrokeReceived` | Undocumented
Method | `redraw` | Undocumented
Method | `repaint` | Undocumented
Method | `tabReceived` | Undocumented
Class Variable | `parent` | Undocumented
Instance Variable | `dirty` | Undocumented
Instance Variable | `focused` | Undocumented
Instance Variable | `height` | Undocumented
Instance Variable | `width` | Undocumented

def __init__(self, label, onPress): (source)

Undocumented

def characterReceived(self, keyID, modifier): (source)
overrides `twisted.conch.insults.window.Widget.characterReceived`

Undocumented

def render(self, width, height, terminal): (source)
overrides `twisted.conch.insults.window.Widget.render`

Undocumented

def sizeHint(self): (source)
overrides `twisted.conch.insults.window.Widget.sizeHint`

Undocumented

label = (source)

Undocumented

onPress = (source)

Undocumented