Найти - Пользователи
Полная версия: pynotify
Начало » Python для новичков » pynotify
1
oksromn
Установил либу pynotify для вывода уведомлений на рабочий стол.
На python2 работает, а на python3 выдаёт такую ошибку:
 Traceback (most recent call last):
  File "notify.py", line 6, in <module>
    pynotify.init()
AttributeError: module 'pynotify' has no attribute 'init'

Код моей программы:
 # -*- coding: utf-8 -*-
import pynotify
pynotify.init()
n = pynotify.Notification("Title", "Some simple text")
n.show()
JOHN_16
судя по всему вы перепутали notify2 с pynotify
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB