title: Static variable inheritance in Python
body: <p>I'm writing Python scripts for Blender for a project, but I'm pretty new to the language. Something I am confused about is the usage of static variables. Here is the piece of code I am currently working on:</p>
  
  <pre><code>class panelToggle(bpy.types.Operator):
      active = False
  
      def invoke(self, context, event):
          self.active = not self.active
          return{'FINISHED'}
  
  class OBJECT_OT_openConstraintPanel(panelToggle):
      bl_label = "openConstraintPanel"
      bl_idname = "openConstraintPanel"
  </code></pre>
  
  <p>The idea is that the second class should inherit the <em>active</em> variable and the <em>invoke</em> method from the first, so that calling OBJECT_OT_openConstraintPanel.invoke() changes OBJECT_OT_openConstraintPanel.active. Using <em>self</em> as I did above won't work however, and neither does using <em>panelToggle</em> instead. Any idea of how I go about this?</p>