PyQt5 – Set maximum window size
When we create a window, by default, it is resizable but with the help of
setFixedSize() method we can fix the size of window. But what if we want to resize the window up-to some extent; in order to do this, we have to set the maximum size of the window. We will use
Syntax : self.setMaximumSize(width, height)
Argument : It takes two argument both integer i.e width and height.
Action performed : It set the maximum size of window.