rawpython / remi

Python REMote Interface library. Platform independent. In about 100 Kbytes, perfect for your diet.
Apache License 2.0
3.53k stars 403 forks source link

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

Open GModal opened 6 days ago

GModal commented 6 days ago

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.