I found a bit more documentation that I had overlooked- it seems that I need to somehow listen for wx events in my non-gui class to detect togglebutton state changes. The example in the example is the inverse of what I want. Do do I go about listening to the wx event loop?
Should I just make my class an invisible frame?