Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Window widths are too wide when on a dual screen system #67

Open
noisygecko opened this issue Mar 25, 2015 · 4 comments
Open

Window widths are too wide when on a dual screen system #67

noisygecko opened this issue Mar 25, 2015 · 4 comments
Assignees

Comments

@noisygecko
Copy link

When using a dual screen, side-by-side system the default way of calculating window sizes generates windows that are too wide. It would be better to restrict the aspect ration of the windows to some more reasonable one rather than purely going by the system screen height and width.

@noisygecko
Copy link
Author

Here is what I added to restrict the window to no wider than 16/9 and no narrower than 4/3:

    if float(root_width)/root_height > 16.0/9.0:
        root_width = int(root_height*16.0/9.0)
    if float(root_width)/root_height < 4.0/3.0:
        root_height = int(root_width*3.0/4.0)

Although I am not sure about the height restriction since I haven't tried it on a really tall aspect ratio. That might not be a big deal to have it be too tall. But when it is too wide, the "Ok" button gets thrown way over to the right and makes it look very odd.

@robertlugg robertlugg added the bug label Mar 31, 2015
@robertlugg robertlugg self-assigned this Mar 31, 2015
@robertlugg
Copy link
Owner

Thanks for the report. Can you tell me the version you are using?

@noisygecko
Copy link
Author

It doesn't have a version number or date. It does have this line:

Copyright (c) 2014, Stephen Raymond Ferg

I am actually not sure where the latest version is. Are we supposed to get
it from PyPI? I think I got this as a zip from a website.

Sim

On Tue, Mar 31, 2015 at 4:30 AM, Robert M Lugg [email protected]
wrote:

Thanks for the report. Can you tell me the version you are using?


Reply to this email directly or view it on GitHub
#67 (comment).

@noisygecko
Copy link
Author

I just installed it using 'pip' and get the same behavior. For it, easygui.eg_version is 0.97.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants