【发布时间】:2019-12-08 05:35:09
【问题描述】:
我正在与QComboBox 在PyQt5 合作。我希望QComboBox 中的每个项目都保存一个值。为了证明我的想法,我的 firstC 中有 3 个项目,名为 USD, EUR, BGN
我希望每个项目都有一个值,例如 USD 能够在控制台上 print('1'),第二个项目到 (EUR) print('2') 等等...
My idea behind this is, when an Item in the QComboBox is selected, to hold a value.
【问题讨论】: