code: def any_has_focus(self):
          
          f = (self.hasFocus() or self.parent.hasFocus() or 
               self.tips.hasFocus() or self.canvas.hasFocus())
          return f
docs: Returns if tour or any of its components has focus.