Re: Points vs pixels in a bash script
Re: Points vs pixels in a bash script
- Subject: Re: Points vs pixels in a bash script
- From: Gabriel Zachmann via Cocoa-dev <email@hidden>
- Date: Wed, 10 Jun 2020 23:34:00 +0200
>
> python -c 'import AppKit ; print
> AppKit.NSScreen.screens()[0].frame().size.width'
>
Thanks a million! that even works for multi-monitor setups correctly.
>> tells me the resolution of the screen in the same units (of course) as
>
> This will not work if you have multiple monitors attached.
>
Thanks a lot for the hint - you are right, of course.
Best, G.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden