Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
349 views
in Technique[技术] by (71.8m points)

python - Is it possible to convert my PyQt5 GUI App into a webapp using django?

I am new to Python, I'm still learning but I have already done some first steps and I have created some GUI's with the QtDesigner tool, which looks like this:

GUI 1:
GUI 1

GUI 2:
GUI 2

GUI 3:
GUI 3

Number 2 is quite functional already (at least for me: D), it has animated menu, it collects data from my sensors and draws charts (github). And now my question is: is there any way to apply this code/this GUIs into a webapplication using Django? I mean, I would like to make this a webapp and I don't want to start designing from zero once again and I wonder if I could somehow use what I've already done.

Mateusz.

question from:https://stackoverflow.com/questions/65845444/is-it-possible-to-convert-my-pyqt5-gui-app-into-a-webapp-using-django

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

QTdesigner exports to XML, whereas Django uses HTML, CSS and JS for rendering Pages, there is no real way to transfer XML to html so it will need to be done by hand


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...