Skip to content
← Back to Community
How to get a set of eyeballs that follow your cursor in python graphics
Profile icon
MemeManHimself

Note: Make sure not to run the repl until you finish "setting up the repl"

Setting up the repl

Step 1:

Create a python repl
Not python turtle, or any other variants, just a plain old snek Python repl.

Step 2:

Run any code that uses Python graphics. I always use Turtle. An easy way to do this is to just run this code:

import turtle t = turtle.Turtle() t.forward(20)

You should end up with something like this:

Screenshot 2020-09-16 at 9.47.11 AM - Display 1

It will be easier if you make that screen as large as possible.

Getting the eyeballs

Step 1

Move your cursor over the graphics. If your cursor is an "X", then you may have to make a new repl and repeat these steps.

Step 2

Right click

Screenshot 2020-09-16 at 9.47.53 AM

Step 3

Hover over the "games" section

Screenshot 2020-09-16 at 9.48.04 AM

Hover over "toys"

Screenshot 2020-09-16 at 9.48.15 AM

Step 5

Click "Xeyes"

Screenshot 2020-09-16 at 9.48.34 AM

Oh, and click the "X" on the Python turtle graphics window

Have a good day, and make sure to eat a potato stay safe!

Voters
Profile icon
Barry123
Profile icon
MemeManHimself
Comments
hotnewtop
Profile icon
SuperVictor64

how do I enable/get the taskbar?

Profile icon
MemeManHimself

@SuperVictor64
Right click on the emulated desktop

Profile icon
CodeLongAndPros

Uh so this is a tutorial on how to run a X11 program? I mean, can you not just start x and then run xeyes?

Profile icon
MemeManHimself

@CodeLongAndPros
idk. can you?

Profile icon
CodeLongAndPros
Profile icon
Barry123

Wow this is fun!

Profile icon
MemeManHimself

@Barry123
Thanks!