hkb_editor.gui.dialogs.create_object_dialog
¶
create_object_dialog
¶
Bases: DpgItem
Create a new record of a chosen type and fill in its attributes.
The record is created as soon as a type is picked so the attribute widgets can edit it directly; it is only added to the tagfile on confirm.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
tagfile
|
Tagfile
|
Tagfile the object will be added to. |
required |
alias_manager
|
AliasManager
|
Passed on to the embedded attributes widget. |
required |
callback
|
callable
|
Called as |
required |
allowed_types
|
iterable of str
|
Restrict the type choice; names or |
None
|
include_derived_types
|
bool
|
Also offer subtypes of |
False
|
selected_type_id
|
str
|
Pre-select this type. |
None
|
id_required
|
bool
|
Refuse to create the object without an explicit object ID. |
False
|
title
|
str
|
Window title bar label. |
'Create Hkb Object'
|
tag
|
int or str
|
Explicit tag; auto-generated if None. |
None
|
user_data
|
any
|
Passed through to |
None
|