Skip to content

Instantly share code, notes, and snippets.

@Park-Developer
Created January 1, 2021 09:43
Show Gist options
  • Save Park-Developer/3d29de09a4b7d1bf4e43b33c1f356fdd to your computer and use it in GitHub Desktop.
Save Park-Developer/3d29de09a4b7d1bf4e43b33c1f356fdd to your computer and use it in GitHub Desktop.
pyqt5 : remove QTableWidget
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