enthought / enthought/traitsui

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

Open
#2,035 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
306
Forks
99
PR merge metrics
No merged PRs in 30d

Description

Code:

```python
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](https://github.com/enthought/traitsui/assets/114727315/36866f65-ee5b-49a9-9d47-e07bbb9b9435)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.