resserone13
Nov 13, 2020 - 05:57
I’m trying to creat a function to use with my Scene class and it is either saying that the variables used in the function or the fiction it’s self is not defined. I’m trying to use the function with Action.call() from scene. Should the function be within the scene class? I have self on all the instances.?? Sometime it says “self not defined”. Thank you for any help.
def update_br(self):
self.bankroll_amount += self.stake_amount * 2
self.bankroll_amount_label.text = f'{self.dollar_sign}{self.bankroll_amount:,}'