refactor: enhance bcolors class with additional color properties
This commit is contained in:
10
main.py
10
main.py
@@ -15,8 +15,8 @@ import yaml
|
||||
INACTIVITY_LIMIT = 5 * 60 # 5 minutes
|
||||
catalogue_pid = None
|
||||
print_pid = None
|
||||
|
||||
database = Database()
|
||||
|
||||
lang = input("Enter language (de/en): ").strip().lower()
|
||||
if lang not in ["de", "en"]:
|
||||
print("Invalid language. Defaulting to English.")
|
||||
@@ -52,7 +52,6 @@ def main():
|
||||
while True:
|
||||
mednr = get_mednr_exempl()
|
||||
print("Mednr:", mednr)
|
||||
|
||||
pyautogui.hotkey("alt", "s")
|
||||
page_alive = work_on_page(page, mednr)
|
||||
if page_alive is False:
|
||||
@@ -64,10 +63,5 @@ def main():
|
||||
exit_print_mode()
|
||||
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
# time.sleep(5) # Wait for a few seconds before starting
|
||||
# print_new_signature("3 - PHFR: Katalog - aDIS/Client", "4 - PHFR(42): Exemplare - aDIS/Client", "004862920129")
|
||||
main()
|
||||
@@ -7,4 +7,28 @@ class bcolors:
|
||||
FAIL = '\033[91m'
|
||||
ENDC = '\033[0m'
|
||||
BOLD = '\033[1m'
|
||||
UNDERLINE = '\033[4m'
|
||||
UNDERLINE = '\033[4m'
|
||||
|
||||
@property
|
||||
def RED(self):
|
||||
return self.FAIL
|
||||
|
||||
@property
|
||||
def GREEN(self):
|
||||
return self.OKGREEN
|
||||
|
||||
@property
|
||||
def BLUE(self):
|
||||
return self.OKBLUE
|
||||
|
||||
@property
|
||||
def CYAN(self):
|
||||
return self.OKCYAN
|
||||
|
||||
@property
|
||||
def YELLOW(self):
|
||||
return self.WARNING
|
||||
|
||||
@property
|
||||
def MAGENTA(self):
|
||||
return self.HEADER
|
||||
Reference in New Issue
Block a user