Shutdown system tray icon on PyGObject

岁酱吖の 提交于 2021-01-27 14:22:48

问题


My vision of the program: icon in tray, left click on icon opens a window with shutdown, reboot, etc. buttons.

The new Gnome specification advises to use notifications instead.

StatusIcon >! (Deprecated since version 3.14: Use notifications)

Unfortunately, I didn't find how Notify.Notification can be displayed in the tray. The only thing that I found is AppIndicator3.Indicator, but its constructor can only take a Gtk.Menu, which is unsuitable.

Which classes may I use?


回答1:


I had used GtkStatusIcon due to comments



来源:https://stackoverflow.com/questions/30514178/shutdown-system-tray-icon-on-pygobject

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!