|
| 1 | +print("-------------------------------------------------------------------------PythOS Promt(For Developers)--------------------------------------------------------------------") |
| 2 | +print("Welcome to PythOS") |
| 3 | +from time import sleep |
| 4 | +import random |
| 5 | +print("Starting. Please wait...") |
| 6 | +sleep(5) |
| 7 | +dev_ver = "Indev 2.1.0" |
| 8 | +# Below is the setup. |
| 9 | +dev_name = "INVALID" |
| 10 | +key = "INVALID" |
| 11 | +repeat = True |
| 12 | +licence = False |
| 13 | +def login(): |
| 14 | + print("===========================================================================Log in required================================================================================") |
| 15 | + dev_name = input("Type in your name: ") |
| 16 | + key = input("Type in a valid Product Key in Caps. This has been included with your installation box: ") |
| 17 | + if key == "X56W7-HJS89-S83KD-5KF91": |
| 18 | + repeat = True |
| 19 | + print("WARNING! Never shut this window unless you choose 'Shutdown' in the power options.") |
| 20 | + print() |
| 21 | + else: |
| 22 | + print("Invalid key.") |
| 23 | + login() |
| 24 | + print("=========================================================================================================================================================================") |
| 25 | +login() |
| 26 | +while repeat == True: |
| 27 | + print() |
| 28 | + print("Please type in your command. You can type:") |
| 29 | + print("ver - tells you about your verion of PythOS Basic.") |
| 30 | + print("power - opens power options, such as Sleep or Shutdown.") |
| 31 | + print("games - opens Games.") |
| 32 | + command_option = input("Type in your command: ") |
| 33 | + if command_option == "ver": |
| 34 | + print("You are runnning:") |
| 35 | + print("PythOS", dev_ver) |
| 36 | + print("Developer's Edition") |
| 37 | + print() |
| 38 | + print("This installation of PythOS Developer's Edition is licenced to: ") |
| 39 | + print("") # Inside, type in the name of your company. |
| 40 | + elif command_option == "power": |
| 41 | + print("POWER OPTIONS") |
| 42 | + print("Here are your power/account options:") |
| 43 | + print("shutdown - Logs out and turns off your installation.") |
| 44 | + print("sleep - Pauses all prosesses and puts it into a low-power mode.") |
| 45 | + print("logout - Ends your session.") |
| 46 | + power_option = input("Please type in your option: ") |
| 47 | + if power_option == "shutdown": |
| 48 | + print("Logging out...") |
| 49 | + sleep(5) |
| 50 | + print("Logged out.") |
| 51 | + print("Exiting PythOS...") |
| 52 | + repeat = False |
| 53 | + sleep(10) |
| 54 | + shutdown_error = random.randint(0,9999) |
| 55 | + if shutdown_error == 0: |
| 56 | + home = input(">>> Python: PythOS could not shut down. PythOS can be killed and safely closed by pressing ENTER. ") |
| 57 | + if home == "": |
| 58 | + print(">>> Python: Killed PythOS.") |
| 59 | + else: |
| 60 | + print(">>> Python: Killed PythOS.") |
| 61 | + elif power_option == "sleep": |
| 62 | + wake_up = input("PythOS is sleep. Press ENTER to wake up. ") |
| 63 | + if wake_up == "": |
| 64 | + print("Returning to PythOS...") |
| 65 | + sleep(2) |
| 66 | + else: |
| 67 | + print("Returning to PythOS...") |
| 68 | + sleep(2) |
| 69 | + elif power_option == "logout": |
| 70 | + print("Logging out...") |
| 71 | + sleep(1) |
| 72 | + print("Logged out.") |
| 73 | + sleep(5) |
| 74 | + login() |
0 commit comments