View Single Post
Old 07-12-2015, 09:25 AM   #1
CalibUser
Addict
CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.
 
Posts: 203
Karma: 62362
Join Date: Jul 2015
Device: Sony
Regex-Functions - getting user input

Hi,

I am writing a regex-function for the Editor in Callibre that needs to obtain user input. I am new to Python and having searched various websites I found that there seems to be two Python functions for obtaining input from the user:

raw_input()

and

input()

However, when used in Callibre Editor these both give the error message:

EOFError: EOF when reading a line

I assume this is because these two pieces of code are used for the Python command window and do not work in windows.

How can I open a window to obtain user input?
CalibUser is offline   Reply With Quote