【问题标题】:Using plyer with qpython将 plyer 与 qpython 一起使用
【发布时间】:2016-02-11 15:54:58
【问题描述】:

对不起,如果这太明显了,但我正在 Android 上的 qpython 下尝试以下操作:

from plyer import notification
notification.notify("something","else")

我收到以以下结尾的错误:

NotImplementedError: No usable implementation found!

我错过了什么?

【问题讨论】:

    标签: qpython


    【解决方案1】:

    notify 必须传递几个参数,这里是一个如何使用它的例子:

    from plyer import notification
    
    notification.notify(title="Kivy Notification",message="Plyer Up and Running!",app_name="Waentjies",app_icon="icon.png",timeout=10)
    

    希望这有帮助

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-01-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多