Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 1120 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to make a fathers day card using python pls help me fast

#1
from turtle import *

wop = Screen()
wop.screensize(800, 800)
wop.bgpic('background.html')

wop.tracer(0)
wop.register_shape('heart gif.gif')


texts = Turtle()
texts.speed(10)
texts.hideturtle()


bal = Turtle()
bal.penup()
bal.hideturtle()

dy = 0
y = 0

def key1():
global dy
dy = 0.2


def small_curve():
speed(0)
for t in range(45):
right(5)
forward(1)

def small_hearts(x, y):
penup()
goto(x, y)
pendown()
pensize(0)
color('white', 'red')
begin_fill()
left(140)
forward(25)
small_curve()

left(160)
small_curve()
forward(25)
end_fill()
hideturtle()
left(150)

def curve():
speed(0)
for j in range(320):
right(0.7)
forward(1)

def hearts(x, y):
penup()
goto(x, y)
pendown()
pensize(4)
color('white', 'red')
begin_fill()
left(150)
forward(145)
curve()

left(150)
curve()
forward(145)
end_fill()
hideturtle()
left(150)

wop.listen()
wop.onkeypress(key1, 'Up')

onscreenclick(hearts, 1)
onscreenclick(small_hearts, 3)

while True:
y += dy
y %= 800

bal.goto(320, y)
bal.shape('Heart.gif')
bal.stamp()

bal.goto(320, y - 800)
bal.shape('Heart.gif')
bal.stamp()

wop.update()
bal.clear()

my code is this nd its working but,my background picture is not showing pls help me fix itfast
Reply

#2
Moved from Requests to Python.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through