Browse Source

chore(tree): update event triggered by expandAll and collapseAll

pull/458/head
Parodi, Eugenio 🌶 6 months ago
parent
commit
e2c4ef5318
  1. 2
      libs/pyTermTk/TermTk/TTkWidgets/TTkModelView/treewidget.py
  2. 4
      tools/ci/ci_tools/social/social_common.py

2
libs/pyTermTk/TermTk/TTkWidgets/TTkModelView/treewidget.py

@ -420,6 +420,7 @@ class TTkTreeWidget(TTkAbstractScrollView):
self._rootItem.dataChanged.disconnect(self._refreshCache)
self._rootItem.expandAll()
self._rootItem.dataChanged.connect(self._refreshCache)
self._refreshCache()
@pyTTkSlot()
def collapseAll(self) -> None:
@ -429,6 +430,7 @@ class TTkTreeWidget(TTkAbstractScrollView):
self._rootItem.dataChanged.disconnect(self._refreshCache)
self._rootItem.collapseAll()
self._rootItem.dataChanged.connect(self._refreshCache)
self._refreshCache()
def mouseDoubleClickEvent(self, evt:TTkMouseEvent) -> bool:
x,y = evt.x, evt.y

4
tools/ci/ci_tools/social/social_common.py

@ -36,21 +36,25 @@ _all_data:List[SocialData] = [
SocialData(
name='pytermtk',
link='https://github.com/ceccopierangiolieugenio/pyTermTk',
image='',
discord_channel_id=1379381341145268305,
),
SocialData(
name='ttkode',
link='https://github.com/ceccopierangiolieugenio/pyTermTk/tree/main/apps/ttkode',
image='',
discord_channel_id=1379381474783924295,
),
SocialData(
name='dumbpainttool',
link='https://github.com/ceccopierangiolieugenio/pyTermTk/tree/main/apps/dumbPaintTool',
image='',
discord_channel_id=1379381571412430931,
),
SocialData(
name='tlogg',
link='https://github.com/ceccopierangiolieugenio/pyTermTk/tree/main/apps/tlogg',
image='',
discord_channel_id=1379381593378000916,
),
]

Loading…
Cancel
Save