- PEP8 changes and PyCharm suggestions
This commit is contained in:
committed by
Marius Stanciu
parent
9abe11ff42
commit
dea7ce3028
@@ -1,7 +1,7 @@
|
||||
from PyQt5 import QtWidgets
|
||||
from PyQt5.QtCore import QSettings
|
||||
|
||||
from appGUI.GUIElements import FCDoubleSpinner, RadioSet, FCCheckBox, NumericalEvalTupleEntry, NumericalEvalEntry
|
||||
from appGUI.GUIElements import FCCheckBox, FCLabel
|
||||
from appGUI.preferences.OptionsGroupUI import OptionsGroupUI
|
||||
import gettext
|
||||
import appTranslation as fcTranslate
|
||||
@@ -31,7 +31,7 @@ class ExcellonAdvOptPrefGroupUI(OptionsGroupUI):
|
||||
# ## ADVANCED OPTIONS ###
|
||||
# #######################
|
||||
|
||||
self.exc_label = QtWidgets.QLabel('<b>%s:</b>' % _('Advanced Options'))
|
||||
self.exc_label = FCLabel('<b>%s:</b>' % _('Advanced Options'))
|
||||
self.exc_label.setToolTip(
|
||||
_("A list of advanced parameters.\n"
|
||||
"Those parameters are available only for\n"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from PyQt5 import QtWidgets
|
||||
from PyQt5.QtCore import QSettings
|
||||
|
||||
from appGUI.GUIElements import FCSpinner, FCDoubleSpinner, RadioSet
|
||||
from appGUI.GUIElements import FCSpinner, FCDoubleSpinner, RadioSet, FCLabel
|
||||
from appGUI.preferences.OptionsGroupUI import OptionsGroupUI
|
||||
|
||||
import gettext
|
||||
@@ -27,7 +27,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
|
||||
self.decimals = decimals
|
||||
|
||||
# Excellon Editor Parameters
|
||||
self.param_label = QtWidgets.QLabel("<b>%s:</b>" % _("Parameters"))
|
||||
self.param_label = FCLabel("<b>%s:</b>" % _("Parameters"))
|
||||
self.param_label.setToolTip(
|
||||
_("A list of Excellon Editor parameters.")
|
||||
)
|
||||
@@ -37,7 +37,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
|
||||
self.layout.addLayout(grid0)
|
||||
|
||||
# Selection Limit
|
||||
self.sel_limit_label = QtWidgets.QLabel('%s:' % _("Selection limit"))
|
||||
self.sel_limit_label = FCLabel('%s:' % _("Selection limit"))
|
||||
self.sel_limit_label.setToolTip(
|
||||
_("Set the number of selected Excellon geometry\n"
|
||||
"items above which the utility geometry\n"
|
||||
@@ -52,7 +52,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.sel_limit_entry, 0, 1)
|
||||
|
||||
# New Diameter
|
||||
self.addtool_entry_lbl = QtWidgets.QLabel('%s:' % _('New Dia'))
|
||||
self.addtool_entry_lbl = FCLabel('%s:' % _('New Dia'))
|
||||
self.addtool_entry_lbl.setToolTip(
|
||||
_("Diameter for the new tool")
|
||||
)
|
||||
@@ -65,7 +65,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.addtool_entry, 1, 1)
|
||||
|
||||
# Number of drill holes in a drill array
|
||||
self.drill_array_size_label = QtWidgets.QLabel('%s:' % _('Nr of drills'))
|
||||
self.drill_array_size_label = FCLabel('%s:' % _('Nr of drills'))
|
||||
self.drill_array_size_label.setToolTip(
|
||||
_("Specify how many drills to be in the array.")
|
||||
)
|
||||
@@ -77,11 +77,11 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.drill_array_size_label, 2, 0)
|
||||
grid0.addWidget(self.drill_array_size_entry, 2, 1)
|
||||
|
||||
self.drill_array_linear_label = QtWidgets.QLabel('<b>%s:</b>' % _('Linear Drill Array'))
|
||||
self.drill_array_linear_label = FCLabel('<b>%s:</b>' % _('Linear Drill Array'))
|
||||
grid0.addWidget(self.drill_array_linear_label, 3, 0, 1, 2)
|
||||
|
||||
# Linear Drill Array direction
|
||||
self.drill_axis_label = QtWidgets.QLabel('%s:' % _('Linear Direction'))
|
||||
self.drill_axis_label = FCLabel('%s:' % _('Linear Direction'))
|
||||
self.drill_axis_label.setToolTip(
|
||||
_("Direction on which the linear array is oriented:\n"
|
||||
"- 'X' - horizontal axis \n"
|
||||
@@ -97,7 +97,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.drill_axis_radio, 4, 1)
|
||||
|
||||
# Linear Drill Array pitch distance
|
||||
self.drill_pitch_label = QtWidgets.QLabel('%s:' % _('Pitch'))
|
||||
self.drill_pitch_label = FCLabel('%s:' % _('Pitch'))
|
||||
self.drill_pitch_label.setToolTip(
|
||||
_("Pitch = Distance between elements of the array.")
|
||||
)
|
||||
@@ -110,7 +110,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.drill_pitch_entry, 5, 1)
|
||||
|
||||
# Linear Drill Array custom angle
|
||||
self.drill_angle_label = QtWidgets.QLabel('%s:' % _('Angle'))
|
||||
self.drill_angle_label = FCLabel('%s:' % _('Angle'))
|
||||
self.drill_angle_label.setToolTip(
|
||||
_("Angle at which each element in circular array is placed.")
|
||||
)
|
||||
@@ -123,11 +123,11 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.drill_angle_label, 6, 0)
|
||||
grid0.addWidget(self.drill_angle_entry, 6, 1)
|
||||
|
||||
self.drill_array_circ_label = QtWidgets.QLabel('<b>%s:</b>' % _('Circular Drill Array'))
|
||||
self.drill_array_circ_label = FCLabel('<b>%s:</b>' % _('Circular Drill Array'))
|
||||
grid0.addWidget(self.drill_array_circ_label, 7, 0, 1, 2)
|
||||
|
||||
# Circular Drill Array direction
|
||||
self.drill_circular_direction_label = QtWidgets.QLabel('%s:' % _('Circular Direction'))
|
||||
self.drill_circular_direction_label = FCLabel('%s:' % _('Circular Direction'))
|
||||
self.drill_circular_direction_label.setToolTip(
|
||||
_("Direction for circular array.\n"
|
||||
"Can be CW = clockwise or CCW = counter clockwise.")
|
||||
@@ -140,7 +140,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.drill_circular_dir_radio, 8, 1)
|
||||
|
||||
# Circular Drill Array Angle
|
||||
self.drill_circular_angle_label = QtWidgets.QLabel('%s:' % _('Circular Angle'))
|
||||
self.drill_circular_angle_label = FCLabel('%s:' % _('Circular Angle'))
|
||||
self.drill_circular_angle_label.setToolTip(
|
||||
_("Angle at which each element in circular array is placed.")
|
||||
)
|
||||
@@ -155,11 +155,11 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
|
||||
|
||||
# ##### SLOTS #####
|
||||
# #################
|
||||
self.drill_array_circ_label = QtWidgets.QLabel('<b>%s:</b>' % _('Slots'))
|
||||
self.drill_array_circ_label = FCLabel('<b>%s:</b>' % _('Slots'))
|
||||
grid0.addWidget(self.drill_array_circ_label, 10, 0, 1, 2)
|
||||
|
||||
# Slot length
|
||||
self.slot_length_label = QtWidgets.QLabel('%s:' % _('Length'))
|
||||
self.slot_length_label = FCLabel('%s:' % _('Length'))
|
||||
self.slot_length_label.setToolTip(
|
||||
_("Length. The length of the slot.")
|
||||
)
|
||||
@@ -175,7 +175,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.slot_length_entry, 11, 1)
|
||||
|
||||
# Slot direction
|
||||
self.slot_axis_label = QtWidgets.QLabel('%s:' % _('Direction'))
|
||||
self.slot_axis_label = FCLabel('%s:' % _('Direction'))
|
||||
self.slot_axis_label.setToolTip(
|
||||
_("Direction on which the slot is oriented:\n"
|
||||
"- 'X' - horizontal axis \n"
|
||||
@@ -191,7 +191,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.slot_axis_radio, 12, 1)
|
||||
|
||||
# Slot custom angle
|
||||
self.slot_angle_label = QtWidgets.QLabel('%s:' % _('Angle'))
|
||||
self.slot_angle_label = FCLabel('%s:' % _('Angle'))
|
||||
self.slot_angle_label.setToolTip(
|
||||
_("Angle at which the slot is placed.\n"
|
||||
"The precision is of max 2 decimals.\n"
|
||||
@@ -212,11 +212,11 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
|
||||
# #### SLOTS ARRAY #######
|
||||
# ########################
|
||||
|
||||
self.slot_array_linear_label = QtWidgets.QLabel('<b>%s:</b>' % _('Linear Slot Array'))
|
||||
self.slot_array_linear_label = FCLabel('<b>%s:</b>' % _('Linear Slot Array'))
|
||||
grid0.addWidget(self.slot_array_linear_label, 14, 0, 1, 2)
|
||||
|
||||
# Number of slot holes in a drill array
|
||||
self.slot_array_size_label = QtWidgets.QLabel('%s:' % _('Nr of slots'))
|
||||
self.slot_array_size_label = FCLabel('%s:' % _('Nr of slots'))
|
||||
self.drill_array_size_label.setToolTip(
|
||||
_("Specify how many slots to be in the array.")
|
||||
)
|
||||
@@ -229,7 +229,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.slot_array_size_entry, 15, 1)
|
||||
|
||||
# Linear Slot Array direction
|
||||
self.slot_array_axis_label = QtWidgets.QLabel('%s:' % _('Linear Direction'))
|
||||
self.slot_array_axis_label = FCLabel('%s:' % _('Linear Direction'))
|
||||
self.slot_array_axis_label.setToolTip(
|
||||
_("Direction on which the linear array is oriented:\n"
|
||||
"- 'X' - horizontal axis \n"
|
||||
@@ -245,7 +245,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.slot_array_axis_radio, 16, 1)
|
||||
|
||||
# Linear Slot Array pitch distance
|
||||
self.slot_array_pitch_label = QtWidgets.QLabel('%s:' % _('Pitch'))
|
||||
self.slot_array_pitch_label = FCLabel('%s:' % _('Pitch'))
|
||||
self.slot_array_pitch_label.setToolTip(
|
||||
_("Pitch = Distance between elements of the array.")
|
||||
)
|
||||
@@ -260,7 +260,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.slot_array_pitch_entry, 17, 1)
|
||||
|
||||
# Linear Slot Array custom angle
|
||||
self.slot_array_angle_label = QtWidgets.QLabel('%s:' % _('Angle'))
|
||||
self.slot_array_angle_label = FCLabel('%s:' % _('Angle'))
|
||||
self.slot_array_angle_label.setToolTip(
|
||||
_("Angle at which each element in circular array is placed.")
|
||||
)
|
||||
@@ -273,11 +273,11 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.slot_array_angle_label, 18, 0)
|
||||
grid0.addWidget(self.slot_array_angle_entry, 18, 1)
|
||||
|
||||
self.slot_array_circ_label = QtWidgets.QLabel('<b>%s:</b>' % _('Circular Slot Array'))
|
||||
self.slot_array_circ_label = FCLabel('<b>%s:</b>' % _('Circular Slot Array'))
|
||||
grid0.addWidget(self.slot_array_circ_label, 19, 0, 1, 2)
|
||||
|
||||
# Circular Slot Array direction
|
||||
self.slot_array_circular_direction_label = QtWidgets.QLabel('%s:' % _('Circular Direction'))
|
||||
self.slot_array_circular_direction_label = FCLabel('%s:' % _('Circular Direction'))
|
||||
self.slot_array_circular_direction_label.setToolTip(
|
||||
_("Direction for circular array.\n"
|
||||
"Can be CW = clockwise or CCW = counter clockwise.")
|
||||
@@ -290,7 +290,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.slot_array_circular_dir_radio, 20, 1)
|
||||
|
||||
# Circular Slot Array Angle
|
||||
self.slot_array_circular_angle_label = QtWidgets.QLabel('%s:' % _('Circular Angle'))
|
||||
self.slot_array_circular_angle_label = FCLabel('%s:' % _('Circular Angle'))
|
||||
self.slot_array_circular_angle_label.setToolTip(
|
||||
_("Angle at which each element in circular array is placed.")
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from PyQt5 import QtWidgets, QtCore
|
||||
from PyQt5.QtCore import QSettings
|
||||
|
||||
from appGUI.GUIElements import RadioSet, FCSpinner
|
||||
from appGUI.GUIElements import RadioSet, FCSpinner, FCLabel
|
||||
from appGUI.preferences.OptionsGroupUI import OptionsGroupUI
|
||||
import gettext
|
||||
import appTranslation as fcTranslate
|
||||
@@ -27,7 +27,7 @@ class ExcellonExpPrefGroupUI(OptionsGroupUI):
|
||||
self.decimals = decimals
|
||||
|
||||
# Plot options
|
||||
self.export_options_label = QtWidgets.QLabel("<b>%s:</b>" % _("Export Options"))
|
||||
self.export_options_label = FCLabel("<b>%s:</b>" % _("Export Options"))
|
||||
self.export_options_label.setToolTip(
|
||||
_("The parameters set here are used in the file exported\n"
|
||||
"when using the File -> Export -> Export Excellon menu entry.")
|
||||
@@ -38,7 +38,7 @@ class ExcellonExpPrefGroupUI(OptionsGroupUI):
|
||||
self.layout.addLayout(form)
|
||||
|
||||
# Excellon Units
|
||||
self.excellon_units_label = QtWidgets.QLabel('%s:' % _('Units'))
|
||||
self.excellon_units_label = FCLabel('%s:' % _('Units'))
|
||||
self.excellon_units_label.setToolTip(
|
||||
_("The units used in the Excellon file.")
|
||||
)
|
||||
@@ -52,7 +52,7 @@ class ExcellonExpPrefGroupUI(OptionsGroupUI):
|
||||
form.addRow(self.excellon_units_label, self.excellon_units_radio)
|
||||
|
||||
# Excellon non-decimal format
|
||||
self.digits_label = QtWidgets.QLabel("%s:" % _("Int/Decimals"))
|
||||
self.digits_label = FCLabel("%s:" % _("Int/Decimals"))
|
||||
self.digits_label.setToolTip(
|
||||
_("The NC drill files, usually named Excellon files\n"
|
||||
"are files that can be found in different formats.\n"
|
||||
@@ -71,7 +71,7 @@ class ExcellonExpPrefGroupUI(OptionsGroupUI):
|
||||
)
|
||||
hlay1.addWidget(self.format_whole_entry, QtCore.Qt.AlignLeft)
|
||||
|
||||
excellon_separator_label = QtWidgets.QLabel(':')
|
||||
excellon_separator_label = FCLabel(':')
|
||||
excellon_separator_label.setFixedWidth(5)
|
||||
hlay1.addWidget(excellon_separator_label, QtCore.Qt.AlignLeft)
|
||||
|
||||
@@ -88,7 +88,7 @@ class ExcellonExpPrefGroupUI(OptionsGroupUI):
|
||||
form.addRow(self.digits_label, hlay1)
|
||||
|
||||
# Select the Excellon Format
|
||||
self.format_label = QtWidgets.QLabel("%s:" % _("Format"))
|
||||
self.format_label = FCLabel("%s:" % _("Format"))
|
||||
self.format_label.setToolTip(
|
||||
_("Select the kind of coordinates format used.\n"
|
||||
"Coordinates can be saved with decimal point or without.\n"
|
||||
@@ -111,7 +111,7 @@ class ExcellonExpPrefGroupUI(OptionsGroupUI):
|
||||
form.addRow(self.format_label, self.format_radio)
|
||||
|
||||
# Excellon Zeros
|
||||
self.zeros_label = QtWidgets.QLabel('%s:' % _('Zeros'))
|
||||
self.zeros_label = FCLabel('%s:' % _('Zeros'))
|
||||
self.zeros_label.setAlignment(QtCore.Qt.AlignLeft)
|
||||
self.zeros_label.setToolTip(
|
||||
_("This sets the type of Excellon zeros.\n"
|
||||
@@ -134,7 +134,7 @@ class ExcellonExpPrefGroupUI(OptionsGroupUI):
|
||||
form.addRow(self.zeros_label, self.zeros_radio)
|
||||
|
||||
# Slot type
|
||||
self.slot_type_label = QtWidgets.QLabel('%s:' % _('Slot type'))
|
||||
self.slot_type_label = FCLabel('%s:' % _('Slot type'))
|
||||
self.slot_type_label.setAlignment(QtCore.Qt.AlignLeft)
|
||||
self.slot_type_label.setToolTip(
|
||||
_("This sets how the slots will be exported.\n"
|
||||
|
||||
@@ -3,7 +3,7 @@ import platform
|
||||
from PyQt5 import QtWidgets, QtCore
|
||||
from PyQt5.QtCore import QSettings
|
||||
|
||||
from appGUI.GUIElements import FCCheckBox, FCSpinner, RadioSet, FCSliderWithSpinner, FCColorEntry
|
||||
from appGUI.GUIElements import FCCheckBox, FCSpinner, RadioSet, FCSliderWithSpinner, FCColorEntry, FCLabel
|
||||
from appGUI.preferences.OptionsGroupUI import OptionsGroupUI
|
||||
import gettext
|
||||
import appTranslation as fcTranslate
|
||||
@@ -30,7 +30,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||
self.decimals = decimals
|
||||
|
||||
# Plot options
|
||||
self.plot_options_label = QtWidgets.QLabel("<b>%s:</b>" % _("Plot Options"))
|
||||
self.plot_options_label = FCLabel("<b>%s:</b>" % _("Plot Options"))
|
||||
self.layout.addWidget(self.plot_options_label)
|
||||
|
||||
grid1 = QtWidgets.QGridLayout()
|
||||
@@ -68,7 +68,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||
grid2.setColumnStretch(1, 1)
|
||||
|
||||
# Excellon format
|
||||
self.excellon_format_label = QtWidgets.QLabel("<b>%s:</b>" % _("Excellon Format"))
|
||||
self.excellon_format_label = FCLabel("<b>%s:</b>" % _("Excellon Format"))
|
||||
self.excellon_format_label.setToolTip(
|
||||
_("The NC drill files, usually named Excellon files\n"
|
||||
"are files that can be found in different formats.\n"
|
||||
@@ -93,7 +93,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||
)
|
||||
grid2.addWidget(self.excellon_format_label, 0, 0, 1, 2)
|
||||
|
||||
self.excellon_format_in_label = QtWidgets.QLabel('%s:' % _("INCH"))
|
||||
self.excellon_format_in_label = FCLabel('%s:' % _("INCH"))
|
||||
self.excellon_format_in_label.setToolTip(_("Default values for INCH are 2:4"))
|
||||
|
||||
hlay1 = QtWidgets.QHBoxLayout()
|
||||
@@ -106,7 +106,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||
)
|
||||
hlay1.addWidget(self.excellon_format_upper_in_entry)
|
||||
|
||||
excellon_separator_in_label = QtWidgets.QLabel(':')
|
||||
excellon_separator_in_label = FCLabel(':')
|
||||
excellon_separator_in_label.setFixedWidth(5)
|
||||
hlay1.addWidget(excellon_separator_in_label)
|
||||
|
||||
@@ -122,7 +122,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||
grid2.addWidget(self.excellon_format_in_label, 1, 0)
|
||||
grid2.addLayout(hlay1, 1, 1)
|
||||
|
||||
self.excellon_format_mm_label = QtWidgets.QLabel('%s:' % _("METRIC"))
|
||||
self.excellon_format_mm_label = FCLabel('%s:' % _("METRIC"))
|
||||
self.excellon_format_mm_label.setToolTip(_("Default values for METRIC are 3:3"))
|
||||
|
||||
hlay2 = QtWidgets.QHBoxLayout()
|
||||
@@ -135,7 +135,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||
)
|
||||
hlay2.addWidget(self.excellon_format_upper_mm_entry)
|
||||
|
||||
excellon_separator_mm_label = QtWidgets.QLabel(':')
|
||||
excellon_separator_mm_label = FCLabel(':')
|
||||
excellon_separator_mm_label.setFixedWidth(5)
|
||||
hlay2.addWidget(excellon_separator_mm_label, QtCore.Qt.AlignLeft)
|
||||
|
||||
@@ -151,7 +151,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||
grid2.addWidget(self.excellon_format_mm_label, 2, 0)
|
||||
grid2.addLayout(hlay2, 2, 1)
|
||||
|
||||
self.excellon_zeros_label = QtWidgets.QLabel('%s:' % _('Zeros'))
|
||||
self.excellon_zeros_label = FCLabel('%s:' % _('Zeros'))
|
||||
self.excellon_zeros_label.setAlignment(QtCore.Qt.AlignLeft)
|
||||
self.excellon_zeros_label.setToolTip(
|
||||
_("This sets the type of Excellon zeros.\n"
|
||||
@@ -169,7 +169,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||
|
||||
grid2.addWidget(self.excellon_zeros_radio, 3, 1)
|
||||
|
||||
self.excellon_units_label = QtWidgets.QLabel('%s:' % _('Units'))
|
||||
self.excellon_units_label = FCLabel('%s:' % _('Units'))
|
||||
self.excellon_units_label.setAlignment(QtCore.Qt.AlignLeft)
|
||||
self.excellon_units_label.setToolTip(
|
||||
_("This sets the default units of Excellon files.\n"
|
||||
@@ -207,10 +207,10 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||
separator_line.setFrameShadow(QtWidgets.QFrame.Sunken)
|
||||
grid2.addWidget(separator_line, 7, 0, 1, 2)
|
||||
|
||||
self.excellon_general_label = QtWidgets.QLabel("<b>%s:</b>" % _("Path Optimization"))
|
||||
self.excellon_general_label = FCLabel("<b>%s:</b>" % _("Path Optimization"))
|
||||
grid2.addWidget(self.excellon_general_label, 8, 0, 1, 2)
|
||||
|
||||
self.excellon_optimization_label = QtWidgets.QLabel(_('Algorithm:'))
|
||||
self.excellon_optimization_label = FCLabel(_('Algorithm:'))
|
||||
self.excellon_optimization_label.setToolTip(
|
||||
_("This sets the optimization type for the Excellon drill path.\n"
|
||||
"If <<MetaHeuristic>> is checked then Google OR-Tools algorithm with\n"
|
||||
@@ -230,7 +230,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||
grid2.addWidget(self.excellon_optimization_label, 9, 0)
|
||||
grid2.addWidget(self.excellon_optimization_radio, 9, 1)
|
||||
|
||||
self.optimization_time_label = QtWidgets.QLabel('%s:' % _('Duration'))
|
||||
self.optimization_time_label = FCLabel('%s:' % _('Duration'))
|
||||
self.optimization_time_label.setAlignment(QtCore.Qt.AlignLeft)
|
||||
self.optimization_time_label.setToolTip(
|
||||
_("When OR-Tools Metaheuristic (MH) is enabled there is a\n"
|
||||
@@ -252,7 +252,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||
grid2.addWidget(separator_line, 11, 0, 1, 2)
|
||||
|
||||
# Fuse Tools
|
||||
self.join_geo_label = QtWidgets.QLabel('<b>%s</b>:' % _('Join Option'))
|
||||
self.join_geo_label = FCLabel('<b>%s</b>:' % _('Join Option'))
|
||||
grid2.addWidget(self.join_geo_label, 12, 0, 1, 2)
|
||||
|
||||
self.fuse_tools_cb = FCCheckBox(_("Fuse Tools"))
|
||||
@@ -268,11 +268,11 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||
grid2.addWidget(separator_line, 14, 0, 1, 2)
|
||||
|
||||
# Excellon Object Color
|
||||
self.gerber_color_label = QtWidgets.QLabel('<b>%s</b>' % _('Object Color'))
|
||||
self.gerber_color_label = FCLabel('<b>%s</b>' % _('Object Color'))
|
||||
grid2.addWidget(self.gerber_color_label, 17, 0, 1, 2)
|
||||
|
||||
# Plot Line Color
|
||||
self.line_color_label = QtWidgets.QLabel('%s:' % _('Outline'))
|
||||
self.line_color_label = FCLabel('%s:' % _('Outline'))
|
||||
self.line_color_label.setToolTip(
|
||||
_("Set the line color for plotted objects.")
|
||||
)
|
||||
@@ -282,7 +282,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||
grid2.addWidget(self.line_color_entry, 19, 1)
|
||||
|
||||
# Plot Fill Color
|
||||
self.fill_color_label = QtWidgets.QLabel('%s:' % _('Fill'))
|
||||
self.fill_color_label = FCLabel('%s:' % _('Fill'))
|
||||
self.fill_color_label.setToolTip(
|
||||
_("Set the fill color for plotted objects.\n"
|
||||
"First 6 digits are the color and the last 2\n"
|
||||
@@ -294,7 +294,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||
grid2.addWidget(self.fill_color_entry, 22, 1)
|
||||
|
||||
# Plot Fill Transparency Level
|
||||
self.excellon_alpha_label = QtWidgets.QLabel('%s:' % _('Alpha'))
|
||||
self.excellon_alpha_label = FCLabel('%s:' % _('Alpha'))
|
||||
self.excellon_alpha_label.setToolTip(
|
||||
_("Set the fill transparency for plotted objects.")
|
||||
)
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
from PyQt5 import QtWidgets
|
||||
from PyQt5.QtCore import Qt, QSettings
|
||||
from PyQt5.QtCore import QSettings
|
||||
|
||||
from appGUI.GUIElements import RadioSet, FCDoubleSpinner, FCCheckBox, FCEntry, FCSpinner, OptionalInputSection, \
|
||||
FCComboBox, NumericalEvalTupleEntry
|
||||
from appGUI.preferences import machinist_setting
|
||||
from appGUI.GUIElements import RadioSet, FCDoubleSpinner, FCLabel
|
||||
# from appGUI.preferences import machinist_setting
|
||||
from appGUI.preferences.OptionsGroupUI import OptionsGroupUI
|
||||
import gettext
|
||||
import appTranslation as fcTranslate
|
||||
@@ -30,7 +29,7 @@ class ExcellonOptPrefGroupUI(OptionsGroupUI):
|
||||
self.decimals = decimals
|
||||
|
||||
# ## Create CNC Job
|
||||
self.cncjob_label = QtWidgets.QLabel('<b>%s</b>' % _('Create CNCJob'))
|
||||
self.cncjob_label = FCLabel('<b>%s</b>' % _('Create CNCJob'))
|
||||
self.cncjob_label.setToolTip(
|
||||
_("Parameters used to create a CNC Job object\n"
|
||||
"for this drill object.")
|
||||
@@ -43,7 +42,7 @@ class ExcellonOptPrefGroupUI(OptionsGroupUI):
|
||||
grid2.setColumnStretch(1, 1)
|
||||
|
||||
# Operation Type
|
||||
self.operation_label = QtWidgets.QLabel('<b>%s:</b>' % _('Operation'))
|
||||
self.operation_label = FCLabel('<b>%s:</b>' % _('Operation'))
|
||||
self.operation_label.setToolTip(
|
||||
_("Operation type:\n"
|
||||
"- Drilling -> will drill the drills/slots associated with this tool\n"
|
||||
@@ -59,7 +58,7 @@ class ExcellonOptPrefGroupUI(OptionsGroupUI):
|
||||
grid2.addWidget(self.operation_label, 0, 0)
|
||||
grid2.addWidget(self.operation_radio, 0, 1)
|
||||
|
||||
self.mill_type_label = QtWidgets.QLabel('%s:' % _('Milling Type'))
|
||||
self.mill_type_label = FCLabel('%s:' % _('Milling Type'))
|
||||
self.mill_type_label.setToolTip(
|
||||
_("Milling type:\n"
|
||||
"- Drills -> will mill the drills associated with this tool\n"
|
||||
@@ -77,7 +76,7 @@ class ExcellonOptPrefGroupUI(OptionsGroupUI):
|
||||
grid2.addWidget(self.mill_type_label, 1, 0)
|
||||
grid2.addWidget(self.milling_type_radio, 1, 1)
|
||||
|
||||
self.mill_dia_label = QtWidgets.QLabel('%s:' % _('Milling Diameter'))
|
||||
self.mill_dia_label = FCLabel('%s:' % _('Milling Diameter'))
|
||||
self.mill_dia_label.setToolTip(
|
||||
_("The diameter of the tool who will do the milling")
|
||||
)
|
||||
@@ -90,13 +89,13 @@ class ExcellonOptPrefGroupUI(OptionsGroupUI):
|
||||
grid2.addWidget(self.mill_dia_entry, 2, 1)
|
||||
|
||||
# ### Milling Holes ## ##
|
||||
self.mill_hole_label = QtWidgets.QLabel('<b>%s</b>' % _('Mill Holes'))
|
||||
self.mill_hole_label = FCLabel('<b>%s</b>' % _('Mill Holes'))
|
||||
self.mill_hole_label.setToolTip(
|
||||
_("Create Geometry for milling holes.")
|
||||
)
|
||||
grid2.addWidget(self.mill_hole_label, 16, 0, 1, 2)
|
||||
|
||||
tdlabel = QtWidgets.QLabel('%s:' % _('Drill Tool dia'))
|
||||
tdlabel = FCLabel('%s:' % _('Drill Tool dia'))
|
||||
tdlabel.setToolTip(
|
||||
_("Diameter of the cutting tool.")
|
||||
)
|
||||
@@ -107,7 +106,7 @@ class ExcellonOptPrefGroupUI(OptionsGroupUI):
|
||||
grid2.addWidget(tdlabel, 18, 0)
|
||||
grid2.addWidget(self.tooldia_entry, 18, 1)
|
||||
|
||||
stdlabel = QtWidgets.QLabel('%s:' % _('Slot Tool dia'))
|
||||
stdlabel = FCLabel('%s:' % _('Slot Tool dia'))
|
||||
stdlabel.setToolTip(
|
||||
_("Diameter of the cutting tool\n"
|
||||
"when milling slots.")
|
||||
|
||||
Reference in New Issue
Block a user