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

Button Delay show and button callbacks #33

Open
Wizzard88 opened this issue Feb 8, 2024 · 0 comments
Open

Button Delay show and button callbacks #33

Wizzard88 opened this issue Feb 8, 2024 · 0 comments

Comments

@Wizzard88
Copy link

Any way possible to delay the button appearance? Say 10 seconds

After timeout of toast showing python steps on an unable to log button press.
Any way to create a web hook \ callback?

def button_click(id):
value = str(id)
D = id["arguments"].strip('http:')

print("value passed " + value)
print(D)

def launchtoaster(ip_address, localtime, messagetype, messagetodisplay, serversocket, maxConnect):
username2 = get_display_name()

icon = {
'src': 'C:/PatchDeploymentX64/note-task-comment-message-edit-write_108613.ico',
'placement': 'appLogoOverride'
}

apptitle = 'Message from Admin                     Version:'+ messagingVersion
titleheader = 'Notification ' + messagetype
msgbody = 'Listen up ' + username2 + '\n' + messagetodisplay + '\nSent ' + localtime

toast(app_id=apptitle,title=titleheader,body=msgbody,buttons=['Dismiss'],on_click=lambda args: button_click(args),icon=icon,dialogue=messagetodisplay,duration="long" )    
 
logMessage = "Python Moved past Toast"
logToFile(logFile, logMessage)
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

1 participant