can anyone here help me write a code like these graphics:

i have been searching how to these, but i only saw you guys using turtle,, etc.. i need a code for only python22 (
i can only do stick figures, it would be a great help if someone can write a code for me, but i will change the color or the shape of some. I know you guys are saying that you are not going to do my work, but this is all i know.

You can download the module from:

The module itself has some demo/test code in it. There is also a reference to Prof. Zelle's book that uses this module.

Here is a typical example ...

# draw a circle on top of two rectangles
# using module graphics from:

from graphics import *

# create the window/frame
w = 300
h = 300
win = GraphWin("Red Circle", w, h)

# first rectangle using corner x, y coordinates
upper_left = Point(0, 0)
lower_right = Point(300, 150)
rect1 = Rectangle(upper_left, lower_right)
rect1.setWidth(0)  # no border

# second rectangle using corner x, y coordinates
upper_left = Point(0, 150)
lower_right = Point(300, 300)
rect2 = Rectangle(upper_left, lower_right)
rect2.setWidth(0)  # no border

# circle needs center x, y coordinates and radius
center = Point(150, 150)
radius = 80
circle = Circle(center, radius)

# wait, click mouse to go on/exit

Experiment with the coordinates and colors a little.

This question has already been answered. Start a new discussion instead.