drizzyyy drizzyyy - 1 month ago 6x
Python Question

'admin' object has no attribute 'fileName'

I'm trying to load my csv in QTableView and when I click on the button it gives this errorFile

Zap Lunchies.py, line 61, in on_show_clicked
AttributeError: 'admin' object has no attribute 'fileName'

This is my code currently

If anyone can help that would be much appreciated. And the csv file is called " data.csv "


Your __init__ function for your admin class needs a line

self.fileName = fileName