Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Tk screen and monitor size in mm, DPI and scaling

by Discipulus (Canon)
on Mar 14, 2021 at 20:47 UTC ( [id://11129627]=note: print w/replies, xml ) Need Help??


in reply to Re: Tk screen and monitor size in mm, DPI and scaling
in thread Tk screen and monitor size in mm, DPI and scaling

Hello kcott and thanks for looking,

the Tk scaling is not the windows scaling: you probably already read the vr's answer below. Is like Tk is assuming always a 96dpi settings while nowadays we are always running higher values.

Me too I dont use powershell but was the only way I found to retrieve physical monitor size and does not works in win7. As vr noted, I had a typo in the powershell cut&paste and if you see above now I have fixed it. I dont use power(s)hell also because its totally unuseful errors (tell me if the error emitted is the relevant one.. ;)

I love perl for its errors!

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11129627]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-16 17:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found