diff --git a/README.md b/README.md index d96a16f..289aa9c 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,8 @@ 简体中文🇨🇳 | [English🇬🇧](README_EN.md) +## **嘿伙计,你是不是来错地儿了,这里还在开发,注意选对版本!** + ## 介绍🚀 音·创 Musicreater 是一款免费开源的 **《我的世界:基岩版》** 音乐制作软件 diff --git a/logo_done_c_Finish_C_Done_CCC_1024px.ico b/logo_done_c_Finish_C_Done_CCC_1024px.ico new file mode 100644 index 0000000..761b0de Binary files /dev/null and b/logo_done_c_Finish_C_Done_CCC_1024px.ico differ diff --git a/pp_main_write.py b/pp_main_write.py new file mode 100644 index 0000000..4616c98 --- /dev/null +++ b/pp_main_write.py @@ -0,0 +1,47 @@ +import sys +from PySide6.QtWidgets import QApplication, QWidget +from PySide6.QtWidgets import QLabel, QPushButton +from PySide6.QtCore import Qt +from PySide6.QtGui import QPixmap + + +class MusicreaterGUI: + def __init__(self): + self.button, self.label = None, None + + def setupUi(self, window): + window.setWindowTitle("音·创") # 窗口标题 + window.resize(300, 150) # 重置大小 + + self.label = QLabel(window) # 在窗口上创建实例化label + string = "welcome to musicreater" + self.label.setText(string) + self.label.setGeometry(80, 50, 150, 20) + + self.button = QPushButton(window) + self.button.setText("close") + self.button.setGeometry(120, 100, 50, 20) + self.button.clicked.connect(window.close) + + +class MusicreaterWidget(QWidget, MusicreaterGUI): # 很棒的继承,请 体会 + def __init__(self, parent=None): + super().__init__(parent) + self.setupUi(self) + + +if __name__ == '__main__': + app = QApplication(sys.argv) # 创建应用程序实例对象 + app.setApplicationDisplayName("Musicreater-pp") + app.setApplicationVersion("v0.0.1") + app.setEffectEnabled(Qt.UI_AnimateCombo) + app.setWindowIcon(QPixmap(r"logo_done_c_Finish_C_Done_CCC_1024px.ico")) + + window_ = MusicreaterWidget() # 窗口实例化 + window_.show() + n = app.exec() + print(n) + try: + sys.exit(n) + except SystemExit: + print("hi, error")