Example code:
CODE
import tkinter as tk
from tkinter import messagebox
win = tk.Tk()
def hello():
messagebox.showinfo('Info','Hello, world')
win.title('Python GUI example')
win.geometry('400x300')
btn1=tk.Button(win,text='Click me',command=hello).grid(column=0,row=0)
win.mainloop()
from tkinter import messagebox
win = tk.Tk()
def hello():
messagebox.showinfo('Info','Hello, world')
win.title('Python GUI example')
win.geometry('400x300')
btn1=tk.Button(win,text='Click me',command=hello).grid(column=0,row=0)
win.mainloop()
How many here know Tkinter, and use it?
Is it a standard and universal lib across various versions of Python?
Example output of code above:

Jun 4 2022, 12:22 PM, updated 4y ago
Quote



0.0150sec
0.23
6 queries
GZIP Disabled