Skip to content

PinToggled

Base classes

Name Children Inherits
Message
textual.message
Base class for a message.

⋔ Inheritance diagram

graph TD
  4184314511["picker.PinToggled"]
  819319447["message.Message"]
  2751680898["builtins.object"]
  819319447 --> 4184314511
  2751680898 --> 819319447

🛈 DocStrings

Bases: Message

Pin an agent to the top of the picker, or unpin it (the app saves it).

Source code in src/acptui/ui/screens/picker.py
class PinToggled(Message):
    """Pin an agent to the top of the picker, or unpin it (the app saves it)."""

    def __init__(self, agent_id: str) -> None:
        super().__init__()
        self.agent_id = agent_id

:fa-brands-github: Show source on GitHub