sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #07504
Re: [Question #181279]: __builtins__.type()
Question #181279 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/181279
Status: Open => Answered
RaiMan proposed the following answer:
use instead:
isinstance(some_object,class)
which returns True or False.
e.g.
reg = Region(1, 1, 100, 100)
if isinstance(reg, Region):
print "yes, a Region"
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.