如下所示:
self.findChild(QComboBox, "name")
self is class
first parameter is Type
second parameter is Id String
以上这篇PyQt5根据控件Id获取控件对象的方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持脚本之家。
超轻量级php框架startmvc
如下所示:
self.findChild(QComboBox, "name")
self is class
first parameter is Type
second parameter is Id String
以上这篇PyQt5根据控件Id获取控件对象的方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持脚本之家。