parameters: (self, tab_name)
docstring: Show the tab named <tab_name> as the selected one
docstring_summary: Show the tab named <tab_name> as the selected one
docstring_tokens: Show the tab named <tab_name > as the selected one
function: def set_selected_tab(self, tab_name):
          """Show the tab named <tab_name> as the selected one"""
          if tab_name == self._selected_tab:
              return
          if tab_name is not None and tab_name not in self._tabs:
              raise KeyError("No such Tab: '%s" % page_name)
  
          # deselect the current selected tab
          if self._selected_tab is not None:
              self._tabs[self._selected_tab].set_normal()
          self._selected_tab = None
  
          if tab_name is not None:
              # activate the tab named tab_name
              self._selected_tab = tab_name
              tab = self._tabs[tab_name]
              tab.set_selected()
              # move the tab row with the selected tab to the bottom
              tab_row = self._tab2row[tab]
              tab_row.pack_forget()
              tab_row.pack(side=TOP, fill=X, expand=0)
function_tokens: def set_selected_tab ( self , tab_name ) : if tab_name == self . _selected_tab : return if tab_name is not None and tab_name not in self . _tabs : raise KeyError ( "No such Tab: '%s" % page_name ) # deselect the current selected tab if self . _selected_tab is not None : self . _tabs [ self . _selected_tab ] . set_normal ( ) self . _selected_tab = None if tab_name is not None : # activate the tab named tab_name self . _selected_tab = tab_name tab = self . _tabs [ tab_name ] tab . set_selected ( ) # move the tab row with the selected tab to the bottom tab_row = self . _tab2row [ tab ] tab_row . pack_forget ( ) tab_row . pack ( side = TOP , fill = X , expand = 0 )