python

超轻量级php框架startmvc

PyQt5根据控件Id获取控件对象的方法

更新时间:2020-07-08 19:48 作者:startmvc
如下所示:self.findChild(QComboBox,"name")selfisclassfirstparameterisTypesecondparameterisIdString以上这篇PyQt5

如下所示:


self.findChild(QComboBox, "name") 

self is class

first parameter is Type

second parameter is Id String

以上这篇PyQt5根据控件Id获取控件对象的方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持脚本之家。