MCPcopy Create free account
hub / github.com/PyQt5/PyQt / onCloseTab

Method onCloseTab

QTabWidget/HideCloseButton.py:34–38  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

32 self.tabBar().setTabButton(0, QTabBar.RightSide, None)
33
34 def onCloseTab(self, index):
35 w = self.widget(index)
36 if w:
37 w.close()
38 self.removeTab(index)
39
40
41if __name__ == "__main__":

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected