Skip to content

Commit

Permalink
Fix regression with BoundsEditor introduced when removing deprecate…
Browse files Browse the repository at this point in the history
…d `format` trait (#2025)

Regression introduced in
#2002.
  • Loading branch information
ericpre authored Jan 8, 2024
1 parent b748ca1 commit a00f0c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion traitsui/qt/extra/bounds_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class _BoundsEditor(Editor):
max = Any()
low = Any()
high = Any()
format = Str()
format_str = Str()

def init(self, parent):
"""Finishes initializing the editor by creating the underlying toolkit
Expand All @@ -41,6 +41,8 @@ def init(self, parent):
self.max = factory.max
self.min = factory.min

self.format_str = factory.format_str

self.evaluate = factory.evaluate
self.sync_value(factory.evaluate_name, "evaluate", "from")

Expand Down

0 comments on commit a00f0c3

Please sign in to comment.