Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

Issues with reprs #55

Open
ceball opened this issue Jun 27, 2017 · 1 comment
Open

Issues with reprs #55

ceball opened this issue Jun 27, 2017 · 1 comment

Comments

@ceball
Copy link
Member

ceball commented Jun 27, 2017

I will split this issue up into smaller issues describing what I think is best to do; just noting various issues for now...

For this example code:

import param
import paramnb
class Something(param.Parameterized):
    a = param.Number(default=1)

s = Something()
class SomeFn(param.ParameterizedFunction):
    a_dict = param.Dict(default={'s':s})
    a_list = param.List(default=[s])
    a_param = param.Parameter(default=s)
    a_selector = param.ObjectSelector(objects=[s])

f = SomeFn.instance()
paramnb.Widgets(f)

Inconsistent reprs

screen shot 2017-06-27 at 12 37 54 pm

Confusion about editing

screencast 2017-06-27 12-39-28

(Note re. above: it's not clear because of the loop, but once it's gone orange there's no way back except recreating the widgets.)

screencast 2017-06-27 12-55-22

@philippjfr
Copy link
Member

Yeah not sure what to do here yet, the text boxes are set up to handle python literals, parameterized objects weren't considered.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants