I have the following line in my code:
self.textLength = self.fontMetrics().width(self.text())
It works with PyQt5, but I\'m trying to move the co