in PyQt5 Did I use 'self' as the parameter passed in to init the QLayout, so I don’t need the setLayout() method?

前端 未结 0 1135
甜味超标
甜味超标 2020-12-02 19:07
def __init__(self, parent=None):
    super().__init__(parent)
    self.layout = QtWidgets.QHBoxLayout(self)

Are the two effects the same?

<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题