Ask coding questions

← Back to all posts
Interactive Console?
TheWeebMonkey

Hello, I'm currently learning to make AI in python and I am wondering if you can make an Interactive Console in python. I am pretty sure you can't but I want to double check

Answered by JBloves27 [earned 5 cycles]
View Answer
Voters
TheWeebMonkey
Comments
hotnewtop
InvisibleOne

what do you mean by interactive console?

TheWeebMonkey

@InvisibleOne Where you can click the options you want. So lets say you have different options like "1. mine 2. save" and you want to mine then you would click mine instead of having to enter which one you want.

JBloves27

This is not possible unless you;
1. Enter using getkey or an input
2. Use flask or a web framework like django.

Otherwise, this probably isn't possible. @TheWeebMonkey

TheDNAHero

Solution. Switch to javascript. @JBloves27

TheWeebMonkey

@JBloves27 ok thanks

JBloves27

Ehh, but you would still have to use a web framework. It's pretty much impossible using only the console and making it interactive. @TheDNAHero

JBloves27

No problem! Glad I helped! @TheWeebMonkey

TheDNAHero

Well yes but you don't need that much @JBloves27

InvisibleOne

That's possible with some python graphical libraries but not really in the console which is true for almost any language. @TheWeebMonkey

JBloves27

True. I'm just pointing out that it's only possible with a web framework. @TheDNAHero

InvisibleOne

Or a graphical interface @JBloves27. Stuff like pygame can register mouse clicks and it isn't a web framework.

JBloves27

Ah, yep, that's the word I was looking for. @InvisibleOne

kala9790kala979

relatable