Browse Source

fix(tabwidget): emit button clicked signal last (#545)

pull/558/head
slook 3 months ago committed by GitHub
parent
commit
3d98553ca8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      libs/pyTermTk/TermTk/TTkWidgets/tabwidget.py

2
libs/pyTermTk/TermTk/TTkWidgets/tabwidget.py

@ -747,8 +747,8 @@ class TTkTabBar(TTkContainer):
@pyTTkSlot(TTkTabButton)
def _tcbClickedHandler(self, btn:TTkTabButton):
index = self._tabStatus.tabButtons.index(btn)
self.setCurrentIndex(index)
self.tabBarClicked.emit(index)
self.setCurrentIndex(index)
@pyTTkSlot(int)
def removeTab(self, index:int) -> None:

Loading…
Cancel
Save