- fixed the Tcl Command AlignDrill
- fixed the Tcl Command AlignDrillGrid - fixed the Tcl COmmand Panelize, Excellon panelization section - Fixed an issue in Tool Calibration export_excellon method call - PEP8 corrections all over the app
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
# ##########################################################
|
||||
|
||||
from PyQt5 import QtGui, QtCore, QtWidgets
|
||||
from PyQt5.QtCore import Qt, pyqtSlot, pyqtSignal, QSettings
|
||||
from PyQt5.QtCore import Qt, pyqtSlot, pyqtSignal
|
||||
from PyQt5.QtWidgets import QTextEdit, QCompleter, QAction
|
||||
from PyQt5.QtGui import QKeySequence, QTextCursor
|
||||
|
||||
@@ -2079,7 +2079,7 @@ class FCPlainTextAreaExtended(QtWidgets.QPlainTextEdit):
|
||||
"""
|
||||
pos = self.textCursor().position()
|
||||
self.moveCursor(QtGui.QTextCursor.StartOfLine)
|
||||
line_text = self.textCursor().block().text()
|
||||
self.textCursor().block().text()
|
||||
if self.textCursor().block().text().startswith(" "):
|
||||
# skip the white space
|
||||
self.moveCursor(QtGui.QTextCursor.NextWord)
|
||||
@@ -2407,7 +2407,7 @@ class FCInputDialogSpinnerButton(QtWidgets.QDialog):
|
||||
class FCButton(QtWidgets.QPushButton):
|
||||
def __init__(self, text=None, checkable=None, click_callback=None, parent=None):
|
||||
super(FCButton, self).__init__(text, parent)
|
||||
if not checkable is None:
|
||||
if checkable is not None:
|
||||
self.setCheckable(checkable)
|
||||
|
||||
if not click_callback is None:
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
# File Modified (major mod): Marius Adrian Stanciu #
|
||||
# Date: 3/10/2019 #
|
||||
# ##########################################################
|
||||
from PyQt5.QtCore import QSettings
|
||||
|
||||
import platform
|
||||
|
||||
from appGUI.GUIElements import *
|
||||
@@ -20,6 +22,7 @@ from appGUI.preferences.general.GeneralPreferencesUI import GeneralPreferencesUI
|
||||
from appGUI.preferences.geometry.GeometryPreferencesUI import GeometryPreferencesUI
|
||||
from appGUI.preferences.gerber.GerberPreferencesUI import GerberPreferencesUI
|
||||
from appEditors.AppGeoEditor import FCShapeTool
|
||||
|
||||
from matplotlib.backend_bases import KeyEvent as mpl_key_event
|
||||
|
||||
import webbrowser
|
||||
|
||||
@@ -170,8 +170,8 @@ class ObjectUI(QtWidgets.QWidget):
|
||||
|
||||
def confirmation_message_int(self, accepted, minval, maxval):
|
||||
if accepted is False:
|
||||
self.app.inform[str, bool].emit('[WARNING_NOTCL] %s: [%d, %d]' %
|
||||
(_("Edited value is out of range"), minval, maxval), False)
|
||||
self.app.inform[str, bool].emit(
|
||||
'[WARNING_NOTCL] %s: [%d, %d]' % (_("Edited value is out of range"), minval, maxval), False)
|
||||
else:
|
||||
self.app.inform[str, bool].emit('[success] %s' % _("Edited value is within limits."), False)
|
||||
|
||||
|
||||
@@ -575,13 +575,13 @@ class CursorBig(QtCore.QObject):
|
||||
|
||||
def set_data(self, pos, **kwargs):
|
||||
"""Internal event handler to draw the cursor when the mouse moves."""
|
||||
if 'edge_color' in kwargs:
|
||||
color = kwargs['edge_color']
|
||||
else:
|
||||
if self.app.defaults['global_theme'] == 'white':
|
||||
color = '#000000FF'
|
||||
else:
|
||||
color = '#FFFFFFFF'
|
||||
# if 'edge_color' in kwargs:
|
||||
# color = kwargs['edge_color']
|
||||
# else:
|
||||
# if self.app.defaults['global_theme'] == 'white':
|
||||
# color = '#000000FF'
|
||||
# else:
|
||||
# color = '#FFFFFFFF'
|
||||
|
||||
position = [pos[0][0], pos[0][1]]
|
||||
self.mouse_position_updated.emit(position)
|
||||
|
||||
@@ -29,9 +29,10 @@ class GLUTess:
|
||||
pass
|
||||
|
||||
def _on_combine(self, coords, data, weight):
|
||||
return (coords[0], coords[1], coords[2])
|
||||
return coords[0], coords[1], coords[2]
|
||||
|
||||
def _on_error(self, errno):
|
||||
@staticmethod
|
||||
def _on_error(errno):
|
||||
print("GLUTess error:", errno)
|
||||
|
||||
def _on_end_primitive(self):
|
||||
|
||||
@@ -339,7 +339,7 @@ class ShapeCollectionVisual(CompoundVisual):
|
||||
if update:
|
||||
self.__update()
|
||||
|
||||
def update_visibility(self, state:bool, indexes=None) -> None:
|
||||
def update_visibility(self, state: bool, indexes=None) -> None:
|
||||
# Lock sub-visuals updates
|
||||
self.update_lock.acquire(True)
|
||||
if indexes is None:
|
||||
@@ -540,8 +540,9 @@ class ShapeCollectionVisual(CompoundVisual):
|
||||
def redraw(self, indexes=None, update_colors=None):
|
||||
"""
|
||||
Redraws collection
|
||||
:param indexes: list
|
||||
:param indexes: list
|
||||
Shape indexes to get from process pool
|
||||
:param update_colors:
|
||||
"""
|
||||
# Only one thread can update data
|
||||
self.results_lock.acquire(True)
|
||||
|
||||
Reference in New Issue
Block a user