[wxpython-mac] Transparent systray icon in the Mac OS X dock
Cody Precord
codyprecord at gmail.com
Fri Jun 27 21:20:21 PDT 2008
Hello,
On Jun 27, 2008, at 10:41 PM, Gros Bedo wrote:
>
> But your solution is working too ! With a png 128x128 the icon shows
> flawlessly in the taskbar :-D THANK YOU VERY MUCH (you don't know
> how many days I've been looking for an answer).
>
No problem, glad it worked out.
> This was the worst problem for me, but I would like to know if there
> is still an answer for my second question: is there a way to execute
> a function when clicking on the icon in Mac OS X ? As I said I use
> this:
>
> > > icon = wx.Icon ('icon.ico', wx.BITMAP_TYPE_ANY)
> > > self.tbicon.SetIcon (icon, sTip)
> > > wx.EVT_TASKBAR_LEFT_UP (self.tbicon, self.OnTaskBarActivate)
>
> I didn't find any other procedure (maybe in pyObjC ?). Anyway, I
> couldn't see a single application doing this, so maybe it's simply
> impossible.
>
As a workaround you could probably bind to EVT_ACTIVATE_APP and in the
handler check for GetActive to see if is being activated or not to
call your function. Its odd that the left clicks don't fire events
seems like a possible wx bug.
Regards,
Cody
>
> PS: Can I add you in the Special Thank page ?
Sure if you want, I don't think I really did anything though
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-mac/attachments/20080627/54961749/attachment.htm
More information about the wxpython-mac
mailing list