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

No Events if Notification is in Action Center #10

Open
AmFreaks opened this issue Apr 27, 2018 · 2 comments
Open

No Events if Notification is in Action Center #10

AmFreaks opened this issue Apr 27, 2018 · 2 comments
Assignees
Labels
bug Something isn't working
Projects

Comments

@AmFreaks
Copy link

When Notifications are in the Action Center the events no longer work.
I.e clicking on it or a button no longer has an effect.
Tried with onAction and onClick.

@malja
Copy link
Owner

malja commented Apr 30, 2018

Hi @AmFreaks,
thank you for report.

This is the code I'm using for creating a notification with an action event attached.

import time
import zroya

# Handle onClick event
def handler(id):
    print(id)

# Handle onAction event
def handler2(id, id2):
    print(id, id2)

zroya.init("python", "B", "C", "D", "E")
t = zroya.Template(zroya.TemplateType.Text1)
t.setFirstLine("Text")
t.addAction("Action")

print(zroya.show(t, on_click=handler, on_action=handler2))

time.sleep(15)

I got onAction event working from Action Center. The onClick event is not fired from there though, which it obviously should be.

I'll will have a look at it. Right now it seems that this has something to do with WinToast and not my implementation. Pure C/C++ code behaves the same.

@malja malja added the bug Something isn't working label Apr 30, 2018
@malja malja self-assigned this Apr 30, 2018
@malja malja added this to In Progress in v0.2 May 1, 2018
@yanone
Copy link

yanone commented Nov 25, 2018

I got onAction event working from Action Center. The onClick event is not fired from there though, which it obviously should be.

Not for me. Neither works for me as soon as the message disappears from the screen into the action center.
Just +1ing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
v0.2
  
In Progress
Development

No branches or pull requests

3 participants