Jump to content

How to call the sleep method in classes outside of main?


Recommended Posts

Posted (edited)

I've made another class that aids me in getting some work done in my script, but I need it to sleep as it would if all my code was in the main class. Is this possible?

 

Normally I would do import main; but it doesn't work in this case. The sleep function comes from the Script extension of main.

 

Thank you for your time

Edited by mr magoo
Posted
1 hour ago, mr magoo said:

I've made another class that aids me in getting some work done in my script, but I need it to sleep as it would if all my code was in the main class. Is this possible?

 

Normally I would do import main; but it doesn't work in this case. The sleep function comes from the Script extension of main.

 

Thank you for your time

It's a static method. You don't need an instance

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...