Skip to content

How to change the disabled property of put_button in pin_on_change #435

@kitty-eu-org

Description

@kitty-eu-org

Note: For inquiries while using PyWebIO or questions that might be helpful to others, please consider moving to Discussions for posting.

BUG Description
How to change the disabled property of put_button in pin_on_change,Because put_button doesn't have a name, so I can't change the disabled property through pin_on_change, I try to do it with use_scope, unfortunately it doesn't work, my idea is that with user input, disabled change from True to False, so the user can click this button
A clear and concise description of what the bug is and how to reproduce it.

If the browser console reports an error or the script throws an exception, please also report them.

Environment Information

  • OS and Version: macos
  • Browser and Version: chrome
  • Python Version: Use python3 --version to view:
  • python3.8
  • PyWebIO Version: Use python3 -c "import pywebio;print(pywebio.__version__)" to view
  • pywebio:1.6.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions