@staticmethod
    def patterns():

        if not hasattr(Term, "_patterns"):
            Term._patterns = {}
            if Term.colors():
                Term._patterns["url"] = re.compile(
                    r'http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|'
                    r'(?:%[0-9a-fA-F][0-9a-fA-F]))+'
                )
                Term._patterns["name"] = re.compile(r'(^|[^@\w])@(\w{1,15})\b')
                Term._patterns["hashtag"] = re.compile(r'(^|[ ])#\w+')
        return Term._patterns
For the generic Widget, this function allows to setup the children arrangement.
dataset/ETHPy150Open a-tal/pyweet/pyweet/colors.py/Term.patterns--crossover with--dataset/ETHPy150Open dddomodossola/remi/remi/gui.py/Widget.set_layout_orientation