Friday, May 8, 2020

Creating our first GUI application


By: Archana Shukla And Rajesh Shukla


In order to create our first GUI application we have to import Tkinter package and create a window and set its title:

code:

from tkinter import *
window = Tk()
window.title("Welcome to tKinter")

window.mainloop()

Output:
The result will be like this:
https://pythontkintertutorial.wordpress.com/

Great!! Our application just works.
The last line which calls mainloop function, this function calls the endless loop of the window, so the window will wait for any user interaction till we close it.
If you forget to call the mainloop function, nothing will appear to the user.

0 comments:

Post a Comment

If you have any doubts, please let me know