Skip to content

CTkAlert

Rudy edited this page Feb 21, 2024 · 1 revision

Preview

alert_1 alert_2 alert_3

Example usage

# 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.

Arguments

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)
Clone this wiki locally