-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Added an alert dialog #2168
base: master
Are you sure you want to change the base?
Added an alert dialog #2168
Conversation
… onPositive or onNegative either True or False
This is really interesting. Now apps with customtkinter framework won't need using tkinter.messagebox attribute (i forgot the name of the attribute). You should find out how to implement filedialog in customtkinter framework. And after that everything will be perfect. |
I will, but my next is adding info Dialog(with only a button) and the second is taking a parameter of dialog position for showing on the screen. |
That's great! |
We need to increase number of customtkinter attributes, therefore we will be able to replace tkinter framework with customtkinter framework. |
CTKInpuDialog() function, This text_color param is not effect |
CTKInputDialog() function, This text_color param is not effect |
CTKInputDialog() function, This text_color param is not effect. |
AttributeError: module 'customtkinter' has no attribute 'CTkAlertDialog'. Did you mean: 'CTkInputDialog'? |
@zhongyupei666 my PR isn't merged yet. you can use it once it is merged. |
Added an alert dialog, created using Ctkinputdialog.
Usage :
dialog = customtkinter.CTkAlertDialog(text="Type in a number:", title="Test")
print("state:", dialog.get_state()) // will return True(Ok) or False(Cancel)
Arguments
same as CTkInputDialog, only last three removed which are related to entry
Methods
.get_state()
Retuns will return True(Ok) or False(Cancel), waits for 'Ok' or 'Cancel' button to be pressed.