Hi, Fenikso
Both an icon bitmap object and an a Taskbar icon object are needed.
See the attached demo.
You could reduce the necessary code to a single line with:
self.tbIcon.SetIcon( **norm.GetIcon()**, "I am an Icon" )
A separate, but unnamed bitmap object is still created.
Don't use a .PYW extension when you know the app isn't 100% working
because you won’t be able to see any Python traceback info in the
“DOS” shell window in case of syntax or run-time errors.
Ray
Test.MOD.py (2.72 KB)
Hi Ray,
Thanks for trying.
Actually, your modified code on my setup crashes the interpreter EVERY
time (no error message from Python) as soon as I right-click the icon
BUT if I use standard way to close the window, everything works fine.
Now I am even more puzzled.
The other issues you have pointed out are the result of minimizing the
code to example app, sorry about that.
···
--
Fenikso
On 17 srp, 16:41, Ray Pasco <pas...@verizon.net> wrote:
Hi, Fenikso
Both an icon bitmap object and an a Taskbar icon object are needed. See the attached demo.
You could reduce the necessary code to a single line with:
self.tbIcon.SetIcon(norm.GetIcon(), "I am an Icon" )
A separate, but unnamed bitmap object is still created.
Don't use a .PYW extension when you know the app isn't 100% working because you won't be able to see any Python traceback info in the "DOS" shell window in case of syntax or run-time errors.
Ray
Test.MOD.py
3KZobrazitStáhnout