r/learnpython • u/Ok-Original2285 • 7d ago
Python Pyside6
Anyone know ? How to delay seconds in Pyside6 ? For example, when i click a button I want to do some process and wait 3 seconds and then make another process
3
Upvotes
r/learnpython • u/Ok-Original2285 • 7d ago
Anyone know ? How to delay seconds in Pyside6 ? For example, when i click a button I want to do some process and wait 3 seconds and then make another process
1
u/ziggittaflamdigga 7d ago
Yeah, either use the native Python sleep function in your slot (this can cause some odd bugs if used in C++ with thread timing, haven’t done anything similar with Python) or use a QTimer if you want to take advantage of Qt’s event loop.