zroya
zroya copied to clipboard
zroya.hide bug
When i try hide notification, i get error:
import time
import zroya
zroya.init("abcd", "a", "b", "c", "1")
template = zroya.Template(zroya.TemplateType.Text1)
template.setFirstLine("Hello")
zroya_id = zroya.show(template)
time.sleep(1)
zroya.hide(zroya_id)
time.sleep(5)
Traceback (most recent call last):
File "D:/Dropbox/Projects/Notifer/test1.py", line 10, in <module>
zroya.hide(zroya_id)
SystemError: More keyword list entries (6) than format specifiers (1)
I came across same issue when trying to use the hide function. You have to add null pointer for the hide argument in the source. Add that and rebuild!
Open module/py_init.cpp and edit line 97 to the following.
static char *keywords[] = { (char*)"nid", nullptr };