mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-12-14 02:52:03 +08:00
将C++版的Wine安装器改Python(技术问题)
This commit is contained in:
18
wine/installwine.py
Normal file
18
wine/installwine.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# 本来是用C++写的,但在非deepin/UOS编译/运行就是下载不了https文件,只能用python重写
|
||||
import sys
|
||||
import PyQt5.QtWidgets as QtWidgets
|
||||
|
||||
import mainwindowui
|
||||
|
||||
# 继承至界面文件的主窗口类
|
||||
class MyMainWindow(mainwindowui.Ui_MainWindow):
|
||||
def __init__(self, parent=None):
|
||||
#pass
|
||||
super(MyMainWindow, self).__init__(parent)
|
||||
#self.setupUi(self)
|
||||
|
||||
if __name__ == "__main__":
|
||||
app = QtWidgets.QApplication(sys.argv)
|
||||
window = MyMainWindow()
|
||||
window.show()
|
||||
app.exec_()
|
||||
Reference in New Issue
Block a user