Skip to content

textual.events.Paste class

def __init__(self, text):

Bases: Event

Event containing text that was pasted into the Textual application. This event will only appear when running in a terminal emulator that supports bracketed paste mode. Textual will enable bracketed pastes when an app starts, and disable it when the app shuts down.

  • Bubbles
  • Verbose
Parameters
Parameter Default Description
text
str
required

The text that has been pasted.

text instance-attribute

text = text

The text that was pasted.