code: def currentPanel(self):
          
          focus_widget = QtGui.QApplication.instance().focusWidget()
          focus_panel = projexui.ancestor(focus_widget, XViewPanel)
  
          panels = self.panels()
          if focus_panel in panels:
              return focus_panel
          try:
              return panels[0]
          except IndexError:
              return None
docs: Returns the currently active panel based on whether or not it has \
          focus.
          
          :return     <XViewPanel>  || None