Python tkinter Basic Exercise: Create a window and disable to resize the window using tkinter module
Python tkinter Basic: Exercise-5 with Solution
Write a Python GUI program to create a window and disable to resize the window using tkinter module.
Sample Solution:
Python Code:
import tkinter as tk
parent = tk.Tk()
parent.title("-Welcome to Python tkinter Basic exercises-")
# Disable resizing the GUI
parent.resizable(0,0)
parent.mainloop()
Sample Output:
Flowchart:
Python Code Editor:
Previous: Create a window and set the default window size using tkinter module.Next: Python Tkinter GUI program: Adding labels and buttons.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://w3resource.com/python-exercises/tkinter/python-tkinter-basic-exercise-5.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics