mayank0110 / pynguin

Automatically exported from code.google.com/p/pynguin
GNU General Public License v3.0
0 stars 0 forks source link

Use of input function doesn't return. Maybe foresee alternative/overridden input method. #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. try to use the input function from the interactive window
2. name = input("what is your name ?")
3. this leaves the prompt, and we don't return to the prompt after hitting 
enter. 

What is the expected output? What do you see instead?
Expected:
>>> name = input("what is  your name ?")
what is  your name ? wim
>>> print name
wim

or
name = input("what is your name ? ")
-> an input dialog pops up to get the input. when leaving the dialog the progam 
continues or interactive interpretor prompt is returned. 

Instead
>>> name = input("what is  your name ?")
what is  your name ? wim
(no mechanism to "return"). 

What version of the product are you using? On what operating system?
0.9 / linux ubuntu 

Please provide any additional information below.

Original issue reported on code.google.com by wim.ocke...@gmail.com on 27 Oct 2010 at 6:38

GoogleCodeExporter commented 9 years ago
Issue 46 has been merged into this issue.

Original comment by miss...@hotmail.com on 27 Oct 2010 at 10:17

GoogleCodeExporter commented 9 years ago
Issue 47 has been merged into this issue.

Original comment by miss...@hotmail.com on 27 Oct 2010 at 10:17

GoogleCodeExporter commented 9 years ago
I had never tried input (or raw_input) in pynguin before. Thanks for the report.

I like the idea of having a function that can pop up a dialog... but I think it 
should probably also work as normal at the interactive prompt.

Original comment by miss...@hotmail.com on 27 Oct 2010 at 10:19

GoogleCodeExporter commented 9 years ago
input() and raw_input() sort of work in latest push.

Still need to figure out how to get correct keys. Maybe read text directly from 
TextEdit when input is finished.

Original comment by miss...@hotmail.com on 28 Oct 2010 at 2:45

GoogleCodeExporter commented 9 years ago
input() and raw_input() work now.

If you want a separate way to have a dialog box pop up for input,
please start a new bug for an enhancement.

Original comment by miss...@hotmail.com on 12 Jun 2011 at 9:33