Skip to content

hkb_editor.gui.dialogs.new_tuple_dialog

new_tuple_dialog

Bases: DpgItem

A small modal form for entering one row of a typed table.

Renders one input widget per column and reports the assembled tuple to callback when confirmed.

Parameters:

Name Type Description Default
columns dict

Maps column name to the type of its value.

required
callback callable

Called as callback(tag, values, user_data) on confirm.

required
choices dict

Maps column index to a list of choices; items may be (label, value) tuples.

None
title str

Window title bar label.

'New Item'
tag int or str

Explicit tag; auto-generated if None.

None
user_data any

Passed through to callback.

None
Ko-fi donations