← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #676268]: Blank text for Do.popAsk

 

Question #676268 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/676268

    Status: Open => Answered

RaiMan proposed the following answer:
my test:

def Start(event):
  Main()

def Main():
  button = Do.popAsk("test", "Error", 10)
  if button == False:
    exit(1)

Start(None)

works as expected (using 1.1.4)

BTW: (Python/Jython rules)
- by convention function names should be written starting with lowercase (starting uppercase are names for classes)
- a function should not be named main (since it overwrites the internally used name main, which might lead to problems)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.