Mar-09-2023, 04:38 PM
Thanks a lot! You really help
I change code a little
It is not possible to import the LabelBase class from the standard library? But I don't understand why
I change code a little
menu_options = file_filter(os.listdir()) max_length = len(menu_options) for i in range(0, max_length, 1): print( "[{}] {}".format(i, menu_options[i])) #pnt20"1234567890123456789") print("[Press number 0-9]") try: exec(open("simplechat.py").read()) except Exception as err: print(f"Unexpected {err=}, {type(err)=}")And get this message
Unexpected err=no module named 'adafruit_display_text.LabelBase', type(err)=<class 'ImportError'>According to the traceback from my post, import LabelBase takes place in label.py
It is not possible to import the LabelBase class from the standard library? But I don't understand why