enthought / enthought/traitsui

Wrong error message for `Range` traits when excluding low and high

Open
#563 0 comments 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
Python
Stars
306
Forks
99
PR merge metrics
No merged PRs in 30d

Description

```
class RangeEditorDemo(HasTraits):
float_number = Range(value=0.5, low=0.0, high=1.0,
exclude_low=True, exclude_high=True)
traits_view = View(
Item('float_number', style='simple'),
title='RangeEditor',
resizable=True
)
demo = RangeEditorDemo()
demo.configure_traits()
```
When I am running something like above, especially with `exclude_low=True, exclude_high=True`, the error message on the dialog does not seem correct:
Screen Shot 2019-06-04 at 1 16 34 PM
However, the error message for `exclude_low=False, exclude_high=False` seems correct:
Screen Shot 2019-06-04 at 2 07 03 PM

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.