Skip to content

ValidatedEntryBox keeps the success tick while an invalid value is typed #271

Done

Description

@Felix-Mallinder

Description:

ValidatedEntryBox only validates on focus out and Return. A success tick from an earlier valid value stays while an invalid value is typed, and the error only appears when the form is submitted.

Example: typing test into a float entry kept showing the tick.

How to replicate:

Create a ValidatedEntryBox(value_type=float), enter 50 and tab out (tick shows), then click back in and type test without leaving the box: the tick stays and no error is shown.

Expected behaviour:

Validate as the value changes, so an invalid value loses the tick and shows its error straight away. An empty optional entry shows neither. Add validate_on_change=False to keep the old behaviour.

Test file(s):

Python_Engine/Python/tests/test_bhom_tkinter_ui.py::test_widget_validation

Activity

  1. added
    type:bug
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bug

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions