Formatting

This commit is contained in:
Firepup Sixfifty 2023-11-18 10:01:40 -06:00
parent b038e59b4c
commit 5e4519301c
Signed by: Firepup650
GPG key ID: 7C92E2ABBBFAB9BA
2 changed files with 13 additions and 3 deletions

View file

@ -1,6 +1,7 @@
def build(): def build():
from os import system as cmd from os import system as cmd
from editor import edit from editor import edit
cmd("clear") cmd("clear")
# useEditor = input("Run Version Editor (Y|*)? ").upper() # useEditor = input("Run Version Editor (Y|*)? ").upper()
# if useEditor == "Y": # if useEditor == "Y":

15
main.py
View file

@ -10,13 +10,22 @@ print("Should be nothing from here")
import package.src.firepup650 as fp import package.src.firepup650 as fp
print("Until here (Half-second sleep)") print("Until here (Half-second sleep)")
fp.sleep(.5) fp.sleep(0.5)
bob = fp.menu({"Yes":"Y", "No": ""}, "(If owner) Build?") bob = fp.menu({"Yes": "Y", "No": ""}, "(If owner) Build?")
system("clear") system("clear")
if environ["REPL_OWNER"] == "Firepup650" and bob == "Y": if environ["REPL_OWNER"] == "Firepup650" and bob == "Y":
build() build()
exit() exit()
else: else:
print(fp.menu({"a": "hi", "Some fairly long second test case": ["a", "b", "c"], "A third test": 0}, "Test menu")) print(
fp.menu(
{
"a": "hi",
"Some fairly long second test case": ["a", "b", "c"],
"A third test": 0,
},
"Test menu",
)
)
fp.console.warn("Test Warning") fp.console.warn("Test Warning")
fp.e("No demo yet!") fp.e("No demo yet!")