Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

popup window python tkinter

import tkinter as tk

def popupmsg(msg, title):
    root = tk.Tk()
    root.title(title)
    label = ttk.Label(root, text=msg)
    label.pack(side="top", fill="x", pady=10)
    B1 = tk.Button(root, text="Okay", command = root.destroy)
    B1.pack()
    popup.mainloop()
Source by pythonprogramming.net #
 
PREVIOUS NEXT
Tagged: #popup #window #python #tkinter
ADD COMMENT
Topic
Name
8+8 =