(self, oldwidget, newwidget)
Replace a tab's contents with a new widget
Replace a tab's contents with a new widget
Replace a tab s contents with a new widget
def replace(self, oldwidget, newwidget):
        """Replace a tab's contents with a new widget"""
        page_num = self.page_num(oldwidget)
        self.remove(oldwidget)
        self.add(newwidget)
        self.reorder_child(newwidget, page_num)
def replace ( self , oldwidget , newwidget ) : page_num = self . page_num ( oldwidget ) self . remove ( oldwidget ) self . add ( newwidget ) self . reorder_child ( newwidget , page_num )