'admin' object has no attribute 'fileName'
<p>I'm trying to load my csv in QTableView and when I click on the button it gives this errorFile </p>

<blockquote>
  <p>Zap Lunchies.py, line 61, in on_show_clicked
      self.loadCsv(self.fileName)
  AttributeError: 'admin' object has no attribute 'fileName'</p>
</blockquote>

<p>This is my <a href="http://pastebin.com/rxi4kfej" rel="nofollow">code</a> currently </p>

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

<p>Your <code>__init__</code> function for your <code>admin</code> class needs a line</p>

<pre><code>self.fileName = fileName
</code></pre>

python csv pyqt qtableview