Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

tkinter dialog box

from tkinter import messagebox

messagebox.showinfo("Information","Informative message")
messagebox.showerror("Error", "Error message")
messagebox.showwarning("Warning","Warning message")
Comment

tkinter dialog box

from tkinter import messagebox

answer = messagebox.askokcancel("Question","Do you want to open this file?")
answer = messagebox.askretrycancel("Question", "Do you want to try that again?")
answer = messagebox.askyesno("Question","Do you like Python?")
answer = messagebox.askyesnocancel("Question", "Continue playing?")
Comment

PREVIOUS NEXT
Code Example
Python :: install chrome driver python 
Python :: python scope 
Python :: numpy get diagonal matrix from matrix 
Python :: python create dictionary from csv 
Python :: Write Python programs to print numbers from 1 to 10000 while loops 
Python :: train-test split code in pandas 
Python :: django annotate vs aggregate 
Python :: cumulative frequency for python dataframe 
Python :: python trim leading whitespace 
Python :: python async await run thread 
Python :: access env variable in flask 
Python :: is tuple immutable in python 
Python :: new line in python 
Python :: mypy clear cache 
Python :: python callable type hint 
Python :: python list .remove 
Python :: python seaborn color map 
Python :: remove character from string pandas 
Python :: print string and variable python 
Python :: python try except finally 
Python :: seaborn.distplot() 
Python :: python 3.11 release date 
Python :: django message 
Python :: neural network hyperparameter tuning 
Python :: if-else 
Python :: how to type using selenium python 
Python :: python i++ 
Python :: time df.apply() python 
Python :: regex for repeating words python 
Python :: python add attribute to class instance 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =