Adds an image component to a dialog.
If a filename is provided, the image is loaded from the specified file.
planetcnc.dlg_add_image(handle, filename=None)
#! /usr/bin/env python import planetcnc dlg_handle = planetcnc.dlg_new("Examples") # Add an image component to a dialog planetcnc.dlg_add_image(dlg_handle, "Samples/GuessNumber.png") planetcnc.dlg_show(dlg_handle)