I have 4 spinctrls in my app. When I click on them, I want all their content to be selected instantly. And another thing is, I need to make them tab traversal. Can you help me with some sort开发者_运维问答 of code to do this task?
Thanks in advance.
You need to catch EVT_SPIN or EVT_SPINCTRL and in your handler, you can select all the values by calling each of the control's GetValue method. In the wxPython demo, it seems to support tab traversal. I'm not sure what's going on with yours. Did you try the FloatSpin widget as an alternative?
精彩评论