Skip to content

Commit

Permalink
fix accessing the impl layer from TogaStepper
Browse files Browse the repository at this point in the history
  • Loading branch information
samschott committed Jan 29, 2023
1 parent 4a35692 commit 8f5f250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cocoa/src/toga_cocoa/widgets/numberinput.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def onChange_(self, stepper) -> None:
@objc_method
def controlTextDidChange_(self, notification) -> None:
try:
value = str(self._impl.input.stringValue)
value = str(self.impl.input.stringValue)
# Try to convert to a decimal. If the value isn't a number,
# this will raise InvalidOperation
Decimal(value)
Expand Down

0 comments on commit 8f5f250

Please sign in to comment.