tags:

views:

28

answers:

1

I can get the screen resolution in with

wx.DisplaySize()

but I don't see a method which gives me the DPI.

A: 

I don't think there is any such function in wxPython, what you can do instead is, by using ctypes call win32api function GetDeviceCaps and get LOGPIXELSX/LOGPIXELSY

Anurag Uniyal
`ctypes` is still uncharted waters for me, but thanks for the tip!
Kit