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

Editor: Slider and SpinBox widgets attempt instantiation via range() #536

Open
GModal opened this issue Nov 20, 2024 · 0 comments
Open

Editor: Slider and SpinBox widgets attempt instantiation via range() #536

GModal opened this issue Nov 20, 2024 · 0 comments

Comments

@GModal
Copy link

GModal commented Nov 20, 2024

The Slider widget creation methods are set to range(), and number() for SpinBox by the editor. It's set in attr_class.

If attr_class is changed to 'Slider' or to 'SpinBox' in the editor, the change is persistent, and the script will run (and reload in the editor).

The saved files from the editor can be fixed, like so--

As saved:

        slider0 = range()
        slider0.attr_class = "range"

Change to:

        slider0 = Slider()
        slider0.attr_class = "Slider"

The incorrect scripts will neither run, nor load into the editor without the fix.

A python 3.12 compatibility issue? I'm running Ubuntu 24.04, with remi in a venv environment... There may be other widgets that also manifest this issue.

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