hardy89 15 Posted February 23, 2018 Share Posted February 23, 2018 Hello ! Sorry for my bad english.. I would like to know how I can use a fonctions defined in game.py since the uiinventory.py... It's simple question but I don't find how i can do this.. Thank you ! Link to comment Share on other sites More sharing options...
Premium WeedHex 635 Posted February 23, 2018 Premium Share Posted February 23, 2018 import game self.BlaBla = game.ClassNameWhereIsTheFunction() self.BlaBla.FunctionToUse() 1 Link to comment Share on other sites More sharing options...
hardy89 15 Posted February 23, 2018 Author Share Posted February 23, 2018 If I do that Python tells me that he is missing an argument Link to comment Share on other sites More sharing options...
Forum Moderator VegaS™ 10244 Posted November 27, 2018 Forum Moderator Share Posted November 27, 2018 root/game.py # Search for: self.interface = interfaceModule.Interface() # Replace with: self.interface = interfaceModule.Interface(self) root/interfaceModule.py # Search for: def __init__(self): systemSetting.SetInterfaceHandler(self) # Replace with: def __init__(self, wndGame): self.wndGame = wndGame systemSetting.SetInterfaceHandler(self) root/uiInventory.py wndGame = self.interface.wndGame if wndGame: wndGame.StartAttack() # Function from game.py 1 Check my GitHub Profile Click to find all the threads started by me [TOOL] Text file loader + JSON 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