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

Pull specific values from Monitor X #82

Open
micjgam opened this issue Oct 30, 2023 · 1 comment
Open

Pull specific values from Monitor X #82

micjgam opened this issue Oct 30, 2023 · 1 comment

Comments

@micjgam
Copy link

micjgam commented Oct 30, 2023

get-_monitors output is type is 'list' with length of one '1' and short of pulling in string methods to get what I need is there another way to pull values from the output of get_monitors - specifically W & H? I would use the values directly in writing another function on top for use with image libraries.

@Jpdude
Copy link

Jpdude commented Jan 20, 2025

get_monitors() -> Returns a list of the Monitor class
All the values of possible values of the Monitor class are as follows:

  • x
  • y
  • width
  • height
  • width_mm
  • height_mm
  • name:
  • is_primary
    you can easily access W & H like so : get_monitors()[0].width for any of the values listed

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

No branches or pull requests

2 participants