PyQt5根据控件Id获取控件对象

self.findChild(QComboBox, "name") 

self is class

first parameter is Type

second parameter is Id String

你可能感兴趣的:(程序/Python/笔记&试题)