MCPcopy Create free account
hub / github.com/bhowiebkr/PyFlowGraph / ResizableWidgetContainer

Class ResizableWidgetContainer

src/core/node.py:25–35  ·  view source on GitHub ↗

A custom QWidget that emits a signal whenever its size changes.

Source from the content-addressed store, hash-verified

23
24
25class ResizableWidgetContainer(QWidget):
26 """A custom QWidget that emits a signal whenever its size changes."""
27
28 resized = Signal()
29
30 def __init__(self, parent=None):
31 super().__init__(parent)
32
33 def resizeEvent(self, event):
34 super().resizeEvent(event)
35 self.resized.emit()
36
37
38class Node(QGraphicsItem):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected