Screen on geany using python

How can I create a screen on geany using python?

you mean the software?

I don’t know if I mean the software.
Someone said to me that I need some application to make a screen or window using a language, but he don’t have sure.

okay i get it, there is a software screen geany you can actually make it do something in python or you can make some config using python

Sorry, but I don’t understand. Can you explain better plz?

okay i have a question for you?

do you want to design the geany software by your own self or you want the already designed one?

I have the geany software.
What I am asking is how can i made a window or screen from geany using the python language. And if its necessary installing some application to make that.

okay you know what?

geany screen is a code environment, just like atom, sublime, vscode, that’s what is it, it can be used to write codes and execute codes easily

No, you are not understanding my doubt.
I don’t know if you know something about python, but exists something called turtle program and its used to draw. I can’t do that on the terminal, so I need to put that on a different window.

yeah i know turtle module

but try using python IDE

Another software to code?

I think Geany is an IDE. This is their Website .You can get whatever it is you are looking for from there.

well i dont know any other way apart from that, because i use turtle a lot so mine works fine

Send me a code simple when you use the turtle.

yeah nice nibble that’s a good idea
or he can just download python 3.7 from python.org/downloads

okay
import turtle,time

delay=0.1

window= turtle.Screen()
window.title(“SnakeGameByMuskaf”)
window.bgcolor(‘black’)
window.setup(width=600, height=600)
window.tracer(0)
def movement():
if head.direction == “up”:
y=head.ycor()
head.sety(y + 20)
if head.direction == “down”:
y=head.ycor()
head.sety(y - 20)
if head.direction == “left”:
x=head.xcor()
head.setx(x - 20)
if head.direction == “right”:
x=head.xcor()
head.setx(head.xcor() + 20)

#snake body

def go_up():
head.direction = ‘up’

def go_down():
head.direction = ‘down’

def go_left():
head.direction = ‘left’

def go_right():
head.direction = ‘right’

head=turtle.Turtle()
head.speed(0)
head.shape(‘square’)
head.color(‘green’)
head.penup()
head.goto(0,0)
head.direction = ‘stop’

#keys
window.listen()
window.onkeypress(go_up, “Up”)
window.onkeypress(go_down, “Down”)
window.onkeypress(go_left, “Left”)
window.onkeypress(go_right, “Right”)
while True:
window.update()
movement()
time.sleep(delay)
window.mainloop()

Sorry, but the one that you gave me was too much complicated for what I wanna show.
So I am using that:

import turtles
wn = turtle.Screen()
alex = turtle.Turtle()

alex.forward (50)
alex.left (90)
alex.forward (30)

wn.mainloop ()

When I try to use this code appears:

Traceback (most recent call last):
File “turtle.py”, line 1, in
import turtle
File “…/python/turtle.py”, line 2, in
wn = turtle.Screen()
AttributeError: module ‘turtle’ has no attribute ‘Screen’

but from what you imported it says, import turtles instead of turtle
import turtles
wn = turtle.Screen()
alex = turtle.Turtle()

alex.forward (50)
alex.left (90)
alex.forward (30)

wn.mainloop ()

Sorry, The code is wrong but that part:

Traceback (most recent call last):
File “turtle.py”, line 1, in
import turtle
File “…/python/turtle.py”, line 2, in
wn = turtle.Screen()
AttributeError: module ‘turtle’ has no attribute ‘Screen’

is from when its import turtle