Straight to the point, is it possible to hold a key down in python's Turtle and execute a piece of code, eg:
when space is held for 3 seconds - Space()
Here's the code if needed:
import time
import sys
import turtle
width = 800
height = 600
turtle.screensize(width, height)
turtle.title('Youtube')
turtle.hideturtle()
turtle.penup()
def text(text, posx, posy, size):
turtle.pencolor('white')
turtle.goto(posx, posy)
turtle.write(text, font=("Arial", size, "normal"))
##ScreenRender
turtle.bgpic("background.gif")
turtle.hideturtle
#Text
text('Record A Video', -400, 225, 20)
text('Hold Space...', -345, 200, 15)
##End
turtle.done()