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)
--
You received this message because you are subscribed to the Google Groups
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyqtgraph/26fdbe53-e41e-4ec3-ad21-5e3a4289108f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.