python-eel / Eel

A little Python library for making simple Electron-like HTML/JS GUI apps
MIT License
6.44k stars 587 forks source link

smallest window size #388

Closed Iftakharpy closed 2 years ago

Iftakharpy commented 4 years ago

Is your feature request related to a problem? Please describe. I am developing an application which a part of this app shows data from a database to users. It's annoying sometimes users doesn't reads all the fields. So I want to make a limit where I can set Height and Width so that users can't make the window smaller than that dimenssion.

Describe the solution you'd like

I want a method where I can pass a tuple (Height, Width) to set the smallest window a user can resize to.

Or an argument added to the init function.

Python sudo code for my idea

def window_resize_limit(small,large):
    "Large and small are tuple containing  window dimensions (height, width)"
    # Users can't maximize the app window beyond the large parameter
    # Users can't shrink the size of the window smaller than the small parameter
    pass