tkinter messagebox
import Tkinter
import tkMessageBox
top = Tkinter.Tk()
def hello():
tkMessageBox.showinfo("Say Hello", "Hello World")
B1 = Tkinter.Button(top, text = "Say Hello", command = hello)
B1.pack()
top.mainloop()
tkinter messagebox
import Tkinter
import tkMessageBox
top = Tkinter.Tk()
def hello():
tkMessageBox.showinfo("Say Hello", "Hello World")
B1 = Tkinter.Button(top, text = "Say Hello", command = hello)
B1.pack()
top.mainloop()
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)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us