开发者

Navigating through widgets using the TAB key

What should I do in order to allow users to navigate through widgets using the Tab key (in either Gtk or any deri开发者_如何学Govative like gtkmm, pyGtk)?


This is build into the default "key_press_event" signal handler. If you set your own handler you must return FALSE from this handler because a TRUE means you have handled the key and no further processing is done. You can use this to avoid the default tabbing.

And i would like to add a question here, because i have no idea how i can do the focus-next-widget, focus-prev-widget action programmatically.


Is tabbing through your controls not working? This should work out of the box as you build up your forms. To customize the order of moving through the widgets as you tab, you use the set_focus_chain methods: gtk, pygtk, gtkmm.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜