kbaskett248 / adafruit_macropad

45 stars 21 forks source link

`user.py` example throws AttributeError #19

Open 42Willow opened 9 months ago

42Willow commented 9 months ago

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'