Created
January 1, 2021 09:43
-
-
Save Park-Developer/3d29de09a4b7d1bf4e43b33c1f356fdd to your computer and use it in GitHub Desktop.
pyqt5 : remove QTableWidget
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while (self.tableFriends.rowCount() > 0): | |
{ | |
self.tableFriends.removeRow(0) | |
} | |
#You can also try: | |
tableFriends.setRowCount(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://stackoverflow.com/questions/29266452/how-can-i-clear-a-pyqt-qtablewidget