All kinds of window bar, quite simple,
Look at the tutorials, the tutorials URL click on the Open link
Tried a variety of window.
Source:
Import tkinter.messagebox
import tkinter as TK
window=tk. Tk ()
window.title (' menu ')
window.geometry (' 400x400 ')
def hit ():
#box系列
# Tk.messagebox.showinfo (title= ' Hi ', message= ' So is a MsgBox ')
#tk. messagebox.showwarning (title= ' warning '), Message= ' So is a Warningbox ')
#tk. Messagebox.showerror (title= ' Hi ', message= ' no! ' "The program are about to crash! ')
#ask系列
#tk. messagebox.askquestion (title= ' Hi ', message= ' Are you sure to cancel it? ') #返回 ' yes ' or ' no '
Tk.messagebox.askyesno (title= ' Hi ', message= ' Are you sure to cancel it? ') #返回True或者False
tk.messagebox.askquestion (title= ' Hi ', message= ' Are you sure to cancel it? ') #
B=TK. Button (window,text= ' There'll be a MsgBox ', Command=hit). Pack ()
Tk.mainloop ()
There's nothing to say about it, it's just a simple window to play.