PyQt5窗口在Mac上不会显示,但在Windows上可以正常工作

时间:2019-10-22 16:08:35

标签: python python-3.x macos pyqt5

我使用anaconda python 3.7在spyder中编写了这个gui。它可以在我的电脑上正常工作。然后,我也尝试使用anaconda python 3.7在spyder中在Mac上运行它,并且窗口甚至没有出现在屏幕上。任务栏上出现一个新的空白图标(甚至没有spyder图标),但没有其他任何反应,我必须使用此图标强制退出以使代码停止运行(因为没有窗口可以关闭)

(?:         # Start of a non-capturing group (don't use a capturing group unless needed).
    ^       # Beginning of the string/line.
    |       # Alternation (OR).
    \B      # The opposite of `\b`. In other words, it makes sure that 
            # the `#` is not preceded by a word character.
)           # End of the non-capturing group.

0 个答案:

没有答案