drizzyyy drizzyyy - 1 year ago 115
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 "

Answer Source

Your __init__ function for your admin class needs a line

self.fileName = fileName
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download