Rotate Screen using python

 



Rotating screen using python is one of the amazing experience and also can be used for fun with your friends and family.

Libraries required:

rotatescreen
time

If something else required then simply use your command prompt and write the following code:

pip install <library name>

 

So lets do write the code--

import rotatescreen

import time

screen=rotatescreen.get_primary_display()
for i in range(10):
    time.sleep(2)
    screen.rotate_to(i*90%360)

And See the magic happend

Thank you 

Please comment your suggestion 




 

 

Comments