pygame.image.load not doing anything [closed] - python

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 months ago.
Improve this question
I am trying to follow a tutorial to make a game with python and the pygame library. In the tutorial, this is used to set the icon of the window:
icon = pygame.image.load('icon.png')
pygame.display.set_icon(icon)
It does changes the icon, but to another generic icon which is not 'icon.png' at all!
icon.png is in the same directory as my .py, and I get no error message.
What is happening?

The error that you have come across was a problem with the tutorial video, not you that is the correct code I suggest watching/finding a new totorial.

Related

Camera For My Pygame OpenGL game wont work [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed yesterday.
Improve this question
I am following along with Let's Code 3D Engine in Pygame. OpenGL Tutorial https://www.youtube.com/watch?v=eJDIsFJN4OQ&t=695s and it is not working like when ever I rotate the camera with my mouse it hits the edge of the screen and it wont move the camera any more i also cant look down for some reason I even downloaded the guys code and ran it and it still wouldn't let me turn all the way here is all of my code pastebin.com/52cVLQvm

Why does the Detection button for my project not work? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 days ago.
Improve this question
https://github.com/nisch-mhrzn/apple-leaf
This is the GitHub repo to the Python file. The project is Apple Leaf disease detection using CNN. The front end is in streamlit.
The detection button should be clicked and the model should detect the leaf.

How can I create a program that runs commands as soon as I copy something to clipboard [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 months ago.
Improve this question
I want to write a program that will run a few lines on any piece of data or string upon copying to clipboard, is there a way to do this? I cant find much information about it.
I found https://pyperclip.readthedocs.io/en/latest/index.html
It has the pyperclip.waitForPaste() function, which should do exactly what you want. I had issues trying it with Linux Fedora, but it should be no problem on most Systems.

why does my console show nothing in pyhon? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 months ago.
Improve this question
This is my coding
below one is the screenshot of the lecture
I would like to know why my console does not show anything, unlike the lecture.
I can't tell from the photos but it looks like you're not calling the function? and if you are, maybe with the wrong parameters, can you upload all of your code?

pyinstaller struct.error: unpack requires a bytes object of length 16 [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
trying to add an icon to my exe using pyinstaller but I get the above error!
See this for more info: https://github.com/pyinstaller/pyinstaller/issues/2445
Any help is appreciated!
It turn out that my icon file is not accepted by pyinstaller. Do not download your icon from google images as png then change the extention to ico, for some reason that does not work at all

Categories