Lines Matching refs:tab_name
68 def add_tab(self, tab_name): argument
70 if not tab_name:
71 raise InvalidNameError("Invalid Tab name: '%s'" % tab_name)
72 if tab_name in self._tab_names:
73 raise AlreadyExistsError("Tab named '%s' already exists" %tab_name)
75 self._tab_names.append(tab_name)
78 def remove_tab(self, tab_name): argument
80 if not tab_name in self._tab_names:
83 self._tab_names.remove(tab_name)
86 def set_selected_tab(self, tab_name): argument
88 if tab_name == self._selected_tab:
90 if tab_name is not None and tab_name not in self._tabs:
98 if tab_name is not None:
100 self._selected_tab = tab_name
101 tab = self._tabs[tab_name]
116 for tab_name in tab_names:
117 tab = TabSet.TabButton(tab_name, self.select_command,
123 self._tabs[tab_name] = tab
146 for tab_name in self._tabs.keys():
147 self._tabs.pop(tab_name).destroy()