Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from PyQt5 import Qt
- def on_selection():
- print("Selection changed")
- if __name__ == "__main__":
- app = Qt.QApplication([])
- widget = Qt.QTableWidget()
- widget.setRowCount(10)
- widget.setColumnCount(10)
- widget.itemSelectionChanged.connect(on_selection)
- widget.show()
- app.exec()
Add Comment
Please, Sign In to add comment