当我从活动类生成不同类(继承的QWidget)的对象时, 它只是闪烁被调用的窗口。 如果我测试从导入的 python 页面调用窗口(作为本地运行),它会显示完整的窗口而不会出现闪烁错误。
IPSettingWindow.py
app = QApplication(sys.argv)
ex = IPSWindow()
ex.show()
sys.exit(app.exec_())
如果我们在本地运行,那么它会使用上面的代码运行(正确生成类对象)
def LoadIPSettings(self):
ipsw = ipsettingwindow.IPSWindow() # object of class of imported page(getting failed , with a blink of window)
所以,等待建议。