Jump to content

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


mr magoo

Recommended Posts

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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