myappindicator.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:scripts-systems 作者: nomad-fr 项目源码 文件源码
def main():
    signal.signal(signal.SIGINT, signal.SIG_DFL)
    indicator = appindicator.Indicator.new(APPINDICATOR_ID, \
        os.path.abspath('/usr/share/icons/gnome/24x24/emotes/face-smile-big.png'), \
        appindicator.IndicatorCategory.SYSTEM_SERVICES)
    indicator.set_status(appindicator.IndicatorStatus.ACTIVE)
    menu = gtk.Menu()
    indicator.set_menu(build_menu(menu))
    # GObject.timeout_add(1000, timespent, indicator, menu)
    gtk.main()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号