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

Connecting Signals

DaiC allows you to connect custom Python functions to certain UI signals.
This makes it possible to react to user actions in the interface.

Dissasm function list

DaiCCore.connect_dissasm_view(function)
  • function: a Python callback that receives a single string argument.

The string corresponds to the currently selected disassembly line, in this format:

0x00000000000011EF:	call		0x1dcb

Example

import DaiCCore

def on_selection_changed(line: str):
    print("Selected instruction:", line)

    DaiCCore.connect_dissasm_view(on_selection_changed)

Whenever the user changes the selection in the disassembly view, the function on_selection_changed will be called with the text of the selected line.

Notes & Limitations:

  • More signals may be exposed in future versions of DaiC (menus, editors, etc.).
  • Since Qt UI elements are involved, avoid creating or modifying widgets in these callbacks from non-main threads.