开发者

wxPython change field on tab

开发者 https://www.devze.com 2022-12-22 01:47 出处:网络
I apologize for a simple question, but I did not see this in the tutorials. I have a very simple gui, but I would like the user to be able to press the TAB key and have it move from one input field t

I apologize for a simple question, but I did not see this in the tutorials.

I have a very simple gui, but I would like the user to be able to press the TAB key and have it move from one input field to another. I am using wxPython with 开发者_如何学CPython 2.6.


It should just work in the general case; what specific controls are you having issues with? You may need to pass wx.TAB_TRAVERSAL as a style, or if you need to manipulate the order, you can use the Move(After|Before)InTabOrder(otherControl) methods on the control.

See http://wiki.wxpython.org/Getting%20Started#How_to_get_tabs_to_work for examples of both of these techniques!

0

精彩评论

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

关注公众号