为下拉框添加事件:
self.comboboxNote.currentIndexChanged.connect(
lambda: self.WrittingNotOfOther(self.comboboxNote.currentIndex())) # 点击下拉列表,触发对应事件
添加对应方法:
def WrittingNotOfOther(self, tag):
if tag == 4:
print('点到了第4项 ...')