Skip to content

Commit

Permalink
AutoScript improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaslaobeyer committed Aug 31, 2015
1 parent a8883a0 commit 38fd7f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/asmainwindow.cpp
Expand Up @@ -92,9 +92,9 @@ ASMainWindow::ASMainWindow(ASEngine *e, QWidget *parent) : QMainWindow(parent)
}

api->prepare();
_editor->setAutoCompletionCaseSensitivity(false);
/*_editor->setAutoCompletionCaseSensitivity(false);
_editor->setAutoCompletionThreshold(4);
_editor->setAutoCompletionSource(QsciScintilla::AcsAPIs);
_editor->setAutoCompletionSource(QsciScintilla::AcsAPIs);*/

_editor->setText(tr( "# \n"
"# AutoScript is based on Python. You can use all of\n"
Expand Down
2 changes: 0 additions & 2 deletions src/autoscript/asengine.cpp
Expand Up @@ -188,8 +188,6 @@ bool ASEngine::runScript(bool file, string script, vector<string> args, bool sim
{
initialized = true;

string pythonpath = "hello";

if(!file)
{
py::exec(py::str(script), global_namespace/*, local_namespace*/);
Expand Down
2 changes: 1 addition & 1 deletion src/autoscript/opencv/asmodules_opencv.cpp
Expand Up @@ -113,7 +113,7 @@ boost::python::list ImgProc::getTagDetections()
boost::python::list points;
for(int i = 0; i < 4; i++)
{
points.append(boost::python::make_tuple(detection.p[i].x, detection.p[i].y));
points.append(boost::python::make_tuple(detection.p[i].x + _roi_rect.x, detection.p[i].y + _roi_rect.y));
}
boost::python::tuple params = boost::python::make_tuple(detection.id, detection.good, points);
py_detections.append(params);
Expand Down

0 comments on commit 38fd7f3

Please sign in to comment.