-
Notifications
You must be signed in to change notification settings - Fork 153
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
Add an option to image viewer to allow aspect ratio to be toggled between auto and equal #717
Conversation
123823a
to
13e0a3d
Compare
Done! Here's what it looks like: cc @jegpeek |
…io in the image viewer.
13e0a3d
to
63e15e1
Compare
awesome!! -Josh On Fri, Aug 21, 2015 at 3:00 PM, Thomas Robitaille <notifications@github.com
Dr. Joshua E G Peek STScI: 1 410 338 4561 |
@@ -74,6 +76,9 @@ def _setup_widgets(self): | |||
self.ui.slice_layout.addWidget(self.ui.slice) | |||
self._tweak_geometry() | |||
|
|||
self.ui.aspectCombo.addItem("Square Pixels", userData='equal') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've had some issues with the behavior of userData across different Qt bindings, though I don't remember the details. It's fine to leave this for now, but we should keep this in mind in case we see bug reports in the future
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok - I'll keep an eye out for issues there.
Cool, looks good. |
Thanks! |
Add an option to image viewer to allow aspect ratio to be toggled between auto and equal
See https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/glue-viz/Pa9rJ95KN5k/Utnokgf6AAAJ