sscasc@tumkur graphical user interface the user can interact with an application through graphics or an image is called gui [graphical user interfacehere the user need not remember any commands user can perform task just by clicking on relevant images advantages it is user friendly it adds attraction and beauty to any application by adding picturescolorsmenusanimation it is possible to simulate the real life objects using gui gui helps to create graphical components like push buttonradio buttoncheck boxtext boxmenus etc gui in pythonpython offers tkinter module to create graphical programs the tkinter represents 'toolkit interfacefor gui this is interface for python programmers that enable them to the classes of tk module of tcl/tk [tool command languagetcl language use tk[tool kitlanguage to generate graphics general steps involved in basic gui programs create root windowthe root window is the top level window that provides rectangular space on the screen where we can display textcolorimagesetc first import tkinter module from tkinter import root=tk(create root window object create canvas frame canvas and frame are child windows in the root window =canvas(rootbg='blue'height= ,width= ,cursor='pencil'cursors are circlehand hand heartpencilplusmousestarwatch etc create widgets components for canvas create linecirclerectangleany geometric objects for frame buttonstext boxlist check box etc create event handler write the function for corresponding event wap to draw lineovalpolygonrectangle and text from tkinter import root=tk(root title ("my window"#root geometry (" " =canvas(root,bg="blue",height= ,width= ,cursor='pencil'id= create_line( , , , , , ,width= ,fill="white"id= create_oval( , , , ,width= ,fill="yellowactivefill="blue"id= create_polygon( , , , , , ,width= ,fill="green",outline="red",activefill="pink"id= create_rectangle( , , , ,width= ,fill="gray",outline="yellow",activefill="green"fnt=('times', ,'bold italic underline'id= create_text( , ,text="python graphics"font=fntfill="white"activefill="red" pack(root mainloop(sp_python programming