How to add alert box using python 3 ? | SoloLearn: Learn to code for FREE!

+7

How to add alert box using python 3 ?

Please post only answer not unnecessary things. And answer should be step by step

19 Answers

New Answer

+2

🤠😎 HARDIK JAIN HARSORA😎🤠 The Code Playground Supports Only The Command Line Output Not The GUI. SoloLearn Servers Are Windows Servers And The Installed Library Doesn't Support Tkinter It I'll Just Say That It's Not Supported On This Platform

+11

See it https://www.tutorialspoint.com/python/tk_messagebox.htm#:~:text=The%20tkMessageBox%20module%20is%20used,askokcancel%2C%20askyesno%2C%20and%20askretryignore.

+4

🤠😎 HARDIK JAIN HARSORA😎🤠 ok, you should look at python library called "tkinter"

+4

Yeah, sololearn doesnot support tkinter and there is no way to be supported.so download tkinter on ur pc

+4

🤠😎 HARDIK JAIN HARSORA😎🤠 see this web https://docs.python.org/dev/library/tkinter.messagebox.html

+3

Ananiya Jemberu Sololearn library do not support Tkinter library so please tell me what should I do

+3

Matiyas bro Sololearn don't support Tkinter library

+3

+3

You are wrong. Because there is an alert box in python search at Google

+3

+3

🤠😎 HARDIK JAIN HARSORA😎🤠 Now i understand your question. Have i said in the previous The Code Playground Supports Only The Command Line Output Not The GUI For Example This Code Here Should Output A Red Text But It Will Output Only The Color Encoding https://code.sololearn.com/cWpHy43KWHDN/?ref=app SoloLearn Servers Are Windows Servers And The Installed Library Doesn't Support Tkinter It I'll Just Say That It's Not Supported On This Platform. for more understanding: GUI means A graphical user interface (GUI) is a type of user interface through which users interact with electronic devices.

+3

Sorry for the code. I forget making public

+2

Alert statements aren't in Python, but it works in JavaScript

+2

Ishan Shah Win32api is not supported by Sololearn

+2

Matiyas Sirak as you say that code playground only command line output. I have try it but it doesn't work. Please send me a code so that I will understand it.

+2

🤠😎 HARDIK JAIN HARSORA😎🤠 I don't understand you?

+1

🤠😎 HARDIK JAIN HARSORA😎🤠 The Code Playground Supports Only The Command Line Output Not The GUI.

0

gooooooz

0

import win32api win32api.MessageBox(0, 'hello', 'title')