Skip to content
Paul Sinnett edited this page May 18, 2017 · 11 revisions

Our college screen pixel density is ~92 dpi whereas the iPhone is 326 dpi

iPhone screen is ~2.3 inches across which is ~210 pixels at 92 dpi iPhone screen is ~4.1 inches high which is ~380 pixels at 92 dpi

To run Kivy and create an iPhone sized window on the PC based on inches:

set KIVY_DPI=92
python main.py --size 210x380

To run Kivy and create an iPhone sized window on the PC based on pixels:

set KIVY_DPI=326
python main.py --size 750x1334

Samsung Galaxy S6 is ~577 dpi 1440x2560 pixels ~2.5 inches across which is ~230 pixels at 577 dpi ~4.4 inches high which is ~404 pixels at 577 dpi

At scale on the PC

set KIVY_DPI=92
python main.py --size 230x404
Clone this wiki locally