日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

pyotherside 试用

發(fā)布時(shí)間:2025/3/8 编程问答 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 pyotherside 试用 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

pyotherside 試用

這是啥?
用python寫qt


步驟:
安裝qt: http://www.qt.io/download-open-source/#section-2
安裝python3:
下載源代碼 https://github.com/thp/pyotherside
編譯 pyotherside:?? ?他主頁(yè)上有一個(gè)簡(jiǎn)短的說明
??? qmake
??? make
??? make install
?? ?
編譯完可以執(zhí)行個(gè)測(cè)試?? ? ./tests/tests

?

運(yùn)行example程序

F:\wamp\www\git_repos\GitHub\pyotherside>qmlscene F:\wamp\www\git_repos\GitHub\pyotherside\examples\helloworld.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

關(guān)于pyotherside的視頻:有什么特點(diǎn),內(nèi)部是怎樣個(gè)原理, 怎樣用
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:\sw\Qt\Qt5.4.2\5.4\msvc2013_opengl\bin;F:\sw\Qt\Qt5.4.2\Tools\QtCreator\bin;

注意順序!

?

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

這是因?yàn)橄到y(tǒng)不知道這個(gè)plugin在哪里

執(zhí)行 nmake install就可以

其實(shí)他是執(zhí)行了這兩條命令

copy /y "release\pyothersideplugin.dll" "F:\sw\Qt\Qt5.4.2\5.4\msvc2013_opengl\qml\io\thp\pyotherside\pyothersideplugin.dll"
copy /y F:\wamp\www\git_repos\GitHub\pyotherside\src\qmldir F:\sw\Qt\Qt5.4.2\5.4\msvc2013_opengl\qml\io\thp\pyotherside

而dmldir文件內(nèi)容為

module io.thp.pyotherside
plugin pyothersideplugin

總結(jié)

以上是生活随笔為你收集整理的pyotherside 试用的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。