Horizontal radio button group is cluttered on macOS
https://github.com/openscopeproject/InteractiveHtmlBom/issues/452#issuecomment-2130729263
A minimally reproducible example:
import wx
class Frame(wx.Frame):
def __init__(self, title):
wx.Frame.__init__(self, None, title=title, pos=(150,150), size=(350,200))
panel = wx.Panel(self)
box = wx.BoxSizer(wx.VERTICAL)
highlightPin1Choices = [ u"None", u"All", u"Selected" ]
self.highlightPin1 = wx.RadioBox(panel, wx.ID_ANY, u"Highlight first pin", wx.DefaultPosition, wx.DefaultSize, highlightPin1Choices, 3, wx.RA_SPECIFY_COLS )
self.highlightPin1.SetSelection( 0 )
box.Add( self.highlightPin1, 0, wx.ALL|wx.EXPAND, 5 )
panel.SetSizer(box)
panel.Layout()
app = wx.App()
top = Frame("a")
top.Show()
app.MainLoop()
Upstream wxWidgets and wxpy (installed from homebrew, version 4.2.1 osx-cocoa (phoenix) wxWidgets 3.2.4):
KiCad bundled wxpy (started by /Applications/KiCad.app/Contents/Frameworks/Python.framework/Versions/3.9/bin/python3.9 example.py):
KiCad Version:
Application: KiCad PCB Editor arm64 on arm64
Version: 8.0.2, release build
Libraries:
wxWidgets 3.2.4
FreeType 2.13.2
HarfBuzz 8.3.0
FontConfig 2.15.0
libcurl/8.4.0 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.58.0
Platform: macOS Sonoma Version 14.3.1 (Build 23D60), 64 bit, Little endian, wxMac
Build Info:
Date: Apr 27 2024 22:24:31
wxWidgets: 3.2.4 (wchar_t,wx containers)
Boost: 1.84.0
OCC: 7.7.2
Curl: 7.87.0
ngspice: 42
Compiler: Clang 14.0.3 with C++ ABI 1002
Build settings:
Edited by Shaw Drastin