New to Python. No matter what I enter, it doesn't like the arguments in the function. Appreciate any help.
Error:Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python27\lib\lib-tk\Tkinter.py", line 1536, in __call__
return self.func(*args)
TypeError: go() takes exactly 1 argument (0 given)
The function is inside a class and the command for a button. It takes entries from two entry boxes and a spinbox. The time part works fine separately, and it does get the spinbox info ok. def go(self): def time(): e1= entry1.get() e2= entry2.get() run_time_min= float(e1) run_time_sec= float(e2) time= run_time_min * 60 + run_time_sec return time def calc(): sb1 = spinbox1.get() if sb1 == '8mm': feet=time/fpsecs8 print feet elif sb1 == 'Super 8': feet= time/fpsecss8 print feet elif sb1 == '16mm': feet= time/fpsecs16 print feet elif sb1 == '16 Sound': feet= time/fpsecs16s print feet