mainplugin.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:qgis_wp 作者: Zverik 项目源码 文件源码
def __init__(self, iface):
        self.iface = iface
        self.path = os.path.dirname(os.path.realpath(__file__))
        locale = QSettings().value("locale/userLocale")[0:2]
        localePath = os.path.join(self.path, 'i18n', '{}.qm'.format(locale))
        if os.path.exists(localePath):
            self.translator = QTranslator()
            self.translator.load(localePath)
            QCoreApplication.installTranslator(self.translator)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号