• pyotherside 试用


    pyotherside 试用

    这是啥?
    用python写qt


    步骤:
    安装qt: http://www.qt.io/download-open-source/#section-2
    安装python3:
    下载源代码 https://github.com/thp/pyotherside
    编译 pyotherside:    他主页上有一个简短的说明
        qmake
        make
        make install
        
    编译完可以执行个测试     ./tests/tests

    运行example程序

    F:wampwwwgit_reposGitHubpyotherside>qmlscene F:wampwwwgit_reposGitHubpyothersideexampleshelloworld.qml
    qml: PyOtherSide version: 1.4.0
    qml: Python version: 3.4.3
    qml: python error: Not a parameter list in call to pyotherside.send:
    "PyOtherSide error: No module named 'thismoduledoesnotexisthopefully'"
    qml: python error: Cannot import module: thismoduledoesnotexisthopefully (No module named 'thismodul
    edoesnotexisthopefully')
    "PyOtherSide error: invalid syntax (<string>, line 1)"
    qml: python error: Cannot evaluate '[ 123 [.syntax234-error!' (invalid syntax (<string>, line 1))
    qml: Python module "os" is now imported
    qml: python error: Not a parameter list in call to os.chdir:
    qml: python error: Not a parameter list in call to os.listdir:
    qml: files in /: undefined
    qml: dir listing: .git,docs,examples,LICENSE,Makefile,pyotherside.pri,pyotherside.pro,python.pri,REA
    DME,src,tests

    关于pyotherside的视频:有什么特点,内部是怎样个原理, 怎样用
    https://www.youtube.com/watch?v=2HAFOZ5_Xks

    Q1: This application failed to start because it could not find or load the Qt platfo rm plugin "windows".

    path F:swQtQt5.4.25.4msvc2013_openglin;F:swQtQt5.4.2ToolsQtCreatorin;

    注意顺序!

    Q2:file:///F:/wamp/www/git_repos/GitHub/pyotherside/examples/helloworld.qml:2 module "io.thp.pyotherside" is not installed

    file:///F:/wamp/www/git_repos/GitHub/pyotherside/examples/helloworld.qml:2 module "io.thp.pyotherside" plugin "pyothersideplugin" not found

    这是因为系统不知道这个plugin在哪里

    执行 nmake install就可以

    其实他是执行了这两条命令

    copy /y "releasepyothersideplugin.dll" "F:swQtQt5.4.25.4msvc2013_openglqmlio hppyothersidepyothersideplugin.dll"
    copy /y F:wampwwwgit_reposGitHubpyothersidesrcqmldir F:swQtQt5.4.25.4msvc2013_openglqmlio hppyotherside

    而dmldir文件内容为

    module io.thp.pyotherside
    plugin pyothersideplugin

  • 相关阅读:
    MVC概念性的内容
    类 class
    php获取真实IP地址
    面向对象static静态的属性和方法的调用
    smarty 入门2(个人总结)
    smarty入门
    读取文件内容fopen,fgets,fclose
    mysql常用命令
    mybatis查询的三种方式
    MyBatis 映射文件
  • 原文地址:https://www.cnblogs.com/cutepig/p/4574071.html
Copyright © 2020-2023  润新知