Active Member ReFresh 2340 Posted November 24, 2015 Active Member Share Posted November 24, 2015 (edited) Hi guys, I have a little problem. When I want to click on take button is not functional. I played with this button position and changing the position of button, but when I edit position of the button, button doesn't work. Can anyone tell me which file I need to edit to my button work? And second question... How I can put points (...) between the numbers? Thanks for your answers! Kind Regards ReFresh Edited August 11, 2022 by ReFresh I'll be always helpful! Link to comment Share on other sites More sharing options...
Former Staff Shisui 491 Posted November 24, 2015 Former Staff Share Posted November 24, 2015 About the 2º question, see if works. uiexchange.py Replace all the function def Refresh(self): with def Refresh(self): self.RefreshOwnerSlot() self.RefreshTargetSlot() self.OwnerMoney.SetText(str(('.'.join([ i-3<0 and str(exchange.GetElkFromSelf())[:i] or str(exchange.GetElkFromSelf())[i-3:i] for i in range(len(str(exchange.GetElkFromSelf()))%3, len(str(exchange.GetElkFromSelf()))+1, 3) if i ])))) self.TargetMoney.SetText(str(('.'.join([ i-3<0 and str(exchange.GetElkFromTarget())[:i] or str(exchange.GetElkFromTarget())[i-3:i] for i in range(len(str(exchange.GetElkFromTarget()))%3, len(str(exchange.GetElkFromTarget()))+1, 3) if i ])))) if TRUE == exchange.GetAcceptFromSelf(): self.OwnerAcceptLight.Down() else: self.AcceptButton.Enable() self.AcceptButton.SetUp() self.OwnerAcceptLight.SetUp() if TRUE == exchange.GetAcceptFromTarget(): self.TargetAcceptLight.Down() else: self.TargetAcceptLight.SetUp() Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted November 24, 2015 Author Active Member Share Posted November 24, 2015 11 hours ago, Shisui said: About the 2º question, see if works. uiexchange.py Replace all the function def Refresh(self): with def Refresh(self): self.RefreshOwnerSlot() self.RefreshTargetSlot() self.OwnerMoney.SetText(str(('.'.join([ i-3<0 and str(exchange.GetElkFromSelf())[:i] or str(exchange.GetElkFromSelf())[i-3:i] for i in range(len(str(exchange.GetElkFromSelf()))%3, len(str(exchange.GetElkFromSelf()))+1, 3) if i ])))) self.TargetMoney.SetText(str(('.'.join([ i-3<0 and str(exchange.GetElkFromTarget())[:i] or str(exchange.GetElkFromTarget())[i-3:i] for i in range(len(str(exchange.GetElkFromTarget()))%3, len(str(exchange.GetElkFromTarget()))+1, 3) if i ])))) if TRUE == exchange.GetAcceptFromSelf(): self.OwnerAcceptLight.Down() else: self.AcceptButton.Enable() self.AcceptButton.SetUp() self.OwnerAcceptLight.SetUp() if TRUE == exchange.GetAcceptFromTarget(): self.TargetAcceptLight.Down() else: self.TargetAcceptLight.SetUp() Thanks for your answer, your tut works good. But, What do you think about question number 1? I'll be always helpful! 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