I’m working on some UI stuff and on a button radio group. The button is class and I can put a few buttons into a button radio group, so only one button can be toggled. Now I have a callback for the buttons itself to use it as single button. When I add the button to a button group, the callback is exchanged with a callback into the button group. That works so far. But then, when I want to call the callback of my main function, it gives me an error. Even calling functions of the button group class gives me an error. It seems like setting a callback to a class function with self.callback can call the callback, but I’m not really back in the original class (self)?
Some code is worth a thousand words, but I have to post everything now. Its a main file, where some buttons are created. Press one of the toggle buttons on the right to see the error. Then you need the buttonC, ButtonRadioGroupC and FontC.