Skip to content

Commit 371a878

Browse files
authored
fix: Properly remove wx buttons labels (#145)
* WIP: Remove label on Windows * Remove size get/set
1 parent 39f66b8 commit 371a878

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ndv/views/_wx/_array_view.py

+2
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ def _add_icon(btn: wx.AnyButton, icon: str) -> None:
6262

6363
icon_path = svg_path(icon)
6464
bitmap = wx.BitmapBundle.FromSVGFile(str(icon_path), wx.Size(16, 16))
65+
# Note - label must be cleared first so bitmap is center-aligned
66+
btn.SetLabel("")
6567
btn.SetBitmapLabel(bitmap)
6668

6769

0 commit comments

Comments
 (0)