对于计算机上没有使用Docker设置Python环境的客户机,将windows文件夹中的以下简单hello_world.py
脚本转换为.exe
文件的最佳方法是什么?你知道吗
import sys
from PyQt5.QtWidgets import QApplication, QWidget, QLabel
if __name__ == "__main__":
app = QApplication(sys.argv)
# Build the window widget
w = QWidget()
w.setGeometry(300, 300, 250, 150) # x, y, w, h
w.setWindowTitle("My First Qt App")
# Add a label with tooltip
label = QLabel("Hello, World!", w)
label.setToolTip("This is a <b>QLabel</b> widget with Tooltip")
label.resize(label.sizeHint())
label.move(80, 50)
# Show window and run
w.show()
app.exec_()
我想要这个特定的用例,因为我想使用Gitlab和Docker for PyQt5设置CI/CD部署
目前没有回答
相关问题 更多 >
编程相关推荐