擅长:python、mysql、java
<p>这里有一个混乱的工作(对于python-PyQt)</p>
<pre><code>def Extract_PlainText(label):
Rtf_text = label.text()
Temp_Obj = QtGui.QTextEdit()
Temp_Obj.setText(Rtf_text)
Plain_text = Temp_Obj.toPlainText()
del Temp_Obj
return Plain_text
</code></pre>
<p>灵感来自<a href="http://bytes.com/topic/net/answers/707370-convert-rtf-plain-text" rel="nofollow">http://bytes.com/topic/net/answers/707370-convert-rtf-plain-text</a></p>