Skip to content

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Sep 17, 2018

As of master, the qt editor is broken when editing an axes that contains
an image throws an error when clicking OK. This is because self.data
needs to be modified in-place in FormWidget.setup, as FormWidget.get
later checks some explicit types in there.

This means, as a side note, that passing a tuple instead of a list to
generate a QComboBox is broken (one can test that by modifying the
example at the bottom of the module -- the results are different
depending on whether 'list2' is a list or a tuple) but that's something
we can deal with some other day...

Partial revert of #11684 (well, I naively assumed that the base code was
correct...).

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

As of master, the qt editor is broken when editing an axes that contains
an image throws an error when clicking OK.  This is because `self.data`
needs to be modified *in-place* in FormWidget.setup, as FormWidget.get
later checks some explicit types in there.

This means, as a side note, that passing a tuple instead of a list to
generate a QComboBox is broken (one can test that by modifying the
example at the bottom of the module -- the results are different
depending on whether 'list2' is a list or a tuple) but that's something
we can deal with some other day...
@anntzer anntzer added this to the v3.0 milestone Sep 17, 2018
@anntzer anntzer added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Sep 17, 2018
@tacaswell tacaswell merged commit ef04ad9 into matplotlib:master Sep 17, 2018
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Sep 17, 2018
@anntzer anntzer deleted the formlayout branch September 17, 2018 16:21
tacaswell added a commit that referenced this pull request Sep 17, 2018
…142-on-v3.0.x

Backport PR #12142 on branch v3.0.x (Unbreak formlayout for image edits.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy