在Mac上无法使用pygame创建窗口

时间:2020-09-29 17:34:58

标签: python macos pygame window

这是代码

Dts.Variables["User::FileExists"].Value = 
   System.IO.Directory.EnumerateFiles(Dts.Variables["User::FilePath"].Value.ToString()
           , "*[your wild card file name]").Any();

当我在Pycharm上或空闲时运行此代码时,我在扩展坞上(这在MacOS上)得到了一个反弹的python火箭图标,但是当我在终端中逐行运行该代码时,该代码成功创建了一个pygame窗口。相同的代码可在Windows上的Pycharm上使用。

0 个答案:

没有答案