How to create an alert in Python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How to create an alert in Python?

I wonder if I can create an alert in python, similar to what you see in web programs, that you can use to display info.

15th Feb 2018, 4:34 PM
Carlos Hidalgo
Carlos Hidalgo - avatar
4 Answers
+ 2
TRY USING import win32api win32api.MessageBox(0, 'hello', 'title')
25th Jul 2020, 7:33 AM
KSHITIJ GAJANAN GAVHANE
KSHITIJ GAJANAN GAVHANE - avatar
0
Do you mean like a pop up window that says do you wish to continue? And you click continue or cancel?
15th Feb 2018, 4:39 PM
Jax
Jax - avatar
0
If so, I’m not sure if you can. You can probably do it from scratch but just a simple alert box can’t be done in python like the other languages.
15th Feb 2018, 4:40 PM
Jax
Jax - avatar