The save method in TableWidget.py is not compatible with PyQt5, because QtGui.QFileDialog.getSaveFileName returns a tuple.
This can be fixed by modifying the save method (see snippet below). Is there a way to have simultaneous compatibility with PyQt4 and PyQt5?
class MyTableWidget(pyqtgraph.TableWidget):
def save(self, data):
""" Overload save routine to make it PyQt5 compatible. """
fileName, _ = QtGui.QFileDialog.getSaveFileName(self, "Save As..", "", "Tab-separated values (*.tsv)")
if fileName == '':
return
open(fileName, 'w').write(data)