开发者

Make Spinctrl selected when activated in WxPython

开发者 https://www.devze.com 2023-03-09 06:07 出处:网络
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

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消