Exemplo n.º 1
0
import rotatescreen
import time

screen = rotatescreen.get_primary_display()

print(
    "\t\t\t\t!!!!!CAUTION!!!!!\n\t\t\t***This thing can MESS UP your computer***"
)

x = int(input("\n1.START\n2.QUIT\nYour option: "))

if x != 1 or 2:
    print("Invalid Input, Just enter the numbers i.e 1 or 2")

elif x == 1:
    for k in range(10, 0, -1):
        time.sleep(1)
        print(k)
    print(
        "/////GET READY FOR THE HEART ATTACK/////\n-----And don't even dare to stop this while its running-----"
    )
    time.sleep(3)
    for i in range(201):
        time.sleep(1)
        screen.rotate_to(i * 90 % 360)

elif x == 2:
    print("\n!!!! Sorry, but there is no way back !!!!")
    for k in range(10, 0, -1):
        time.sleep(1)
        print(k)
Exemplo n.º 2
0
""" Rotate screen randomly to get your 
friend wonder what the heck is happening 
to his pc.

author: ashraf minhaj
mail: [email protected]
"""
"""
install-
$ pip install rotate-screen
"""

import rotatescreen as rs  # just to make the name short
from time import sleep  # to make delays

screen = rs.get_primary_display()  # get primary display

screen.set_portrait_flipped()
sleep(1)  # 1 sec delay

screen.set_landscape_flipped()
sleep(1)  # 1 sec delay

screen.set_portrait()
sleep(1)

screen.set_landscape()  # back to normal