What is the equivalent of “QString text = tr(”%1…“).arg(QString(format).toUpper());” from QT C++ to PyQt5 (Python)?

前端 未结 0 1696
有刺的猬
有刺的猬 2020-12-30 05:18

I tried something like:

text = self.tr("%1...").arg(str(format).upper())

but I get the error \'str\' object has no attribute \'arg\

相关标签:
回答
  • 消灭零回复
提交回复
热议问题