wxTaskBarIcon does not vanish

Hi all,

I install a wxTaskBarIcon in the Windows-Systray via
     tbicon = wxTaskBarIcon()
     tbicon.SetIcon("app.ico", "app name")
            EVT_TASKBAR_LEFT_DCLICK(self.tbicon, self.OnTaskBarActivate)
     EVT_TASKBAR_RIGHT_UP(self.tbicon, self.OnTaskBarMenu)

but if the application exits, the TaskBarIcon does not. I have to move my mouse over the Systray-Icon on the Taskbar and then it vanishes.

Anybody knows a solution for this?

regards,

Thorsten

···

--
brainbot technologies AG boppstrasse . 64 . 55118 mainz . germany
fon +49 6131 211639-1 . fax +49 6131 211639-2
http://brainbot.com/ mailto:henni@brainbot.com

Thorsten Henninger wrote:

Hi all,

I install a wxTaskBarIcon in the Windows-Systray via
    tbicon = wxTaskBarIcon()
    tbicon.SetIcon("app.ico", "app name")
          EVT_TASKBAR_LEFT_DCLICK(self.tbicon, self.OnTaskBarActivate)
    EVT_TASKBAR_RIGHT_UP(self.tbicon, self.OnTaskBarMenu)

but if the application exits, the TaskBarIcon does not. I have to move my mouse over the Systray-Icon on the Taskbar and then it vanishes.

Anybody knows a solution for this?

regards,

Thorsten

I found it by myself, i had to add

del tbicon

when the application does exit ....

Thorsten

···

--
brainbot technologies AG boppstrasse . 64 . 55118 mainz . germany
fon +49 6131 211639-1 . fax +49 6131 211639-2
http://brainbot.com/ mailto:henni@brainbot.com