@chrishuck No idea, but that highlight is called focus and QRadioButton seems to have some methods related to it.
@chrishuck Glad it works. I don't see any replies other than mine. Either instances of other repliers don't want to federate with mine or my instance is just bugged.
@chrishuck Oh, and Qt Python docs for QRadioButton might only list methods specific to QRadioButton, not the inherited ones.
@elgregor Thanks for the tips and the link to all of the members. I didn’t look up the tree to QWidget to see that it has the .setFocus() method that QRadioButton inherits. I learned something new today!
I’m more of a casual programmer that isn’t as fluent in how a lot of modern documentation is set up to figure out how to do what I want. I learn a little more each time, but I’d never done any real GUI programming for my FreeCAD macro until I wanted it for this new version.
@chrishuck See https://doc.qt.io/qt-6/qradiobutton-members.html (assuming FreeCAD uses Qt6 and not an older version). BTW you might want to use `setChecked` instead of `toggle` to avoid bugs in the future if you change something that will cause a button to be enabled and then `toggle` will actually disable it.
@elgregor That is correct. The .setFocus() method does what I want, as mentioned in the reply above 👆 .
I looked for it in the Qt Python docs for QRadioButton, but I didn’t see any mention of that method. I thought I’d just missed it.
Thanks for relying!