python - 在 Linux 下运行 pygame 时摆脱终端

标签 python linux python-3.x pygame

在 Ubuntu 中运行 pygame 时,终端会与 pygame 窗口一起打开。我想摆脱终端。我可以使用 nohup& 启动 pygame:

$ nohup python3 mygame.py & 

这允许关闭终端,但不会阻止它首先打开。

有没有办法在不打开终端的情况下运行 pygame?

最佳答案

OP 解释说应该创建一个桌面快捷方式, 然后终端就消失了。

关于python - 在 Linux 下运行 pygame 时摆脱终端,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55882977/

相关文章:

python - Django 休息框架 : set database dynamically from URL parameter

python - 在Python中获取 'TypeError: invalid destination position for blit'

python - 使用 pybind11 包装 C++ void 函数

linux - 在 bash 中使用 if-else 连接 xargs

c - 使用写函数时出现未初始化字节的 valgrind 错误

python - SCU 如何使用 C-GET 从 Dicom 服务器接收 dcm 图像?

python-3.x - 从 beautifulsoup4 网络抓取结果中删除特定的 <h2 类>

python - 与 pandas 中的组一起操作

linux - 为什么我的 wget 安装 wordpress 会失败?

python - 如何在Python中绘制y轴为 "total of y values corresponding to each x bin"、x轴为n个x的直方图?