Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user.py example throws AttributeError #19

Open
42Willow opened this issue Jan 9, 2024 · 0 comments
Open

user.py example throws AttributeError #19

42Willow opened this issue Jan 9, 2024 · 0 comments

Comments

@42Willow
Copy link

42Willow commented Jan 9, 2024

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant