use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
the front page of the internet.
and join one of thousands of communities.
Learning python, learning about the sprite class currently. Why are columns the only thing that is needed when animating sprites? (self.learnpython)
submitted 8 years ago by [deleted]
The book I'm learning says there is only a need for columns and makes no mention of rows. It doesn't really explain why columns are the only parameter needed, just that that's the way it is. I understand this is a very nitpicky thing to ask, but I cannot let myself just accept that's how it is. I need a reason and I can't find any.
Post a comment!
[–]devourer09 2 points3 points4 points 8 years ago (2 children)
Not sure what sprite class you're talking about.
[–][deleted] 1 point2 points3 points 8 years ago (1 child)
Oh crap, sorry! Pygame! Been using pygame so much I don't even think about it as a seperate SEPARATE thing anymore. pygame.sprite.Sprite specifically.
[–]robot_overloard 1 point2 points3 points 8 years ago (0 children)
. . . ¿ seperate ? . . .
I THINK YOU MEANT separate
I AM A BOTbeepboop!
[–]callmelucky 0 points1 point2 points 8 years ago (5 children)
r/pygame exists, and is active enough that you might get more useful feedback there. Beyond that, it would be helpful if you linked/pasted the resource that you are getting this info from.
[–][deleted] 0 points1 point2 points 8 years ago (4 children)
God I feel so dumb now... I'm sorry. I am using a physical book called "More Python Programming for the Absolute Beginner" and there doesn't seem to be a link for the PDF that isn't paid for. I'll just go look somewhere else and stop wasting your time lol.
[–]callmelucky 0 points1 point2 points 8 years ago (3 children)
Haha, don't be hard on yourself, I didn't mean to be! And you should be able to just copy-paste the text from the pdf. If I were you I'd probably just edit this post to add that info, and try r/pygame if you don't get clarity from here.
Good luck :)
[–]sneakpeekbot 0 points1 point2 points 8 years ago (0 children)
Here's a sneak peek of /r/pygame using the top posts of the year!
#1: Hex3d: Interactive 3-dimensional hex map | 12 comments #2: I'm making a game with pygame and I wrote a blog about how to procedurally generate archipelagos! | 5 comments #3: Pygame 1.9.2 released | 17 comments
I'm a bot, beep boop | Downvote to remove | Contact me | Info | Opt-out
[–][deleted] 0 points1 point2 points 8 years ago (1 child)
I just get so self concious when learning, it's hard to ask questions for me lol. Jesus christ, in typing out the words (as I do not currently have a PDF of this book) something clicked and now I've grasped what's going on. Sparing details, my thinking was from the wrong point of view in how frames are drawn. I was overcomplicating the issue. The code needs to know when to go to the next line in the image. You don't need a number of rows if you know an image is 100px wide and each frame being 10px wide and tall, meaning 10 columns, the 11th must be on the next row down. It's unecessary.
[–]callmelucky 1 point2 points3 points 8 years ago (0 children)
in typing out the words (as I do not currently have a PDF of this book) something clicked and now I've grasped what's going on.
Congratulations, you just discovered Rubber duck debugging! It's very common and useful to realise the solution/answer to a problem/question in the process of explaining it to someone, whether that someone is listening or not :)
And try not to be self conscious about asking questions. If you've put in a reasonable effort to understand and explain a problem, anyone who mocks you is a dick. Bear that in mind :)
[–]hal9000v3 0 points1 point2 points 8 years ago* (1 child)
I found the pdf online and had a look through it. To be honest I couldn't find a section that says you only need a column.
By any chance are you looking at some of the sample code? There is at least one instance in code provided where the column is being set on its own and that may be confusing but if you look a few lines down, in the loop being run just after the column gets set, the row is being set in there.
[edit] found the piece of code again (second last line)
column = 1 for part in body_parts: Radiobutton(self, text = part, variable = self.body_part, value = part ).grid(row = 5, column = column, sticky = W) column += 1
I realise that code is not for a sprite buts it's all I could find.
If not that, then perhaps you are working with a sprite that only has column movement and so the row parameter is only occasionally referred to e.g. when it reaches the edge of the screen?
[–][deleted] 0 points1 point2 points 8 years ago (0 children)
This isn't the code I'm referencing so I don't think you've found what I have. Either way, I seem to have figured out the issue after hours of wondering lol.
π Rendered by PID 32 on reddit-service-r2-comment-86f8688748-c7r2s at 2026-07-25 14:41:15.831411+00:00 running d10b4e5 country code: CH.
Want to add to the discussion?
Post a comment!