def __init__(self, img): splash_pix = QPixmap(img) self.splash = QSplashScreen(splash_pix, Qt.WindowStaysOnTopHint) self.splash.setMask(splash_pix.mask()) self.splash.show() for i in range(100): time.sleep(0.01) QApplication.processEvents()
def update_spectrogram(self): if self.spectrogram is not None: self.axes.clear() self.axes.imshow(self.spectrogram, aspect="auto", origin="lower", cmap="hot") self.axes.grid(None) self.axes.set_ylabel("Freq. [bin]") self.axes.set_xlabel("Time [frame]") self.fig.tight_layout() self.canvas.draw() QApplication.processEvents()
def __init__(self, img): splash_pix = QPixmap(img) self.splash = QSplashScreen(splash_pix, Qt.WindowStaysOnTopHint) self.splash.setMask(splash_pix.mask()) self.splash.show() QApplication.processEvents()