w3resource

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: Create a window and disable to resize the window using tkinter module

Flowchart:

Flowchart: Create a window and disable to resize the window using tkinter module

Python Code Editor:

Have another way to solve this solution? Contribute your code (and comments) through Disqus.

Previous: Write a Python GUI program to create a window and set the default window size using tkinter module.
Next: Python tkinter Basic Exercise Home

What is the difficulty level of this exercise?

Test your Python skills with w3resource's quiz


Python: Tips of the Day

Curries a function.

Example:

from functools import partial

def tips_curry(fn, *args):
  return partial(fn,*args)
add = lambda x, y: x + y
add1 = tips_curry(add, 20)

print(add1(80))

Output:

100