amosth 9 Posted November 27, 2017 Share Posted November 27, 2017 (edited) 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 September 3, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Premium North 1193 Posted November 28, 2017 Premium Share Posted November 28, 2017 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 More sharing options...
amosth 9 Posted December 1, 2017 Author Share Posted December 1, 2017 no susseful man =/ sorry. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now