hanyuone / Ways-to-NOT-make-money

A basic Python (2.x/3.x) incremental game.
8 stars 3 forks source link

NameError: global name 'timevar' is not defined #8

Closed ghost closed 8 years ago

ghost commented 8 years ago

I ran the program and clicked the AutoClick button, but before I got three dollars by AutoClick: I got this error:

Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python27\lib\lib-tk\Tkinter.py", line 1486, in __call__
    return self.func(*args)
  File "C:\Python27\lib\lib-tk\Tkinter.py", line 533, in callit
    func(*args)
  File "C:\Python27\Ways-to-NOT-make-money-master\game.py", line 330, in automoney
    timevar.set("Total time: " + str(time))
NameError: global name 'timevar' is not defined
hanyuone commented 8 years ago

Fixed in V0.5.3-3 (changed the global thing a bit).