5. Write a python Tkinter program to create a window with title Tkinter Exercise 5 and create a click button in the tkinter window.
The output is:
Sample Answer:
import tkinter as tk
window = tk.Tk()
window.title('Tkinter Exercise 5')
my_button = tk.Button(window, text='Click', height=1, width=35, command=window.destroy)
my_button.pack()
window.mainloop()
More Exercises:
Python String ExercisesMore Numpy Exercises:
Numpy String ExercisesMore Pandas Exercises:
Pandas Series ExercisesMore Tutorials:
Python Installation - Linux (Ubuntu)