Joined: 09 May 2003 Posts: 25791 Location: The netherlands
Posted: Wed May 22, 2013 3:57 pm Post subject:
yes
Code:
sleep(milliseconds)
will pause the thread executing that command for the specified number of milliseconds
Keep in mind that the main gui thread tends to be the one executing the code when you execute it from the gui, so it will cause a freeze for the specified amount of time.
If you don't want that freeze try a timer instead _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping
will pause the thread executing that command for the specified number of milliseconds
Keep in mind that the main gui thread tends to be the one executing the code when you execute it from the gui, so it will cause a freeze for the specified amount of time.
If you don't want that freeze try a timer instead
Thanks, but I tried
Code:
sleep(1000) print("asdf")
It didn't pause, and immediately printed "asdf" without waiting. _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum