开发者

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

开发者 https://www.devze.com 2022-12-16 01:03 出处:网络
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

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

精彩评论

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