parameters: (self, tab_name)
return_statement: return None
docstring: Gets the PreferenceWidget based on tab name.
          This is primarily intended for use while testing.
docstring_summary: Gets the PreferenceWidget based on tab name.
          This is primarily intended for use while testing.
docstring_tokens: Gets the PreferenceWidget based on tab name . This is primarily intended for use while testing .
function: def widget(self, tab_name):
          """
          Gets the PreferenceWidget based on tab name.
          This is primarily intended for use while testing.
          """
          for i in range(self.tabs.count()):
              if self.tabs.tabText(i) == tab_name:
                  return self.tabs.widget(i)
          return None
function_tokens: def widget ( self , tab_name ) : for i in range ( self . tabs . count ( ) ) : if self . tabs . tabText ( i ) == tab_name : return self . tabs . widget ( i ) return None