简体   繁体   中英

Can't seem to get a window from PYQT5 in Pycharm (macOS Big Sur)

I am using macOS Big Sur beta currently. I have been able to download the libraries via Pycharm 2020.1.2 however, when running my program, no window appears to show what I've been working on.

Example:

Here is a simple line of code I've gotten as an example.

import sys
from PyQt5.QtWidgets import QApplication, QLabel

app = QApplication([])
label = QLabel('Welcome to PYQT5 Tester')
label.show()
app.exec_()

When I run the app, there are no errors and the sole description is my file directory. I am really confused to if I haven't installed anything but any help would be appreciated.

下降到 PyQt5==5.13,它现在对我有用。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM