pyTurtle 9 | Adding images to turtle canvas | #pyGuru

pyTurtle 9 | Adding images to turtle canvas | #pyGuru

pyGuru

4 года назад

27,981 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@cat_dev331
@cat_dev331 - 12.12.2023 11:20

👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍

Ответить
@TomekZiom_YT
@TomekZiom_YT - 08.04.2023 13:38

THANK YOU SO MUCH ♥♥♥♥!!! Other videos are showing how to DRAW a shape/background, and you helped me. Here you have like + subscribe with all novications :D

Ответить
@saskia_berger
@saskia_berger - 22.02.2023 12:28

Very neat tutorial! I'd appreciate if you'd make one about resizing the images in turtle! I'm struggling with it

Ответить
@insurgencless
@insurgencless - 20.02.2023 01:38

i was just watching this video to see how to resize a image but you completely just skip that part

Ответить
@comfychloe6593
@comfychloe6593 - 28.09.2022 06:59

really helpful channel

Ответить
@edrisvega7481
@edrisvega7481 - 07.09.2022 03:57

Very Informative 👍

Ответить
@maddex6664
@maddex6664 - 04.09.2022 13:18

src code bro

Ответить
@lightbasil751
@lightbasil751 - 03.07.2022 20:36

Does the picture have to be a gif? If not then what kind of files work?

Ответить
@maciejw6145
@maciejw6145 - 11.05.2022 19:50

Thank you

Ответить
@Ara_Ara_Kocho69
@Ara_Ara_Kocho69 - 12.03.2022 11:31

It didn't work for me...💔

Ответить
@ahmedarshad5564
@ahmedarshad5564 - 28.12.2021 15:49

can someone provide a link to these pics my pics dont fit the screen

Ответить
@abhip1i
@abhip1i - 24.12.2021 18:11

How can I play gif animation in background, it shows static image. Can you pls suggest. If not possible using turtile, what should be done

Ответить
@andrej4806
@andrej4806 - 16.12.2021 19:40

Thank you man, I searched for so many tutorials, but this is the first one that helped me

Ответить
@duldularmar
@duldularmar - 24.10.2021 12:49

If we code pygame and turtle together does it make two windows?

Ответить
@ManishPatel-he6zg
@ManishPatel-he6zg - 02.07.2021 11:00

thank you bhai

Ответить
@srijitapaul5080
@srijitapaul5080 - 21.05.2021 17:49

A lot of u guys have commented that this doesn't work, well it was same for me.
Here is a working solution for me:

import turtle
import os



wn = turtle.Screen()
wn.bgpic(os.path.expanduser("~/Desktop/Name of ur gif.gif"))



wn.mainloop()

You need to import os, and then use os.path.expanduser.
Its the same for attaching it to the turtle:

import turtle
import os

wn = turtle.Screen()

player = turtle.Turtle()

wn.addshape(os.path.expanduser("~/Desktop/Name of ur gif.gif"))
player.shape(os.path.expanduser("~/Desktop/Name of ur gif.gif"))



wn.mainloop()

Ответить
@mr.mshazaz2272
@mr.mshazaz2272 - 05.05.2021 21:59

The intro is awsome

Ответить
@polunochNY
@polunochNY - 02.04.2021 12:31

how i can change icon of window? help please

Ответить
@nithen8179
@nithen8179 - 13.02.2021 12:12

Thanks! I got it working

Ответить
@dev_blakee9601
@dev_blakee9601 - 06.02.2021 18:04

turtle.TurtleGraphicsError: There is no shape named Trash_Can.gif help

Ответить
@xtremewolve
@xtremewolve - 12.11.2020 11:32

i cant do this its not working but anyway nice vid keep it up

Ответить
@rishabhdixit1689
@rishabhdixit1689 - 24.09.2020 07:50

This is not working at all..............

Ответить
@dimitrismwrakis6910
@dimitrismwrakis6910 - 23.09.2020 17:16

Nice video though,i ll try and fix the problem

Ответить
@dimitrismwrakis6910
@dimitrismwrakis6910 - 23.09.2020 17:14

No man doesnt work. I do have the files in the same folder, i'm on windows my editor is sublime, it loads the background pic but thats all. not my heroe character.I also comverted my pics as GIF

Ответить
@tokito2660
@tokito2660 - 13.07.2020 16:16

it does nt work bro

Ответить
@charzairdslayer3008
@charzairdslayer3008 - 08.07.2020 10:09

How to do this for Mac?
I can't find a way to put the gif in my python file folder
the folder doesn't support gifs

Ответить
@excellentgyankosh
@excellentgyankosh - 14.06.2020 08:10

Can I use PIL module to resize the rocket?

Ответить
@frenkicekaj8134
@frenkicekaj8134 - 03.05.2020 22:44

thanks but it doesn't work for me:(

Ответить