(self, tab)
| 47 | self.switch_tab(self.init_name or self.tabs.keys()[-1])# switch the tab to the first tab |
| 48 | |
| 49 | def add(self, tab): |
| 50 | tab.pack_forget() # hide the tab on init |
| 51 | |
| 52 | self.tabs[tab.tab_name] = tab # add it to the list of tabs |
| 53 | b = Button(self, text=tab.tab_name, relief=BASE, # basic button stuff |
| 54 | command=(lambda name=tab.tab_name: self.switch_tab(name))) # set the command to switch tabs |
| 55 | b.pack(side=LEFT) # pack the buttont to the left mose of self |
| 56 | self.buttons[tab.tab_name] = b # add it to the list of buttons |
| 57 | |
| 58 | def delete(self, tabname): |
| 59 |
no test coverage detected