Answers for "message box in Python"

1

how to make a alert box in python

import pyautogui
print(pyautogui.alert("Hi grepper user"))
Posted by: Guest on September-30-2021
3

python tkinter messagebox

import tkinter
from tkinter import messagebox
# hide main window
root = tkinter.Tk()
# message box display
messagebox.showerror("Error", "Error message")
messagebox.showwarning("Warning","Warning message")
messagebox.showinfo("Information","Informative message")
Posted by: Guest on November-16-2020
2

tkinter info box

from tkinter import messagebox

messagebox.showinfo('Title', 'Information')
Posted by: Guest on July-21-2020
-2

list in tkinter messagebox

from tkinter import *
from tkinter import messagebox

def listMessageBox(arr):
  window=Tk()
  listbox=Listbox(window)
  listbox.pack(fill=BOTH, expand=1) #adds listbox to window
  [listbox.insert(END, row) for row in arr] #one line for loop
  window.mainloop()
  
arr=['a','b','c','1','2','3']

listMessageBox(arr)
Posted by: Guest on March-16-2020

Python Answers by Framework

Browse Popular Code Answers by Language