Closed Aknifejackzhmolong closed 2 years ago
the original program is use PyQtGraph: 0.11.0 and numpy: 1.22.2.
I think your issues is here. You can modify paint subroutine to avoid the error
class CustomTextItem(gl.GLGraphicsItem.GLGraphicsItem):
def paint(self):
a = 0
'''
# For some version gl is ok some get following error
#Error while drawing item <__main__.CustomTextItem object at 0x7fe379b51a60>
self.GLViewWidget.qglColor(QtCore.Qt.cyan)
self.GLViewWidget.renderText(round(self.X), round(self.Y), round(self.Z), self.text)
'''
I have met the error like: