class Form(QMainWindow):
    def __init__(self, parent=None):
        super(Form, self).__init__(parent)
        self.createGui()

    def createGui(self):
        self.btnScrapProduct = QPushButton('&Scrap Product')
        self.btnScrapProduct.clicked.connect(self.scrapProductAction)
        self.browser = QTextBrowser()

        layout = QVBoxLayout()
        layout.addWidget(self.browser)
        layout.addWidget(self.btnScrapProduct)
        widget = QWidget()
        widget.setLayout(layout)

        self.setCentralWidget(widget)
        self.setWindowTitle('Betros.')
        screen = QDesktopWidget().screenGeometry()
        self.resize(screen.width() - 150, screen.height() - 150)

    def scrapProductAction(self):
        self.betrosProduct = BetrosProduct()
        self.betrosProduct.start()
        self.betrosProduct.notifyProduct.connect(self.productStatus)

    def productStatus(self, data):
        self.browser.append(data)
 def scrapProductAction(self):
     self.betrosProduct = BetrosProduct()
     self.betrosProduct.start()
     self.betrosProduct.notifyProduct.connect(self.productStatus)