【发布时间】:2012-11-21 21:58:53
【问题描述】:
我刚开始使用 pyqt4 并且一直坚持如何从另一个组合框更改组合框列表。是否有某种类型的示例说明如何使用此方法。
我是否使用 if, else 语句来更改 combobox_2 的选项?
例如
Combobox_1 有一个 1,2,3 的列表。 Combobox_2 具有 a,b,c 或 d,e,f 或 g,h,i 的列表。
如果在 Combobox_1 中选择了 1,Combobox_2 会显示 a,b,c。
如果在 Combobox_1 中选择了 2,Combobox_2 将显示 d,e,f。
如果在 Combobox_1 中选择了 3,Combobox_2 将显示 g,h,i。
谢谢
【问题讨论】:
标签: python combobox pyqt4 qt-designer qcombobox