From cf91e6a57a18d883e7b6a5e0458fc2e5e3881ffd Mon Sep 17 00:00:00 2001 From: lilly Date: Wed, 5 Apr 2023 19:53:40 +0900 Subject: [PATCH] msg --- ConsoleColor.py | 1 + wildcards.py | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ConsoleColor.py b/ConsoleColor.py index 4b6c659..cce625d 100644 --- a/ConsoleColor.py +++ b/ConsoleColor.py @@ -22,6 +22,7 @@ custom_theme = Theme({ }) console = Console(theme=custom_theme) print=console.log +ccolor="bright_yellow" """ print("test", style="bold white on blue") print("test", style="bold green") diff --git a/wildcards.py b/wildcards.py index ca3a4d6..0c8af0f 100644 --- a/wildcards.py +++ b/wildcards.py @@ -3,9 +3,9 @@ import random import re import os if __name__ == os.path.splitext(os.path.basename(__file__))[0] or __name__ =='__main__': - from ConsoleColor import print, console + from ConsoleColor import print, console, ccolor else: - from .ConsoleColor import print, console + from .ConsoleColor import print, console , ccolor #print(__file__) #print(os.path.basename(__file__)) #print(os.getcwd()) @@ -155,7 +155,9 @@ class wildcards: # 실행기 def run(text): - + if text is None or type(text) is not str: + print("[red]text is not str : [/red]",text) + return None wildcards.card_load() #print(f"text : {text}")