you can launch this example in idlefrom console command lineor by clicking its icon--the same way you can run other python scripts tkinter itself is standard part of python and works out-of-the-box on windows and othersthough you may need extra configuration or install steps on some computers (more details later in this bookit' not much more work to code gui that actually responds to userexample - implements gui with button that runs the reply function each time it is pressed example - pp \previewtkinter py from tkinter import from tkinter messagebox import showinfo def reply()showinfo(title='popup'message='button pressed!'window tk(button button(windowtext='press'command=replybutton pack(window mainloop(this example still isn' very sophisticated--it creates an explicit tk main window for the application to serve as the parent container of the buttonand it builds the simple window shown in figure - (in tkintercontainers are passed in as the first argument when making new widgetthey default to the main windowbut this timeeach time you click the "pressbuttonthe program responds by running python code that pops up the dialog window in figure - figure - tkinter py main window notice that the pop-up dialog looks like it should for windows the platform on which this screenshot was takenagaintkinter gives us native look and feel that is appropriate for the machine on which it is running we can customize this gui in many ways ( by changing colors and fontssetting window titles and iconsusing photos step adding gui