In the Variable Explorer, if one opens a tuple and double clicks on one of the elements to edit, the field becomes editable and the user can enter, modify or delete text. However, upon hitting return/okay, the changes are (of course, as they should be) discarded. It would seem for consistency with tuples' immutability and to minimize new user confusion about their changes not being saved, that it would be best to make the field selectable (e.g. can select text like a text box as you can currently) but not editable. I presume there's a way to do that by selecting a different type or parameter for the Qt text field object?
What steps will reproduce the problem?
tup = ("foo", "bar", 42)
What is the expected output? What do you see instead?
Expected: When double clicked, text becomes selectable as if it were a text field, but cannot be changed/edited.
Actual: Field can be edited like any other text box, but changes of course discarded when clicked off of/"accepted"
IPython >=4.0 : 6.1.0 (OK)
cython >=0.21 : 0.26.1 (OK)
jedi >=0.9.0 : 0.10.2 (OK)
nbconvert >=4.0 : 5.3.1 (OK)
numpy >=1.7 : 1.13.3 (OK)
pandas >=0.13.1 : 0.20.3 (OK)
pycodestyle >=2.3: 2.3.1 (OK)
pyflakes >=0.6.0 : 1.6.0 (OK)
pygments >=2.0 : 2.2.0 (OK)
pylint >=0.25 : 1.7.4 (OK)
qtconsole >=4.2.0: 4.3.1 (OK)
rope >=0.9.4 : 0.10.5 (OK)
sphinx >=0.6.6 : 1.6.3 (OK)
sympy >=0.7.3 : 1.1.1 (OK)
@CAM-Gerlach, do you want to take a look at this one? It should be an easy fix.
@ccordoba12 _Giggles nervously_ Sure, I can give it a look sometime over the next few days, if you think its easy enough (I'm visiting my family at the moment so it might not be right away). Should I base it against 3.x or master? Not sure if it would count as an enhancement or bug fix.
Should I base it against 3.x or master?
3.x. You can tell what branch you need to use by looking at the Milestone tag on the right. If it starts with 3.2 is for 3.x , else it's for master
Well I'm a silly goose, haha—I usually notice when a version tag is added, but somehow missed it this time. Thanks.
@CAM-Gerlach you will probably want to have a look at the collectioneditor file and more specifically to the BaseTableView and CollectionsEditorTableView classes (I think). Do not hesitate to ask if you need guidance.
Thanks! Will do as soon as I get a break from family time.
C.A.M. Gerlach
On 11 December 2017 at 16:37, Prikers notifications@github.com wrote:
@CAM-Gerlach https://github.com/cam-gerlach you will probably want to
have a look at the collectioneditor
https://github.com/spyder-ide/spyder/blob/3.x/spyder/widgets/variableexplorer/collectionseditor.py
file and more specifically to the BaseTableView
https://github.com/spyder-ide/spyder/blob/3.x/spyder/widgets/variableexplorer/collectionseditor.py#L626
and CollectionsEditorTableView
https://github.com/spyder-ide/spyder/blob/3.x/spyder/widgets/variableexplorer/collectionseditor.py#L1139
classes. Do not hesitate to ask if you need guidance.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/spyder-ide/spyder/issues/5953#issuecomment-350866373,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQQxG2vo7Ks_ecm0qGRee-0OQ8FPcVdMks5s_aCWgaJpZM4Q8r6N
.