parameters: (self, wnd)
return_statement: return None
docstring: Returns the tab frame associated with a window.
  
          :param Window `wnd`: the window for which we want to locate the :class:`TabFrame`.
docstring_summary: Returns the tab frame associated with a window.
docstring_tokens: Returns the tab frame associated with a window .
function: def GetTabFrameFromWindow(self, wnd):
          """
          Returns the tab frame associated with a window.
  
          :param Window `wnd`: the window for which we want to locate the :class:`TabFrame`.
          """
  
          all_panes = self._mgr.GetAllPanes()
          for pane in all_panes:
              if pane.name == "dummy":
                  continue
  
              tabframe = pane.window
              for page in tabframe._tabs.GetPages():
                  if wnd == page.window:
                      return tabframe
  
          return None
function_tokens: def GetTabFrameFromWindow ( self , wnd ) : all_panes = self . _mgr . GetAllPanes ( ) for pane in all_panes : if pane . name == "dummy" : continue tabframe = pane . window for page in tabframe . _tabs . GetPages ( ) : if wnd == page . window : return tabframe return None