Python AppIndicator bindings -> howto check if the menu is open?

江枫思渺然 提交于 2019-12-03 23:11:25

It looks like the answer is no unfortunately.

print gobject.signal_list_names(ind)
('new-icon', 'new-attention-icon', 'new-status', 'new-label', 'x-ayatana-new-label', 'connection-changed', 'new-icon-theme-path')

I tried all of them and none of them appear to activate when the indicator is clicked. For what it's worth the unity devs seem to want to keep all indicators behaving in a uniform way, so it's quite possible that it's deliberately limited.

There is a bug filed about it on Launchpad https://bugs.launchpad.net/screenlets/+bug/522152

Notice that "activate" signal is available for AppIndicator submenus.

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