Beta of new functions

This commit is contained in:
BarsTiger
2021-08-18 22:22:08 +03:00
parent 56e58979f6
commit dd796dbf35

View File

@@ -1,24 +1,26 @@
import json, os, shutil import json, os, shutil
def header(): def header():
print(r'''KOTIKOT, script by BarsTiger | print(r'''---------------------------------------------------------------------|
| KOTIKOT, script by BarsTiger |
_____ _______ ____ ____ | |
/ ____|__ __|/\ | _ \ | _ \ | |
| | __ | | / \ | |_) |_ _ _ _ | |_) | __ _ ___ ___ | _____ _______ ____ ____ |
| | |_ | | | / /\ \ | _ <| | | | | | | | _ < / _` / __|/ _ \ | / ____|__ __|/\ | _ \ | _ \ |
| |__| | | |/ ____ \ | |_) | |_| | |_| | | |_) | (_| \__ \ __/ | | | __ | | / \ | |_) |_ _ _ _ | |_) | __ _ ___ ___ |
\_____| |_/_/ \_\ |____/ \__,_|\__, | |____/ \__,_|___/\___| | | | |_ | | | / /\ \ | _ <| | | | | | | | _ < / _` / __|/ _ \ |
__/ | | | |__| | | |/ ____ \ | |_) | |_| | |_| | | |_) | (_| \__ \ __/ |
|___/ | \_____| |_/_/ \_\ |____/ \__,_|\__, | |____/ \__,_|___/\___| |
---------------------------------------------------------------------| __/ | |
|___/ |
---------------------------------------------------------------------|
''') ''')
def cls(): def cls():
print("\n" * 35) print("\n" * 34)
class menu: class menu:
def section(self): def section(self=0):
cls() cls()
header() header()
print("Select section") print("Select section")
@@ -28,7 +30,7 @@ class menu:
print("4 - Owning options") print("4 - Owning options")
print("0 - Exit") print("0 - Exit")
def outputmenu(self): def outputmenu(self=0):
print("What you want to do?") print("What you want to do?")
print("1 - Print all database") print("1 - Print all database")
print("2 - Print all items") print("2 - Print all items")
@@ -37,7 +39,7 @@ class menu:
print("5 - Print all items by price below this") print("5 - Print all items by price below this")
print("0 - Back") print("0 - Back")
def baseoptions(self): def baseoptions(self=0):
print("What you want to do?") print("What you want to do?")
print("1 - Create backup of opened database") print("1 - Create backup of opened database")
print("2 - Open another database") print("2 - Open another database")
@@ -197,4 +199,7 @@ while True:
input("To exit press Enter...") input("To exit press Enter...")
exit() exit()
elif doing == "yesimbetatester":
menu.section()