Skip to content

Commit 7bfdbf8

Browse files
authored
replace underscore on checkbox (#293)
1 parent 1665aa8 commit 7bfdbf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

magicgui/widgets/_bases/button_widget.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def __init__(self, text: Optional[str] = None, **kwargs):
2828
)
2929
text = text or kwargs.get("label")
3030
super().__init__(**kwargs)
31-
self.text = text or self.name
31+
self.text = (text or self.name).replace("_", " ")
3232

3333
@property
3434
def options(self) -> dict:

0 commit comments

Comments
 (0)