- fixed a bug in NCC Tool and start trying to make the App responsive while the NCC tool is run in a non-threaded way

- fixed a GUI bug with the QMenuBar recently introduced
This commit is contained in:
Marius Stanciu
2019-10-12 19:57:05 +03:00
committed by Marius
parent 3bebc16725
commit 78721590e0
8 changed files with 74 additions and 18 deletions

View File

@@ -7,6 +7,7 @@
# ########################################################## ##
from PyQt5 import QtWidgets
from io import StringIO
import numpy as np
@@ -1273,6 +1274,9 @@ class Geometry(object):
# graceful abort requested by the user
raise FlatCAMApp.GracefulException
# provide the app with a way to process the GUI events when in a blocking loop
QtWidgets.QApplication.processEvents()
# Can only result in a Polygon or MultiPolygon
current = current.buffer(-tooldia * (1 - overlap), int(int(steps_per_circle) / 4))
if current.area > 0:
@@ -1362,6 +1366,9 @@ class Geometry(object):
# graceful abort requested by the user
raise FlatCAMApp.GracefulException
# provide the app with a way to process the GUI events when in a blocking loop
QtWidgets.QApplication.processEvents()
path = Point(seedpoint).buffer(radius, int(steps_per_circle / 4)).exterior
path = path.intersection(path_margin)
@@ -1459,6 +1466,9 @@ class Geometry(object):
# graceful abort requested by the user
raise FlatCAMApp.GracefulException
# provide the app with a way to process the GUI events when in a blocking loop
QtWidgets.QApplication.processEvents()
line = LineString([(left, y), (right, y)])
line = line.intersection(margin_poly)
lines_trimmed.append(line)