← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #680679]: SikuliXIDE; Mojave; Robot Framework: How does one get Region objects to work in Jython functions that are passed in from Robot Framework

 

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

Melvin Raymond posted a new comment:
By the way, just for those who might need to know. I simply put region =
eval(region) and app region = eval(app region) into the function below
to covert the arguments into a usable form that setROI could use:

  def column_options_context_menu (self, selected_view, dataset, column, region, overflow, appregion):
    region = eval(region) # converts Region object so it can be used in setROI(region) due to RFW
    appregion = eval(appregion) # converts Region object back to usable form for setROI(appregion)

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