#๐ What s is the problem in this pygame code?
19 messages ยท Page 1 of 1 (latest)
@hardy ravine
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Please provide the full traceback for your exception in order to help us identify your issue.
While the last line of the error message tells us what kind of error you got,
the full traceback will tell us which line, and other critical information to solve your problem.
Please avoid screenshots so we can copy and paste parts of the message.
A full traceback could look like:
Traceback (most recent call last):
File "my_file.py", line 5, in <module>
add_three("6")
File "my_file.py", line 2, in add_three
a = num + 3
~~~~^~~
TypeError: can only concatenate str (not "int") to str
If the traceback is long, use our pastebin.
@hardy ravine you do not provide a surface for font.render to draw onto, font.render returns a surface with the text
so remove the root argument from pygame.font.Font.render
Yo
I need some help
Does anyone know tkinter
Im making a lable with an image with it put the image seems to be huge
I always have to extend the window and even if I do I can only see half the image
Heres the code for the label
label = Label(window,text="Exsample", font=('Arial', 40),fg='green',bg='black',image=image,compound='bottom')
label.place(x=100, y=150)
And heres the code for the image that I compound with the label
image = PhotoImage(file='C:/Users/QHTF/OneDrive/Desktop/Weed adicted guy.png')
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.