Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
1

Haw can I add visuals?

Winterdude
Winterdude

I want people to play this and click instead of typing everything. Can I get some help?

1 year ago

Voters

Comments

TopNew
2
MrVoo
MrVoo

You can't add buttons in the console, you need to learn HTML, CSS, and JS for that. You can however use the getkey module. It's not a standard module, so you'll have to import it and add it with the packager (cube button). Use getkey like this:

from getkey import getkey print('Click "E"') key = getkey() if key == 'e': print('nice') else: print('wow rude')

Also, never ask the user if they want to run the program like you did in the beginning. It's annoying

1 year ago
0
Winterdude
Winterdude

Thanks, I'm a noob so I'm not very good [email protected]

1 year ago
1
TheDNAHero
TheDNAHero

@MrVoo
or you could use tkinter or turtle or pygame

1 year ago
2
MrVoo
MrVoo

@TheDNAHero
All of those look ugly on replit... don't

1 year ago
1
TheDNAHero
TheDNAHero

@MrVoo
I guess, but they are using python, so they must be desperate.

1 year ago
1
Winterdude
Winterdude

@TheDNAHero
I'm not desperate, I just didn't know what to use. my teacher told me to use python.

1 year ago
1
Winterdude
Winterdude

@TheDNAHero
It's good. We all make some bad assumptions. Take me for example. I keep messing up and calling people the wrong name.

1 year ago
Load more