sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #47954
Re: [Question #671416]: Script attempts to run then immediately stops, but provides no error msg
Question #671416 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/671416
RaiMan proposed the following answer:
using a class - this simply works:
class testClass():
def __init__(self):
self.var1 = "var1"
print "init done"
def aMethod(self, parm1):
print "aMethod:", parm1
self.var1 = parm1
test = testClass()
print "test.var1:", test.var1
test.aMethod("testing")
print "test.var1 (changed?):", test.var1
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.