You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Changes in PythOS Indev 2.1.0: Added a logout option.
@@ -16,6 +16,7 @@
16
16
print("Running PythOS on AMD64")
17
17
fname=""
18
18
sname=""
19
+
TryNewDev=""
19
20
deflogin():
20
21
print()
21
22
globalfname
@@ -24,75 +25,88 @@ def login():
24
25
sname=input("Type in your surname: ")
25
26
print()
26
27
print()
27
-
defload(fname, sname):
28
+
defload():
28
29
print("Loading PythOS. Please wait...")
30
+
globalTryNewDev
29
31
iffname=="admin"andsname=="admin":
30
32
print("Welcome to PythOS. You currently have admin permisions")
31
33
iffname=="Test"andsname=="123":
32
-
print("Welcome to PythOS. Dev Mode activated.")
34
+
TryNewDev=input("Developers should try the new PythOS Developer's Edition. Would you like to exit PythOS to run it?(Y/N):")
35
+
ifTryNewDev=="Y":
36
+
print("Just a sec... ")
37
+
else:
38
+
print("Welcome to PythOS. Dev Mode activated.")
33
39
else:
34
40
print("Welcome to PythOS, ", fname, sname,".")
35
41
print("WARNING: DO NOT CLOSE THIS WINDOW UNTIL PYTHOS SAYS IT IS SAFE TO.")
36
42
returnfname
37
43
returnsname
44
+
returnTryNewDev
38
45
ShutDown=False
39
46
login()
40
47
load()
41
48
# Now PythOS has loaded, we can create the actual operating system. But, we need to make a loop so that you can type in a command and then type in a new one.
42
49
43
50
whileShutDown==False:
44
51
45
-
print()
46
-
print("You can type in commands to use PythOS. You can use commands like:")
47
-
print("power - Brings up power options")
48
-
print("ver - Brings up info about your version of PythOS")
49
-
print("settings - Lets you manage settings")
50
-
print("launch - Opens the App Lancher, where you can open apps")
51
-
UtillityOption=input("Type in your option: ")
52
-
ifUtillityOption=="power":
53
-
print("Here are your power options:")
54
-
print("shutdown - Saves your work and lets you close the window.")
55
-
print("#shutdown - Quickly turns off PythOS (Not reccomended).")
56
-
print("sleep - Pauses operations in PythOS and puts it into a low-power mode.")
57
-
PowerOption=input("Type in your option... ")
58
-
ifPowerOption=="shutdown":
59
-
print("Logging", fname, sname, """off.
52
+
print(TryNewDev)
53
+
ifTryNewDev=="Y":
54
+
print("PythOS is shutting down so you can try PythOS Developer's Edition. Please wait...")
55
+
sleep(5)
56
+
print("PythOS has shut down. To install the Developer's Edition, please refer to the section titled 'Setup' in the README.md of https://github.com/Captain-Awesome-Jnr/PythOS-Dev-Edition")
57
+
ShutDown=True
58
+
break
59
+
else:
60
+
print()
61
+
print("You can type in commands to use PythOS. You can use commands like:")
62
+
print("power - Brings up power options")
63
+
print("ver - Brings up info about your version of PythOS")
64
+
print("settings - Lets you manage settings")
65
+
print("launch - Opens the App Lancher, where you can open apps")
66
+
UtillityOption=input("Type in your option: ")
67
+
ifUtillityOption=="power":
68
+
print("Here are your power options:")
69
+
print("shutdown - Saves your work and lets you close the window.")
70
+
print("#shutdown - Quickly turns off PythOS (Not reccomended).")
71
+
print("sleep - Pauses operations in PythOS and puts it into a low-power mode.")
72
+
PowerOption=input("Type in your option... ")
73
+
ifPowerOption=="shutdown":
74
+
print("Logging", fname, sname, """off.
60
75
This operation may take a while. Don't close this window.""")
61
-
sleep(15)
62
-
print("""Preparing PythOS for safe closure...
76
+
sleep(15)
77
+
print("""Preparing PythOS for safe closure...
63
78
This operation may take a while. Don't close this window.""")
64
-
sleep(20)
65
-
print("""You have reached a point where it is safe to exit PythOS.
66
-
You can now close this window.""")
67
-
ShutDown=True
68
-
break
69
-
elifPowerOption=="#shutdown":
70
-
print("Quick Shutdown initilisation:")
71
-
DoQuickShutdown= (input("Quick Shutdown will imedietly let you close the window. Turn off now? (Y/N): "))
72
-
ifDoQuickShutdown=="Y"or"y":
73
-
print("""PythOS - Shut down sucsessful:
79
+
sleep(20)
80
+
print("""You have reached a point where it is safe to exit PythOS.
74
81
You can now close this window.""")
82
+
ShutDown=True
75
83
break
76
-
elifDoQuickShutdown=="N"or"n":
77
-
print("Aborting Quick Shutdown.")
78
-
else:
79
-
rerun=input("""There was an error prossesing your request:
84
+
elifPowerOption=="#shutdown":
85
+
print("Quick Shutdown initilisation:")
86
+
DoQuickShutdown= (input("Quick Shutdown will imedietly let you close the window. Turn off now? (Y/N): "))
87
+
ifDoQuickShutdown=="Y"or"y":
88
+
print("""PythOS - Shut down sucsessful:
89
+
You can now close this window.""")
90
+
break
91
+
elifDoQuickShutdown=="N"or"n":
92
+
print("Aborting Quick Shutdown.")
93
+
else:
94
+
rerun=input("""There was an error prossesing your request:
80
95
Quick Shutdown inisilisation. Press ENTER to return to main menu.""")
81
-
elifPowerOption=="sleep":
82
-
print("PythOS is currently asleep.")
83
-
ExitSleep=input("Press any key to exit sleep: ")
84
-
ifExitSleep=="":
85
-
print("Welcome back,", fname, sname,".")
96
+
elifPowerOption=="sleep":
97
+
print("PythOS is currently asleep.")
98
+
ExitSleep=input("Press any key to exit sleep: ")
99
+
ifExitSleep=="":
100
+
print("Welcome back,", fname, sname,".")
101
+
else:
102
+
print("Welcome back", fname, sname,".")
86
103
else:
87
-
print("Welcome back", fname, sname,".")
88
-
else:
89
-
rerun=input("Error 1: The power option you have typed is not a proper power option. Press ENTER")
90
-
elifUtillityOption=="ver":
91
-
print("PythOS", PythOS_Ver)
92
-
print("CONFIDETIONAL PROPERTY! If leaked, please email me at captainawesomejnr@outlook.com.au .")
93
-
print("(C) Captainawesomejnr 2022. All rights reserved.")
94
-
95
-
elifUtillityOption=="settings":
104
+
rerun=input("Error 1: The power option you have typed is not a proper power option. Press ENTER")
105
+
elifUtillityOption=="ver":
106
+
print("PythOS", PythOS_Ver)
107
+
print("CONFIDETIONAL PROPERTY! If leaked, please email me at captainawesomejnr@outlook.com.au .")
108
+
print("(C) Captainawesomejnr 2022. All rights reserved.")
109
+
elifUtillityOption=="settings":
96
110
print("SETTINGS")
97
111
print("Here you can manage settings. Here are the settings you can manage:")
98
112
print("1. Processor type")
@@ -112,14 +126,14 @@ def load(fname, sname):
112
126
rerun=input("Error 3: Processor type selection didn't work. Maybe you made a typo? Press ENTER.")
113
127
else:
114
128
rerun=input("Error 2: Setting not found. Press ENTER")
115
-
elifUtillityOption=="launch":
116
-
print("App Lancher")
117
-
print("Here you can lanch one of the apps in PythOS. Here are the apps avalible:")
118
-
print("1. Calculator")
119
-
print("2. Don't click the button (*BETA*)")
120
-
print("3. Spy Messages")
121
-
LaunchOption=input("Type in the number of your option: ")
122
-
ifLaunchOption=="1":
129
+
elifUtillityOption=="launch":
130
+
print("App Lancher")
131
+
print("Here you can lanch one of the apps in PythOS. Here are the apps avalible:")
132
+
print("1. Calculator")
133
+
print("2. Don't click the button (*BETA*)")
134
+
print("3. Spy Messages")
135
+
LaunchOption=input("Type in the number of your option: ")
136
+
ifLaunchOption=="1":
123
137
CalcFirstNumber=float(input("Type in your first number: "))
124
138
CalcOperation=input("What operation would you like to use? (* = Times, / = Divided By, ^ = Power) ")
125
139
CalcSecondNumber=float(input("Type in the other number: "))
0 commit comments