12.1.10.8.2. GUI icons as imagesΒΆ

In this example, all icons are loaded in the UI file as relative path to the icons in this or the icons subfolder.

from itom import ui



def closeGui():
    gui.hide()


gui = ui("gui_icons_images.ui", type=ui.TYPEWINDOW)
gui.actionClose.connect("triggered()", closeGui)
gui.show()
../../../_images/demoGUIIconsImages_1.png

Total running time of the script: ( 0 minutes 0.082 seconds)