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

How to start WinForm app minimized to tray?

The right way to do this is to prevent the form from getting visible in the first place. That requires overriding SetVisibleCore(). Let’s assume a context menu for the NotifyIcon with a Show and Exit command. You can implement it like this: public partial class Form1 : Form { public Form1() { InitializeComponent(); notifyIcon1.ContextMenuStrip = … Read more