#π NEED HELP
25 messages Β· Page 1 of 1 (latest)
@tacit sphinx
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.
it's what's called an enum (I believe that's how it's implemented here)
pygame.quit() is the action, while pygame.QUIT is a type of event
ok
pygame.QUIT is a constant variable which you compare with the type of the event to tell what type that event is
pygame.quit() is an action hence the () it is used to close the pygame session i would assume
in programing case matters
see Print("Hello World") wont work only print("Hello World") does
Thanks bro
in python constants are not really a thing (you cant make veriables that can not be changed) but if you shouldnt change a variable aka it should be constant its often written with full capital letters
ok, so QUIT is just a name or constant and quit is actual action
print the value and see what it is
yes there are other event types too
idk pygame much so i cant say an example tho
you can close the thread with !close or !solved
also no need to special thank me birk said the same thing just sooner i just tried to explain in more detail
This help channel has been closed. 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.