Created
November 8, 2018 02:45
-
-
Save ShinonomeHana/be8ec0bf77da9503fd2076837d2b8522 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PyQt5.QtWidgets import QApplication,QMainWindow | |
import sys,threading,time | |
class MyMainWindow(QMainWindow): | |
def __init__(self): | |
super().__init__() | |
def showMainWindow(): | |
app = QApplication(sys.argv) | |
main_window = MyMainWindow() | |
main_window.show() | |
sys.exit(app.exec_()) | |
thread = threading.Thread(target=showMainWindow) | |
thread.start() | |
time.sleep(1999) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这段代码在 macOS 下运行会直接崩溃