robertlugg / easygui

easygui for Python
http://easygui.readthedocs.org/en/master/
BSD 3-Clause "New" or "Revised" License
455 stars 115 forks source link

The dialog's min size can not be adjust #79

Open askeing opened 9 years ago

askeing commented 9 years ago

When I have two monitors, 1920x1080(HxW) + 1920x1080(HxW), and the Tk will get 1920x2160(HxW). It will make the dialog window's min size become to large, due to the main monitor's width is only 1080.

It seems like the winfo_screenwidth and winfo_screenheight can not get only one screen's size. https://github.com/robertlugg/easygui/blob/master/easygui/boxes/base_boxes.py#L452-L464

deleuzer commented 6 years ago

Why hasn't anyone addressed this? Not only is the multiple monitors a problem, but the min size for the choicebox() is simply way too large. Even on the register.py example program, there's so much white space it's almost unusable. If it would be easy enough, I would suggest reducing both the min height and min width for the choice box by at least 50%. I'm sure there's a reason the current min size was chosen, but whatever it is, it would have to be one very good reason for the rather unfriendly aesthetic. Since it can always be dragged larger, a reduced size seems prudent.

zadacka commented 6 years ago

We do need to get around to fixing this. I've wanted to do a bit of a refactor before doing addressing this particular issue: the current handling of screen widths is not ideal, and I want to make sure any modifications I do actually do more good than harm.

The short story is that I hear and feel your frustration, but can't promise a timeline for this being resolved. It's going to depend on available time to look at this.

Sorry that isn't more useful - but hope that some update / response is better than nothing here.