← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #688886]: Defnition calling another Definition already declared.

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
if a def() is defined with a positional parameter, it MUST be given when
called.

This is a variant using keyword arguments:

def teste1(event = None):
  if not event:
     popup("teste 1")

def teste2(event = None):
  if not event:
     popup("teste 2")

def teste3(event = None):
  if not event:
     popup("teste 3")

def all(event = None):
  if not event:
    teste1()
    teste2()
    teste3()

all()

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