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:
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