开发者

Gtk GUI - Select next control

When Gtk GUI is started seems that Gtk sets "optimal" focus order to his controls which can be switched (beside usual way) with arrows. Then we can easily move (modify) focus order with "grab" to whatever enabled widget. In case of GtkEntry, after pressing enter key "activated" event raises where I do validation and then I would like to jump to next control, like I开发者_运维问答 was pressed "down arrow". For now I transfer focus with "grab" and explicit name of wanted control but I would like to jump to "next" control of gtk's order without referencing it. Also I transfer focus manually in keypress event of entry but this is also too fixed and unwanted way. If I woud be able to set focus to "next control" this can make later modification in GUI much simpler.

Is this possible and how? Thanks.


The PyGTK FAQ has one way to set tab order and two different ways to traverse it. These are likely the same in whatever language you're using.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜