Re: [Tutor] Console application

2016-01-16 Thread Alan Gauld
On 16/01/16 21:18, Ali Moradi wrote: > Hi, i don't have any clue how to write a console program that shows a list > of options which could be chosen with keyboard and when one item was > selected, a text shows there. > > I want to know, which things i need to write a program like that? > > Input(

Re: [Tutor] Console application

2016-01-16 Thread Ben Finney
Ali Moradi writes: > Hi, i don't have any clue how to write a console program that shows a > list of options which could be chosen with keyboard and when one item > was selected, a text shows there. A text shows where? Shows at the point of input, at the point of the option, at some other point?

[Tutor] Console application

2016-01-16 Thread Ali Moradi
Hi, i don't have any clue how to write a console program that shows a list of options which could be chosen with keyboard and when one item was selected, a text shows there. I want to know, which things i need to write a program like that? Input() , print, and What? :( __

Re: [Tutor] Console Application - Key Events

2012-05-08 Thread BRAGA, Bruno
Yeah, what you say makes sense... I was hoping that there was a nice way of doing it, but I will just have to stick with "running the command yourself". I thought there could be a solution, maybe based on Ncurses, or even on the "read" command, but they can not get the keys pressed if the applicat

Re: [Tutor] Console Application - Key Events

2012-05-08 Thread Alan Gauld
On 08/05/12 02:44, BRAGA, Bruno wrote: I would like to know if there is any "easy" way to handle events (such as mouse movements, keyboard keys pressed, etc) in console based python applications? You need to be more specific about what you mean. Consoles don't have mice. Keyboard events are eas

[Tutor] Console Application - Key Events

2012-05-07 Thread BRAGA, Bruno
Hi tutors, I would like to know if there is any "easy" way to handle events (such as mouse movements, keyboard keys pressed, etc) in console based python applications? More specifically, I am working on a screensaver for terminals ( http://termsaver.info), so I would like to simulate the same beh