Sep-26-2020, 05:52 AM
When I try and pass xx which is a dataframe I believe, I get the following message.
$ python pyfuncs.py
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\Milford\AppData\Local\Programs\Python\Python38-32\lib\tkinter\__init__.py", line 1883, in __call__
return self.func(*args)
File "pyfuncs.py", line 138, in select_track
load_track_to_Handi()
File "pyfuncs.py", line 110, in load_track_to_Handi
load_horse_data()
TypeError: load_horse_data() missing 1 required positional argument: 'xx'
def load_horse_data(xx): horse_array[horse_count][0] = xx[hcount][race_number] horse_array[horse_count][1] = xx[hcount][todays_purse]error message:
$ python pyfuncs.py
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\Milford\AppData\Local\Programs\Python\Python38-32\lib\tkinter\__init__.py", line 1883, in __call__
return self.func(*args)
File "pyfuncs.py", line 138, in select_track
load_track_to_Handi()
File "pyfuncs.py", line 110, in load_track_to_Handi
load_horse_data()
TypeError: load_horse_data() missing 1 required positional argument: 'xx'