← Back to team overview

sikuli-driver team mailing list archive

[Question #277167]: import can not resolve Key constant even i already "from sikuli import *"

 

New question #277167 on Sikuli:
https://answers.launchpad.net/sikuli/+question/277167

sikuli version:1.1.0
the 2 script are in the same folder

#rooterset.sikuli
def openRooterSetting():
    type('d',Key.WIN)

#rooterrun.sikuli
from sikuli import *
import rooterset 
rooterset.openRooterSetting()

error info :
[error] script [ rooterrun ] stopped with error in line 3
[error] NameError ( global name 'Key' is not defined )
[error] --- Traceback --- error source first line: module ( function ) statement 3: rooterset ( openRooterSetting ) type('d',Key.WIN)
[error] --- Traceback --- end --------------


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