Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

User Interaction in Plugins

Plugins can interact with users in several ways:

Terminal-Based Interaction

You can use standard Python functions like print() and input():

name = input("What is your name? ")
print(f"Hello, {name}")

This works well in console-based environments.

Built-In UI Components

DaiC provides several ready-to-use dialog functions exposed through DaiCCore:

  • get_file() – Opens a file chooser dialog.
  • input_dialog(title=“”) – Shows a text input dialog.
  • print_dialog(text, title=“”) – Displays a message box.
  • print_markdown_dialog(text, title=“”) – Displays rich text with Markdown formatting.

These are Qt-based and provide a GUI interface without needing to write custom widgets.

Custom Qt UI (Advanced)

You may create your own UI using PySide6 (Qt for Python).