pythonguis / pythonguis-examples

Demo desktop apps built with Python & Qt. With examples for PyQt6, PySide6, PyQt5 & PySide2

Home Page:https://www.learnpyqt.com/examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

扫雷游戏中为什么我无法显示图片,我的pyqt5在anaconda环境中似乎一直存在这个问题

blackxiaobai opened this issue · comments

扫雷游戏中为什么我无法显示图片,我的pyqt5在anaconda环境中似乎一直存在这个问题

Why can't I display pictures in the Minesweeper game? My pyqt5 seems to have this problem in the anaconda environment.

You may need to run the application from the same folder for the paths to work. The paths are relative to the folder you're executing in, not the folder of the source code.

为什么我在扫雷游戏中无法显示图片?我的pyqt5在anaconda环境下好像也有这个问题。

您可能需要从同一文件夹运行应用程序才能使路径正常工作。这些路径是相对于您正在执行的文件夹,而不是源代码的文件夹。
OK,Thank you,bro.