How to capture trayicon.displayMessage() mouse click on the tooltip baloon

1) Is possible to listening MouseClickEvents by add ActionListener to the TrayIcon, then Message body listening for MouseClicked 2) (not asked directly) but I can’t to give you an answer listening if message was closed by close button, and Message gone away from screen same way, but without catch any event(s) 3) looks like as … Read more

Quick and easy: trayicon with python?

For Windows & Gnome Here ya go! wxPython is the bomb. Adapted from the source of my Feed Notifier application. import wx TRAY_TOOLTIP = ‘System Tray Demo’ TRAY_ICON = ‘icon.png’ def create_menu_item(menu, label, func): item = wx.MenuItem(menu, -1, label) menu.Bind(wx.EVT_MENU, func, id=item.GetId()) menu.AppendItem(item) return item class TaskBarIcon(wx.TaskBarIcon): def __init__(self): super(TaskBarIcon, self).__init__() self.set_icon(TRAY_ICON) self.Bind(wx.EVT_TASKBAR_LEFT_DOWN, self.on_left_down) def … Read more