Skip to content

MK_api.xml_interfaceΒΆ

Runtime handle to a live XML dialog, used to query and drive its widgets. Obtained via xml_dialog_base_c.attach_interface; valid only while the dialog is open. Widgets are addressed by their key.

close_dialog( ok )
Closes the dialog. ok True accepts, False cancels.
start_timer( hz )
Starts a periodic timer at hz ticks per second; fires on_timeout().
stop_timer()
Stops the periodic timer.
redraw( key )
Requests a redraw of the widget key.
show( key, x )
Shows (x=True) or hides (x=False) the widget key.
enable( key, x )
Enables (x=True) or disables (x=False) the widget key.
set_bool( key, x )
Sets the value of the widget key.
set_int( key, x )
Sets the value of the widget key.
set_float( key, x )
Sets the value of the widget key.
set_string( key, x )
Sets the value of the widget key.
get_bool( key )
Returns the value of the widget key.
get_int( key )
Returns the value of the widget key.
get_float( key )
Returns the value of the widget key.
get_string( key )
Returns the value of the widget key.