adafruit_macropad icon indicating copy to clipboard operation
adafruit_macropad copied to clipboard

`user.py` example throws AttributeError

Open 42Willow opened this issue 6 months ago • 0 comments

user.py

# user.py
from apps.home import HomeApp
from utils.constants import OS_SETTING, OS_MAC, PREVIOUS_APP_SETTING

app_settings = {
    OS_SETTING: OS_MAC,
    PREVIOUS_APP_SETTING: [],
}

DEFAULT_APP = lambda app_pad: HomeApp(app_pad, app_settings)

Error:

Current App = <HomeApp object at 0x2000ddf0>
Exception in event_stream, importing keyboard and releasing all keys.
Traceback (most recent call last):
  File "code.py", line 33, in <module>
  File "code.py", line 23, in <module>
  File "utils/apps/base.py", line 138, in run
  File "utils/apps/key.py", line 231, in on_focus
  File "utils/apps/base.py", line 160, in on_focus
  File "utils/apps/key.py", line 267, in pixels_on_focus
AttributeError: can't set attribute 'pixels_disabled'

42Willow avatar Jan 09 '24 08:01 42Willow