Elektrine lite

← Feed

@david@theblower.au

Post #4177566

2026-07-29 00:16 UTC

Extreme long shot, but… In a python script utilising PySide6 (QT6 library), why, if you have a large method, does calling it cause the interface to hang until it is finished. NB: making a smaller method that makes interface changes, then calls the larger method, doesn’t work either, none of the interface changes happen before it hangs. I have an MainWindow class bases on QMainWindow inside I have a QPushButton called runBtn I have a handler: self.runBtn.clicked.connect(self.buttonHandler) def buttonHandler(self, s): self.runBtn.setText("Running...") self.runBtn.setEnabled(False) self.makeSlides(True) The setText and setEnabled methods don’t do anything before the interface hangs. But if I comment out makeSlides, it does.

Replies (0)

No replies.