def set_tooltip(self, tooltip): """ Sets the tray icon tooltip. """ self._flags = self._flags | win32gui.NIF_TIP self._tip = tooltip win32gui.Shell_NotifyIcon(win32gui.NIM_MODIFY, self._get_nid())