Skip to content

Commit

Permalink
replace underscore on checkbox (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 authored Oct 4, 2021
1 parent 1665aa8 commit 7bfdbf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magicgui/widgets/_bases/button_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self, text: Optional[str] = None, **kwargs):
)
text = text or kwargs.get("label")
super().__init__(**kwargs)
self.text = text or self.name
self.text = (text or self.name).replace("_", " ")

@property
def options(self) -> dict:
Expand Down

0 comments on commit 7bfdbf8

Please sign in to comment.