title: WxPython attribute error, *my class* object has no attribute *my function*
body: <p>Python 2.7</p>
  
  <p>Ubuntu 12.04</p>
  
  <p>My code is available <a href="http://pastebin.com/h1Pyk8y6" rel="nofollow">here</a>.</p>
  
  <p>I'm trying to put together a base for myself to make creating wxPython apps easier, I'm using the set up of my last program as that base but it's not working properly.</p>
  
  <p>The problem arises when I try to bind a button to a function, this is the same layout that has worked for me before but now when I try to start the program with the button and the bind in place I get this error:</p>
  
  <pre><code>AttributeError: 'my_panel' object has no attribute 'on_quit'
  </code></pre>
  
  <p>If I remove the bind the program launches.</p>
  
  <p>What's going on?</p>
  
  <p>I've looked at other questions regarding this and it seems that most of the time it's a typing error, I've looked but I cannot find one.</p>