git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

execution timing of the method QWidget.show()


Search for PyQt mailing list will get you to https://www.riverbankcomputing.com/mailman/listinfo/pyqt

Barry

> On 8 Jul 2020, at 21:17, artis.paintre at gmail.com wrote:
> 
> ?I might be wrong but since I have not found anygroup newsgroup dedicated to PyQt5.
> 
> My small program is expected to show a window GUI for 4 seconds before changing it, so I naively coded:
> 
> "...
> ...
> # codes to set up the GUI
> ...
> F0.show() # F0 being a QMainWindow object
> time.sleep(4)
> ...
> # codes to change the GUI set up
> ...
> F0.update() 
> 
> "
> 
> What happens: The a blank window is displayed, freezes for 4 seconds then second set up is displayed, the original set up is not displayed.
> 
> Why is not the original set up displayed? 
> 
> Obviously, if I remove the codes for the second set up, and the "time.sleep(4)" instruction, the original set up is displayed immediatly after I launch the execution.
> -- 
> https://mail.python.org/mailman/listinfo/python-list
>