Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zroya.hide bug #14

Open
romkazor opened this issue Mar 20, 2019 · 1 comment
Open

zroya.hide bug #14

romkazor opened this issue Mar 20, 2019 · 1 comment

Comments

@romkazor
Copy link

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)
@boxothing
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants