Gui2Exe - iconresources

Andrea,

I am just converting my setup.py to use Gui2Exe - goes very well so far.

One question I have regarding iconresources.

I had:
"icon_resources" : [(1, r"images/twcb.ico")],

I don't see how I can assign the appropriate icon to the appropriate target (I have three).

The Gui2Exe icon resource looks like:
icon_resources = [(1, 'C:\\Dev\\twcb\\Program\\images\\twcb.ico'), (2, 'C:\\Dev\\twcb\\Program\\images\\vinoXMLsimple.ico')]

Do I overlook something?

Best regards
Werner

Hi Werner,

Andrea,

I am just converting my setup.py to use Gui2Exe - goes very well so far.

One question I have regarding iconresources.

I had:
"icon_resources" : [(1, r"images/twcb.ico")],

I don't see how I can assign the appropriate icon to the appropriate target
(I have three).

The Gui2Exe icon resource looks like:
icon_resources = [(1, 'C:\\Dev\\twcb\\Program\\images\\twcb.ico'), (2,
'C:\\Dev\\twcb\\Program\\images\\vinoXMLsimple.ico')]

Do I overlook something?

Uhm, you mean that you have 3 target executables to build? I see what
you mean. The multiple executable support in GUI2Exe doesn't allow to
assign a particular icon resource to a specific executable,
unfortunately... but anyway, what happens if you add all your icons in
icon_resources and then build your executables? Do they work?

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

···

On Tue, Nov 11, 2008 at 12:00 PM, Werner F. Bruhin wrote:

Andrea Gavana wrote:

Hi Werner,

Andrea,

I am just converting my setup.py to use Gui2Exe - goes very well so far.

One question I have regarding iconresources.

I had:
"icon_resources" : [(1, r"images/twcb.ico")],

I don't see how I can assign the appropriate icon to the appropriate target
(I have three).

The Gui2Exe icon resource looks like:
icon_resources = [(1, 'C:\\Dev\\twcb\\Program\\images\\twcb.ico'), (2,
'C:\\Dev\\twcb\\Program\\images\\vinoXMLsimple.ico')]

Do I overlook something?
    
Uhm, you mean that you have 3 target executables to build? I see what
you mean. The multiple executable support in GUI2Exe doesn't allow to
assign a particular icon resource to a specific executable,
unfortunately... but anyway, what happens if you add all your icons in
icon_resources and then build your executables? Do they work?
  

They compile but all of them use the second of the two icons defined in the icon_resources. Will check it later today if they run (need to adjust my InnoSetup script a little).

Werner

···

On Tue, Nov 11, 2008 at 12:00 PM, Werner F. Bruhin wrote: