-
Notifications
You must be signed in to change notification settings - Fork 51
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
IOT instruction
with list in guiclass
#690
Comments
guiclass
IOT instruction
with list in guiclass
Hey @hanjinliu, would you mind taking a look at this? I think it's an issue in the ListWidget here, and you know that widget better than I do |
@tlambert03 sure, I'll take a look at it in a few days. |
I guess this error is related to the implementation of from dataclasses import field, dataclass
from magicgui.schema._ui_field import build_widget
@dataclass
class A:
x: list[str] = field(default_factory=list)
i: int = 2
a0 = build_widget(A)
a0.show(True) |
if you think it's specific to guiclass (and how it interacts with the list widget), could it be related to the signature of the callback that is connected to a change event within the list widget? one "gotcha" in the psygnal changed event is that it provides two arguments (both the new value and the old value) ... so that's one thing that comes to mind here, in case anything was expecting a single value anywhere in the list widget? (edit: that's one thing that will be different about using |
I found that this issue was a combination of two bugs. 1. Bug when using
|
This relates to #674 as I'm testing
guiclass
.Code
Environment (please complete the following information):
pyqt5-qt5==5.15.16
magicgui==0.10.0
Steps
Result
The text was updated successfully, but these errors were encountered: