Skip to content
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

BoundsEditor: Slidebar cannot be adjusted when max value slider overlaps with min value slider #2035

Open
sachin-nair-shell opened this issue Jul 28, 2023 · 2 comments

Comments

@sachin-nair-shell
Copy link

Code:

from traits.trait_types import Range, Float
from traits.has_traits import HasTraits
from traitsui.api import Item, View
from traitsui.qt4.extra.bounds_editor import BoundsEditor


class Test(HasTraits):
    valueFilter = Range(5.0, 10.0)

    min = Float(5.0)
    max = Float(10.0)

    view = View(
        Item('valueFilter',
            editor=BoundsEditor(
                low_name='min',
                high_name='max',
                format='%.2f')
        )
    )

Test().configure_traits()

In BoundsEditor, moving the max value slider to the complete left (overlapping with min value slider) doesn't allow the sliders to move anymore.

BoundsEditor

@corranwebster
Copy link
Contributor

Thanks for the report. As a work-around, does using the text field work to change it, or is it stuck?

@sachin-nair-shell
Copy link
Author

Thanks for the report. As a work-around, does using the text field work to change it, or is it stuck?

Yes, that's the work-around to make the slider working again, by changing the max value text field.

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

No branches or pull requests

2 participants