开发者

Is there something similar to WPF DataTemplates in GTK/Glade?

I am coding a pyGTK application, and I'd like to change an input based on the user's selection from a ComboBox. For example, a user could select truck/car/van, and the input parameters would change corresponding to the type of vehicle.

Is there a way one can define the different sub-panels using G开发者_如何学Pythonlade? It would be easy to just define a new class for each different sub-panel, but is it possible to also do this in Glade?


In glade (at least for glade-3 that uses GtkBuilder), you can have any widget as a top-level widget so you can design those panels and then insert them into appropriate container.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜