Skip to content

CTkBanner

Rudy edited this page Feb 21, 2024 · 1 revision

Preview

ctk_banner_1 ctk_banner_2 ctk_banner_3 ctk_banner_4

Example usage

# CTkBanner
banner = CTkBanner(master=app, state="info", title="title", btn1="Action 1", btn2="Action 2", side="right_bottom")
answer = banner.get() # get answer: This will return the user's response to the banner.

Arguments

Parameter Description
master Set parent window, the widget will spawn at right bottom of the parent window
state The icon of alert (info: default, warning and error)
title Title of alert
btn1 The text on the first button (Ok: default)
btn2 The text on the second button (Cancel: default)
side The position where the widget should be displayed (right_bottom: default)
Clone this wiki locally