Here is a simple program to create a GUI with tkinter in Python:
#tkinter module has the Tk toolkit and has to be imported
import tkinter as tk
#root widget
window = tk.Tk()
#setting dimensions of root widget
window.geometry("500x500")
#Label widget
#w = Label ( master, option, ... )
display = tk.Label(window, text="https://py-programmers.blogspot.com/")
#fit the size of window to text size
display.pack()
#Tkinter event loop
window.mainloop()
Here is a video explaining the above code and executing it:
1 Comments
Your post is really good thanks for sharing these kind of post but if anyone looking for Best Consulting Firm for Fake Experience Certificate Providers in bangalore, India with Complete Documents So Dreamsoft Consultancy is the Best Place.Further Details Here- 9599119376 or VisitWebsite-https://experiencecertificates.com/experience-certificate-provider-in-bangalore.html
ReplyDelete