将C++版的Wine安装器改Python(技术问题)

This commit is contained in:
2022-08-21 22:31:19 +08:00
parent a62a937700
commit 9254aa0cdf
12 changed files with 549 additions and 36 deletions

18
wine/installwine.py Normal file
View 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_()