Tkinter is inbuilt module in Python, which is used for making GUI (Graphical User Interface).

Display message on window with Label object.

Code:

from Tkinter import *

root = Tk() #create blank window

message = Label(root, text=”Hello World!”, bg = “black”, fg = “white”, font = (“Bradley Hand ITC”,20)) # display message on blank window(root), bg = background color, fg = foreground color

message.pack() # position message on window, as default its top center

root.mainloop() # mainloop keet the window visible till user closes the window

 

Output:

2017-06-24