main.py 文件源码

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

项目:kivy_gosh 作者: mcroni 项目源码 文件源码
def ping(*args):
    count = 0
    try:
        for message in Announcementss.select():
            count += 1
        print count
        if count == store.get('announcements')['count']:
            print 'yeah'
            osc.sendMsg(
                '/message',
                [''.join('yeah'), ],
                port=3002)
        else:
            kwargs = {'title': 'hey', 'message': 'New Devotion in ', 'ticker': 'New Devotion','timeout':4}
            print 'nah'
            store.put('announcements',count=count)
            notification.notify(**kwargs)
            vibrator.vibrate(.5)
    except peewee.OperationalError:
        print('cant connect')
    else:
        pass
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号