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

Cannot push virtual buttons #92

Open
carygravel opened this issue Jul 15, 2024 · 0 comments
Open

Cannot push virtual buttons #92

carygravel opened this issue Jul 15, 2024 · 0 comments

Comments

@carygravel
Copy link

carygravel commented Jul 15, 2024

Via the C-interface, it is perfectly possible to push virtual buttons, simply by using set_option() with an arbitrary value. The python bindings prevent this, however:

>>> import sane
>>> sane.init()
(16842753, 1, 1, 1)
>>> scanner=sane.open("test")
>>> scanner.enable_test_options = True
>>> scanner.button = True
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.10/site-packages/sane.py", line 196, in __setattr__
    raise AttributeError("Buttons don't have values: " + key)
AttributeError: Buttons don't have values: button
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