def add_tab(self, title="<STR_LIT>", block_events=True):
self._widget.blockSignals(block_events)<EOL>tab = GridLayout()<EOL>self.tabs.append(tab)<EOL>tab.set_parent(self)<EOL>self._widget.addTab(tab._widget, title)<EOL>if '<STR_LIT>' in self._lazy_load and self.get_tab_count() > self._lazy_load['<STR_LIT>']:<EOL><INDENT>v = self._lazy_load.pop('<STR_LIT>')<EOL>self.set_current_tab(v)<EOL><DEDENT>self._widget.blockSignals(False)<EOL>return tab<EOL>
Adds a tab to the area, and creates the layout for this tab.