Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个 pyGTK 应用程序,我想根据用户从 ComboBox 中的选择来更改输入。例如,用户可以选择卡车/汽车/货车,输入参数会根据车辆类型而变化。
有没有一种方法可以使用 Glade 定义不同的子面板?为每个不同的子面板定义一个新类很容易,但是在 Glade 中也可以这样做吗?
在 glade 中(至少对于使用 GtkBuilder 的 glade-3 而言),您可以将任何小部件作为顶级小部件,以便您可以设计这些面板,然后将它们插入适当的容器中。