-Tim
P.S.
Thanks for assisting with this
On Tue, May 19, 2009 at 6:28 AM, Mike Driscoll <mike@pythonlibrary.org > <mailto:mike@pythonlibrary.org>> wrote:
William Heath wrote:
Hi Mike,
I have added the functionality using the win32api, just wanted
a more elegant approach. I was told that the
wxNotificationMessage could assist with this. Can you remark
on that possibility? Would it help if I posted my code?
-Tim
Alas. I have not used "wxNotificationMessage" for anything, so my
only remark is "no comment". See Andrea's post for what he had to
say on the subject. It sounds like the 2.9 branch will include
more functionality (see both Andrea's and Robin's posts).
- Mike
On Mon, May 18, 2009 at 2:06 PM, Mike Driscoll > <mike@pythonlibrary.org <mailto:mike@pythonlibrary.org> > <mailto:mike@pythonlibrary.org > <mailto:mike@pythonlibrary.org>>> wrote:
William Heath wrote:
Hi Mike,
I am looking for a way to bring up the tip balloon without
putting the mouse over the systray icon. Do you know
how to
do that?
-Tim
Hmmm...I tried making it pop-up using a button event, but that
didn't work. There doesn't seem to be a Show() method. Maybe
Andrea can give us a clue or add that functionality.
- Mike
On Mon, May 18, 2009 at 6:56 AM, Mike Driscoll
<mike@pythonlibrary.org <mailto:mike@pythonlibrary.org>
<mailto:mike@pythonlibrary.org>
<mailto:mike@pythonlibrary.org
<mailto:mike@pythonlibrary.org>
<mailto:mike@pythonlibrary.org
<mailto:mike@pythonlibrary.org>>>> wrote:
Will / Tim,
Hi All,
I have been studying some BaloonTip type stuff for a
systray
icon. Based on my research a new class called
wxNotificationMessage in trunk/src/_misc.i
causes a Balloon
Tip to show up on a systray icon. Is that correct?
What is
an example of its usage. I was also reading that it
would be
put in 2.9 but I don't see it in there. What is
the 411?
-Tim
I assume you're talking about Andrea's BalloonTip
that was
released in 2.8.9.1 (I think). His widget appears to
work
through
mouse events in the demo. I used a mouse click event
when I was
playing with it a week or two ago. Here's the code I
used then:
<code>
import wx
from icon import getIcon
import wx.lib.agw.balloontip as BT
class MyTaskbarIcon(wx.TaskBarIcon):
def __init__(self):
wx.TaskBarIcon.__init__(self)
tbIcon = getIcon()
#icon = wx.Icon("pycon.ico", wx.BITMAP_TYPE_ICO)
self.SetIcon(tbIcon, "Test Program")
tipballoon = BT.BalloonTip(message="This
is only
a test!")
tipballoon.SetTarget(self)
tipballoon.SetStartDelay(1000)
if __name__ == "__main__":
app = wx.PySimpleApp()
tbicon = MyTaskbarIcon()
app.MainLoop()
</code>
I don't know if that's what you were looking for or
not though.
-------------------
Mike Driscoll