-
Notifications
You must be signed in to change notification settings - Fork 4
CTkAlert
Rudy edited this page Feb 21, 2024
·
1 revision
# CTkAlert
alert = CTkAlert(state="info", title="title", body_text="body text", btn1="Ok", btn2="Cancel")
answer = alert.get() # get answer: This will return the user's response to the alert.
Parameter | Description |
---|---|
state |
The icon of alert (info: default, warning and error) |
title |
Title of alert |
body_text |
Message or body text of alert |
btn1 |
The text on the first button (Ok: default) |
btn2 |
The text on the second button (Cancel: default) |