摘要:
PyQt5,或者说Qt在Linux下的中文输入总是有问题,要不就是输入法用不了,要不就是中文乱码。我在用PyQt5写翻译词典的时候就遇到了这样的问题,折腾了一下,只解决了一部分的问题。按照规矩,先上代码:# -*- coding: utf-8 -*-from PyQt5 import QtCore, QtGui, QtWidgetsimport urllib2import xml.etree.cElementTree as ETimport sipclass Ui_MainWindow(object): def setupUi(self, MainWindow): Main...
阅读全文