Parameter Markers not working as expected

Asked by Prakash Yalamarthi

hi,

I am trying to use simple parameter marker to read password from the user. Below one liner is throwing error.

password = input("Please enter your password here", hidden = True)

--> [error] TypeError ( input() got an unexpected keyword argument 'hidden' )

Similarly below is not working either.

items = ("nothing selected", "item1", "item2", "item3")
selected = select ("Please select an item from the list", options = items)
if selected == items[0]:
   popup("You did not select an item")
   exit(1)
--> [error] NameError ( name 'select' is not defined )

Can someone please help.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Prakash Yalamarthi
Solved:
Last query:
Last reply:
Revision history for this message
Prakash Yalamarthi (prakash-yalamarthi) said :
#1

Okay hidden = true is only available in 1.1.0+ same applies to items list i presume.

Revision history for this message
Vincent (6-vincent) said :
#2

Hi,

I am running 1.1.0+ and have a similar issue:

[error] NameError ( name 'select' is not defined ) on Linux only. I use the 'select' popup, to choose the application under test. This panel opens and works on Windows and OSX, but on Linux I get this error...

Can anybody assist please?

Thanks in advance.

Vincent

Revision history for this message
Vincent (6-vincent) said :
#3

Resolved it... found out I was running indeed the older 1.0.1 on the Linux machine... duh...

Cheers!