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

crash in remote code #98

Closed
jhalmen opened this issue Oct 15, 2020 · 0 comments
Closed

crash in remote code #98

jhalmen opened this issue Oct 15, 2020 · 0 comments

Comments

@jhalmen
Copy link
Contributor

jhalmen commented Oct 15, 2020

when using both a button and a slider to control the same parameter
if you're using the slider after pressing the button the gui crashes on this line:

widget.label.setText(widget.widgetName + ": {:.3f}".format(value))

with the following trace:

Traceback (most recent call last):
  File "//pywisp/pywisp/gui.py", line 1592, in <lambda>
    wid.valueChanged.connect(lambda value: self.remoteSliderSendParameter(wid, value))
  File "//pywisp/pywisp/gui.py", line 1574, in remoteSliderSendParameter
    self.remoteSliderUpdate(widget, value)
  File "//pywisp/pywisp/gui.py", line 1599, in remoteSliderUpdate
    widget.label.setText(widget.widgetName + ": {:.3f}".format(value))
AttributeError: 'NoneType' object has no attribute 'setText'

the widget seems to be set to MovablePushButton

pywisp doesn't even have to be connected for this crash to occur.

@TanDro TanDro closed this as completed Sep 9, 2021
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

2 participants