Skip to content

"bind" incompatible with Container-like ValueWidgets #661

Open
@hanjinliu

Description

@hanjinliu

Describe the bug

Cannot use "bind" option with ListEdit and TupleEdit in the main branch version.
See #658 (comment)

To Reproduce

from magicgui import magicgui

@magicgui(x={"bind": [1]})
def func(x: list[int]):
    print(x)

func.show(True)
TypeError: ListEdit got an unexpected keyword argument: bind

Expected behavior
"bind" should be processed similarly as other value widgets.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: Windows
  • backend: PyQt5 5.15.10
  • magicgui version 0.8.4.dev12+g1479122

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