Jump to content

Autopotion Python


Recommended Posts

Olá

Eu ia usar o google tradutor mais a tradução é horrível..

I use google translate plus a horrible translation ..

 

No meu idioma vou tentar explicar de uma forma mais clara do que eu preciso, e se puderem ajudar eu agradeço ^^

 

Ho to change function on click > > https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

for >> https://pastebin.com/RxwahD87

My game.py >> https://pastebin.com/qzhpnUnb

 

Eu tentei mais não consegui sorry =/

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Premium

Dude you just have to import the module and run it when the button is clicked, if you can`t do that then im sorry but go back to the basics.

I`ll help you with an example:

filename autopotions.py

class sampleclass:
    @staticmethod
    def sampledef():
        print("Imported successfully")

file importer.py

from autopotions import sampleclass as f

def start():
    f.sampledef()

start()    

    

 

or without class/static methods:
 

class sampleclass:
    def sampledef(self):
        print("Imported successfully")
from autopotions import sampleclass

def start():
    Sampleclass = sampleclass()    
    Sampleclass.sampledef()
    
start()

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.