openscopeproject / InteractiveHtmlBom

Interactive HTML BOM generation plugin for KiCad, EasyEDA, Eagle, Fusion360 and Allegro PCB designer
MIT License
3.73k stars 476 forks source link

"Highlight first pin" option is cluttered in macOS #452

Open showier-drastic opened 4 months ago

showier-drastic commented 4 months ago
image

The three radio buttons are overlapped.

Plugin version: 2.9.0 Kicad version: 8.0.2 on macOS 14.3.1 (ARM)

showier-drastic commented 4 months ago

This seems to be a bug of wxWidgets (or wxpy) bundled by KiCad. Reported upstream (https://gitlab.com/kicad/code/wxWidgets/-/issues/14).

A minimal 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:

image

KiCad bundled wxpy:

image
qu1ck commented 4 months ago

Thanks for checking if it reproduces on upstream, it does seem like something is wrong in kicad's fork of wx.