- fixed some possible issues due of changes in version 2.0 of Shapely
- removed the import * statement from most of the app
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
|
||||
from appTool import *
|
||||
from PyQt6 import QtWidgets
|
||||
from appTool import AppToolEditor
|
||||
from appEditors.grb_plugins.GrbCommon import DrawToolShape
|
||||
from appGUI.GUIElements import VerticalScrollArea, FCLabel, FCButton, FCFrame, GLay, FCDoubleSpinner, FCComboBox
|
||||
|
||||
from copy import deepcopy
|
||||
import traceback
|
||||
|
||||
import gettext
|
||||
import appTranslation as fcTranslate
|
||||
import builtins
|
||||
|
||||
fcTranslate.apply_language('strings')
|
||||
if '_' not in builtins.__dict__:
|
||||
|
||||
@@ -4,16 +4,9 @@
|
||||
# ###########################################################################################
|
||||
|
||||
from PyQt6.QtCore import Qt
|
||||
from shapely.geometry import LineString, LinearRing, MultiLineString, Point, Polygon, MultiPolygon, box
|
||||
from shapely.ops import unary_union
|
||||
import shapely.affinity as affinity
|
||||
from shapely.geometry import MultiLineString, Polygon
|
||||
|
||||
import math
|
||||
import numpy as np
|
||||
from numpy.linalg import norm as numpy_norm
|
||||
|
||||
from vispy.geometry import Rect
|
||||
from copy import deepcopy
|
||||
|
||||
import logging
|
||||
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
|
||||
from appTool import *
|
||||
from PyQt6 import QtGui, QtWidgets
|
||||
from appTool import AppToolEditor
|
||||
from appGUI.GUIElements import VerticalScrollArea, FCLabel, FCButton, FCFrame, GLay, NumericalEvalEntry, RadioSet, \
|
||||
FCSpinner, FCDoubleSpinner
|
||||
|
||||
import gettext
|
||||
import appTranslation as fcTranslate
|
||||
import builtins
|
||||
|
||||
fcTranslate.apply_language('strings')
|
||||
if '_' not in builtins.__dict__:
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
|
||||
from appTool import *
|
||||
from PyQt6 import QtWidgets, QtGui
|
||||
from appTool import AppToolEditor
|
||||
from appGUI.GUIElements import VerticalScrollArea, FCLabel, FCButton, FCFrame, GLay, NumericalEvalEntry, \
|
||||
FCDoubleSpinner, FCSpinner, RadioSet
|
||||
import gettext
|
||||
import appTranslation as fcTranslate
|
||||
import builtins
|
||||
|
||||
fcTranslate.apply_language('strings')
|
||||
if '_' not in builtins.__dict__:
|
||||
@@ -304,7 +310,7 @@ class GrbPadArrayEditorUI:
|
||||
self.radius_entry = FCDoubleSpinner(policy=False)
|
||||
self.radius_entry.set_precision(self.decimals)
|
||||
self.radius_entry.setSingleStep(1.0)
|
||||
self.radius_entry.setRange(-10000.0000,10000.000)
|
||||
self.radius_entry.setRange(-10000.0000, 10000.000)
|
||||
|
||||
self.circ_grid.addWidget(self.radius_lbl, 4, 0)
|
||||
self.circ_grid.addWidget(self.radius_entry, 4, 1)
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
|
||||
from appTool import *
|
||||
from PyQt6 import QtWidgets, QtGui
|
||||
from appTool import AppToolEditor
|
||||
from appGUI.GUIElements import VerticalScrollArea, FCLabel, FCButton, FCFrame, GLay, FCDoubleSpinner, \
|
||||
NumericalEvalEntry
|
||||
|
||||
import gettext
|
||||
import appTranslation as fcTranslate
|
||||
import builtins
|
||||
|
||||
fcTranslate.apply_language('strings')
|
||||
if '_' not in builtins.__dict__:
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
|
||||
from appTool import *
|
||||
from PyQt6 import QtWidgets, QtGui, QtCore
|
||||
from appTool import AppToolEditor
|
||||
from appGUI.GUIElements import VerticalScrollArea, FCLabel, FCButton, FCFrame, GLay, FCTextEdit, FCEntry, \
|
||||
FCDoubleSpinner
|
||||
import gettext
|
||||
import appTranslation as fcTranslate
|
||||
import builtins
|
||||
|
||||
fcTranslate.apply_language('strings')
|
||||
if '_' not in builtins.__dict__:
|
||||
@@ -11,7 +17,7 @@ class SimplificationTool(AppToolEditor):
|
||||
Do a shape simplification for the selected geometry.
|
||||
"""
|
||||
|
||||
update_ui = pyqtSignal(object, int)
|
||||
update_ui = QtCore.pyqtSignal(object, int)
|
||||
|
||||
def __init__(self, app, draw_app):
|
||||
AppToolEditor.__init__(self, app)
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
|
||||
from appTool import *
|
||||
from PyQt6 import QtWidgets, QtGui
|
||||
from appTool import AppToolEditor
|
||||
from appGUI.GUIElements import VerticalScrollArea, FCLabel, FCButton, FCFrame, GLay, NumericalEvalEntry, \
|
||||
FCDoubleSpinner
|
||||
|
||||
import gettext
|
||||
import appTranslation as fcTranslate
|
||||
import builtins
|
||||
|
||||
fcTranslate.apply_language('strings')
|
||||
if '_' not in builtins.__dict__:
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
|
||||
from appTool import *
|
||||
from PyQt6 import QtGui, QtWidgets
|
||||
from appTool import AppToolEditor, AppTool
|
||||
from appGUI.GUIElements import VerticalScrollArea, FCLabel, FCButton, FCFrame, GLay, FCDoubleSpinner, \
|
||||
FCInputDoubleSpinner, FCComboBox, NumericalEvalTupleEntry, FCCheckBox, OptionalInputSection
|
||||
|
||||
import numpy as np
|
||||
|
||||
import gettext
|
||||
import appTranslation as fcTranslate
|
||||
import builtins
|
||||
|
||||
fcTranslate.apply_language('strings')
|
||||
if '_' not in builtins.__dict__:
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
|
||||
from appTool import *
|
||||
from PyQt6 import QtWidgets, QtGui
|
||||
from appTool import AppToolEditor
|
||||
from appGUI.GUIElements import VerticalScrollArea, FCLabel, FCDoubleSpinner, FCFrame, GLay, NumericalEvalEntry
|
||||
|
||||
import gettext
|
||||
import appTranslation as fcTranslate
|
||||
import builtins
|
||||
|
||||
fcTranslate.apply_language('strings')
|
||||
if '_' not in builtins.__dict__:
|
||||
|
||||
Reference in New Issue
Block a user