For example in the code below:
>>> from PyQt5.QtWidgets import *
>>> import sys
>>> app = QApplication(sys.argv)
>>> widget = QWidget()
>>> layout = QVBoxLayout()
>>> push_button = QPushButton("Hello")
>>> layout.addWidget(push_button)
>>> widget.setLayout(layout)
>>> push_button
<PyQt5.QtWidgets.QPushButton object at 0x7f52d2427700>
>>>
I would like to have access to <PyQt5.QtWidgets.QPushButton object at 0x7f52d2427700> from the widget object. Is it possible ?