Guest User

Untitled

a guest
May 22nd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. from PyQt5 import Qt
  2.  
  3.  
  4. def on_selection():
  5. print("Selection changed")
  6.  
  7.  
  8. if __name__ == "__main__":
  9. app = Qt.QApplication([])
  10. widget = Qt.QTableWidget()
  11. widget.setRowCount(10)
  12. widget.setColumnCount(10)
  13. widget.itemSelectionChanged.connect(on_selection)
  14.  
  15. widget.show()
  16. app.exec()
Add Comment
Please, Sign In to add comment