Beta of new functions
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
import json, os, shutil
|
import json, os, shutil
|
||||||
|
|
||||||
def header():
|
def header():
|
||||||
print(r'''KOTIKOT, script by BarsTiger |
|
print(r'''---------------------------------------------------------------------|
|
||||||
|
KOTIKOT, script by BarsTiger |
|
||||||
|
|
|
||||||
|
|
|
|
||||||
_____ _______ ____ ____ |
|
_____ _______ ____ ____ |
|
||||||
/ ____|__ __|/\ | _ \ | _ \ |
|
/ ____|__ __|/\ | _ \ | _ \ |
|
||||||
@@ -15,10 +17,10 @@ def header():
|
|||||||
''')
|
''')
|
||||||
|
|
||||||
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()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user