zroya icon indicating copy to clipboard operation
zroya copied to clipboard

zroya.hide bug

Open romkazor opened this issue 7 years ago • 1 comments

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)

romkazor avatar Mar 20 '19 13:03 romkazor

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 };

boxothing avatar Dec 28 '19 07:12 boxothing