Timed popups aren't working

Asked by Tom Hinds

In the timed popup docs, here: http://sikulix-2014.readthedocs.io/en/latest/interaction.html, the example code is:
  result = popup("autoclosed after 3 seconds", 3)

When I try that example code, I get:
  2nd arg can't be coerced to String
Is the popup command expecting the 2nd parameter to be the title?
If so, do I have to fill in ALL the possible parameters for this to work?
  (message, title, preset, hidden, timeout, location)

Thanks for your help,
- Tom

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

Example is one thing, the other thing is the detailed usage information in the lines before :-(
Which simply telss, that the example is wrong :-(

correct:
 result = Do.popup("autoclosed after 3 seconds", 3)

I will correct the docs.
Thanks for finding.

Revision history for this message
Tom Hinds (thinds66) said :
#2

Thanks RaiMan, that solved my question.