Eto form - change icon

Hi,

Is it possible to change the icon in an eto form to match my plugin ?

thanks,
Keith

Hi @Keith1634,

try this:

dlg = Dialog[bool](Title = "Some Dialog", Padding = Padding(10))
dlg.Icon = Icon("Heart.ico")

Where “Heart.ico” must be a path if it is not in the same folder as the python script calling the dialog. If you´re writing in a language which supports recources, you can use:

dlg.Icon = Icon.FromRecource("Heart.ico")

c.

1 Like

wow thanks Clement.:beers: