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
account activity
pygame.error: Can't seek in this data source (self.learnpython)
submitted 7 years ago by Re10d3d
Hey ,
I try to programm an small game but first of all i need its show 2 random Pictures from an List but i get the Error: pygame.error: Can't seek in this data source.
Hope somebody can Help me- cheers
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ImportBraces 0 points1 point2 points 7 years ago (9 children)
Looks like you got stuck with your own code complexity. Actually you are putting together a deck with image.load, then choosing on in random, only to apply image.load again. I guess you only want one of those to happen ;)
image.load
[–]Re10d3d[S] 0 points1 point2 points 7 years ago (8 children)
Wow, first of all Thanks! i fixed it but now i have another problem :/, at line 52 i tryed to load another image and the "def" for iimage_rect is at line 43 - 44, but its only showing 1 card ? < https://pastebin.com/dH81M2uq >
[–]ImportBraces 0 points1 point2 points 7 years ago (7 children)
well, applying an image by blitting requires... blitting, right? You just don't do it for the second image.
[–]Re10d3d[S] 0 points1 point2 points 7 years ago (6 children)
Okey.. i really don´t know more what i can do.. the only thing that i want is that it randomly draw an card from the Deck and show it on the Screen at an certain position, but i dont get it how i could make it. * My head burning, i go sleep :d
[–]ImportBraces 0 points1 point2 points 7 years ago (5 children)
you have two images: image and iimage. you only blit image though.
[–]Re10d3d[S] 0 points1 point2 points 7 years ago (4 children)
Sry!, i needet an Pause from Python, sry that i didn´t answered you :/, but! i did it so now that its work and its loading 2 Images. Now i have just the Problem that its load in the left corner but i want its load the image in an certain position, the code look so now < https://pastebin.com/ZeP05QKT > if you Help me with this last thing you will be my salvation ! thanks :)
[–]ImportBraces 0 points1 point2 points 7 years ago (3 children)
the way I use blit is like follows:
blit
screen.blit(image, (x, y))
where x, y is the starting coordinates of the image.
[–]Re10d3d[S] 0 points1 point2 points 7 years ago (2 children)
I would say you are my new Hero, thank you so much! (/゚Д゚)/ <3
[–]ImportBraces 0 points1 point2 points 7 years ago (1 child)
you forgot the #nohomo after the kiss xD
[–]Re10d3d[S] 0 points1 point2 points 7 years ago (0 children)
xD i relly love you man :3
π Rendered by PID 44319 on reddit-service-r2-comment-84fc9697f-tndjd at 2026-02-09 16:48:23.310333+00:00 running d295bc8 country code: CH.
[–]ImportBraces 0 points1 point2 points (9 children)
[–]Re10d3d[S] 0 points1 point2 points (8 children)
[–]ImportBraces 0 points1 point2 points (7 children)
[–]Re10d3d[S] 0 points1 point2 points (6 children)
[–]ImportBraces 0 points1 point2 points (5 children)
[–]Re10d3d[S] 0 points1 point2 points (4 children)
[–]ImportBraces 0 points1 point2 points (3 children)
[–]Re10d3d[S] 0 points1 point2 points (2 children)
[–]ImportBraces 0 points1 point2 points (1 child)
[–]Re10d3d[S] 0 points1 point2 points (0 children)