TermTk.TTkCore.TTkTerm.inputkey

TTkKeyEvent

class TTkKeyEvent(type: int, key: str, code: str, mod: int)[source]

Keyboard Events

Demo

test.input.py

Parameters
  • type (KeyType) – The key input type recorded

  • key (str) – the key

  • code (str) – The terminal code used to represent this input

  • mod (KeyModifier) – The modifier used by the SpecialKey type

type: KeyType

The key input KeyType recorded

key: str

the input key

code: str

The terminal code used to represent this input

mod: KeyModifier

The KeyModifier used by the SpecialKey type