- 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 FCCheckBox, RadioSet, FCDoubleSpinner, FCSpinner, OptionalInputSection
|
||||
from appGUI.GUIElements import FCCheckBox, RadioSet, FCDoubleSpinner, FCLabel, OptionalInputSection
|
||||
from appGUI.preferences.OptionsGroupUI import OptionsGroupUI
|
||||
|
||||
import gettext
|
||||
@@ -28,7 +28,7 @@ class GerberAdvOptPrefGroupUI(OptionsGroupUI):
|
||||
self.decimals = decimals
|
||||
|
||||
# ## Advanced Gerber Parameters
|
||||
self.adv_param_label = QtWidgets.QLabel('<b>%s:</b>' % _('Advanced Options'))
|
||||
self.adv_param_label = FCLabel('<b>%s:</b>' % _('Advanced Options'))
|
||||
self.adv_param_label.setToolTip(
|
||||
_("A list of advanced parameters.\n"
|
||||
"Those parameters are available only for\n"
|
||||
@@ -61,7 +61,7 @@ class GerberAdvOptPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(separator_line, 2, 0, 1, 2)
|
||||
|
||||
# Buffering Type
|
||||
buffering_label = QtWidgets.QLabel('%s:' % _('Buffering'))
|
||||
buffering_label = FCLabel('%s:' % _('Buffering'))
|
||||
buffering_label.setToolTip(
|
||||
_("Buffering type:\n"
|
||||
"- None --> best performance, fast file loading but no so good display\n"
|
||||
@@ -90,7 +90,7 @@ class GerberAdvOptPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.simplify_cb, 11, 0, 1, 2)
|
||||
|
||||
# Simplification tolerance
|
||||
self.simplification_tol_label = QtWidgets.QLabel(_('Tolerance'))
|
||||
self.simplification_tol_label = FCLabel(_('Tolerance'))
|
||||
self.simplification_tol_label.setToolTip(_("Tolerance for polygon simplification."))
|
||||
|
||||
self.simplification_tol_spinner = FCDoubleSpinner()
|
||||
@@ -117,4 +117,4 @@ class GerberAdvOptPrefGroupUI(OptionsGroupUI):
|
||||
if val == 'no':
|
||||
self.delayed_buffer_cb.setDisabled(False)
|
||||
else:
|
||||
self.delayed_buffer_cb.setDisabled(True)
|
||||
self.delayed_buffer_cb.setDisabled(True)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from PyQt5 import QtWidgets
|
||||
from PyQt5.QtCore import QSettings
|
||||
|
||||
from appGUI.GUIElements import FCSpinner, FCDoubleSpinner, FCComboBox, FCEntry, RadioSet, NumericalEvalTupleEntry
|
||||
from appGUI.GUIElements import FCSpinner, FCDoubleSpinner, FCComboBox, FCLabel, RadioSet, NumericalEvalTupleEntry
|
||||
from appGUI.preferences.OptionsGroupUI import OptionsGroupUI
|
||||
|
||||
import gettext
|
||||
@@ -28,7 +28,7 @@ class GerberEditorPrefGroupUI(OptionsGroupUI):
|
||||
self.decimals = decimals
|
||||
|
||||
# Advanced Gerber 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 Gerber Editor parameters.")
|
||||
)
|
||||
@@ -38,7 +38,7 @@ class GerberEditorPrefGroupUI(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 Gerber geometry\n"
|
||||
"items above which the utility geometry\n"
|
||||
@@ -53,7 +53,7 @@ class GerberEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.sel_limit_entry, 0, 1)
|
||||
|
||||
# New aperture code
|
||||
self.addcode_entry_lbl = QtWidgets.QLabel('%s:' % _('New Aperture code'))
|
||||
self.addcode_entry_lbl = FCLabel('%s:' % _('New Aperture code'))
|
||||
self.addcode_entry_lbl.setToolTip(
|
||||
_("Code for the new aperture")
|
||||
)
|
||||
@@ -66,7 +66,7 @@ class GerberEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.addcode_entry, 1, 1)
|
||||
|
||||
# New aperture size
|
||||
self.addsize_entry_lbl = QtWidgets.QLabel('%s:' % _('New Aperture size'))
|
||||
self.addsize_entry_lbl = FCLabel('%s:' % _('New Aperture size'))
|
||||
self.addsize_entry_lbl.setToolTip(
|
||||
_("Size for the new aperture")
|
||||
)
|
||||
@@ -79,7 +79,7 @@ class GerberEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.addsize_entry, 2, 1)
|
||||
|
||||
# New aperture type
|
||||
self.addtype_combo_lbl = QtWidgets.QLabel('%s:' % _('New Aperture type'))
|
||||
self.addtype_combo_lbl = FCLabel('%s:' % _('New Aperture type'))
|
||||
self.addtype_combo_lbl.setToolTip(
|
||||
_("Type for the new aperture.\n"
|
||||
"Can be 'C', 'R' or 'O'.")
|
||||
@@ -92,7 +92,7 @@ class GerberEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.addtype_combo, 3, 1)
|
||||
|
||||
# Number of pads in a pad array
|
||||
self.grb_array_size_label = QtWidgets.QLabel('%s:' % _('Nr of pads'))
|
||||
self.grb_array_size_label = FCLabel('%s:' % _('Nr of pads'))
|
||||
self.grb_array_size_label.setToolTip(
|
||||
_("Specify how many pads to be in the array.")
|
||||
)
|
||||
@@ -103,7 +103,7 @@ class GerberEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.grb_array_size_label, 4, 0)
|
||||
grid0.addWidget(self.grb_array_size_entry, 4, 1)
|
||||
|
||||
self.adddim_label = QtWidgets.QLabel('%s:' % _('Aperture Dimensions'))
|
||||
self.adddim_label = FCLabel('%s:' % _('Aperture Dimensions'))
|
||||
self.adddim_label.setToolTip(
|
||||
_("Diameters of the tools, separated by comma.\n"
|
||||
"The value of the diameter has to use the dot decimals separator.\n"
|
||||
@@ -114,11 +114,11 @@ class GerberEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.adddim_label, 5, 0)
|
||||
grid0.addWidget(self.adddim_entry, 5, 1)
|
||||
|
||||
self.grb_array_linear_label = QtWidgets.QLabel('<b>%s:</b>' % _('Linear Pad Array'))
|
||||
self.grb_array_linear_label = FCLabel('<b>%s:</b>' % _('Linear Pad Array'))
|
||||
grid0.addWidget(self.grb_array_linear_label, 6, 0, 1, 2)
|
||||
|
||||
# Linear Pad Array direction
|
||||
self.grb_axis_label = QtWidgets.QLabel('%s:' % _('Linear Direction'))
|
||||
self.grb_axis_label = FCLabel('%s:' % _('Linear Direction'))
|
||||
self.grb_axis_label.setToolTip(
|
||||
_("Direction on which the linear array is oriented:\n"
|
||||
"- 'X' - horizontal axis \n"
|
||||
@@ -134,7 +134,7 @@ class GerberEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.grb_axis_radio, 7, 1)
|
||||
|
||||
# Linear Pad Array pitch distance
|
||||
self.grb_pitch_label = QtWidgets.QLabel('%s:' % _('Pitch'))
|
||||
self.grb_pitch_label = FCLabel('%s:' % _('Pitch'))
|
||||
self.grb_pitch_label.setToolTip(
|
||||
_("Pitch = Distance between elements of the array.")
|
||||
)
|
||||
@@ -146,7 +146,7 @@ class GerberEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.grb_pitch_entry, 8, 1)
|
||||
|
||||
# Linear Pad Array custom angle
|
||||
self.grb_angle_label = QtWidgets.QLabel('%s:' % _('Angle'))
|
||||
self.grb_angle_label = FCLabel('%s:' % _('Angle'))
|
||||
self.grb_angle_label.setToolTip(
|
||||
_("Angle at which each element in circular array is placed.")
|
||||
)
|
||||
@@ -158,11 +158,11 @@ class GerberEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.grb_angle_label, 9, 0)
|
||||
grid0.addWidget(self.grb_angle_entry, 9, 1)
|
||||
|
||||
self.grb_array_circ_label = QtWidgets.QLabel('<b>%s:</b>' % _('Circular Pad Array'))
|
||||
self.grb_array_circ_label = FCLabel('<b>%s:</b>' % _('Circular Pad Array'))
|
||||
grid0.addWidget(self.grb_array_circ_label, 10, 0, 1, 2)
|
||||
|
||||
# Circular Pad Array direction
|
||||
self.grb_circular_direction_label = QtWidgets.QLabel('%s:' % _('Circular Direction'))
|
||||
self.grb_circular_direction_label = FCLabel('%s:' % _('Circular Direction'))
|
||||
self.grb_circular_direction_label.setToolTip(
|
||||
_("Direction for circular array.\n"
|
||||
"Can be CW = clockwise or CCW = counter clockwise.")
|
||||
@@ -175,7 +175,7 @@ class GerberEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.grb_circular_dir_radio, 11, 1)
|
||||
|
||||
# Circular Pad Array Angle
|
||||
self.grb_circular_angle_label = QtWidgets.QLabel('%s:' % _('Circular Angle'))
|
||||
self.grb_circular_angle_label = FCLabel('%s:' % _('Circular Angle'))
|
||||
self.grb_circular_angle_label.setToolTip(
|
||||
_("Angle at which each element in circular array is placed.")
|
||||
)
|
||||
@@ -188,11 +188,11 @@ class GerberEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.grb_circular_angle_label, 12, 0)
|
||||
grid0.addWidget(self.grb_circular_angle_entry, 12, 1)
|
||||
|
||||
self.grb_array_tools_b_label = QtWidgets.QLabel('<b>%s:</b>' % _('Buffer Tool'))
|
||||
self.grb_array_tools_b_label = FCLabel('<b>%s:</b>' % _('Buffer Tool'))
|
||||
grid0.addWidget(self.grb_array_tools_b_label, 13, 0, 1, 2)
|
||||
|
||||
# Buffer Distance
|
||||
self.grb_buff_label = QtWidgets.QLabel('%s:' % _('Buffer distance'))
|
||||
self.grb_buff_label = FCLabel('%s:' % _('Buffer distance'))
|
||||
self.grb_buff_label.setToolTip(
|
||||
_("Distance at which to buffer the Gerber element.")
|
||||
)
|
||||
@@ -203,11 +203,11 @@ class GerberEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.grb_buff_label, 14, 0)
|
||||
grid0.addWidget(self.grb_buff_entry, 14, 1)
|
||||
|
||||
self.grb_array_tools_s_label = QtWidgets.QLabel('<b>%s:</b>' % _('Scale Tool'))
|
||||
self.grb_array_tools_s_label = FCLabel('<b>%s:</b>' % _('Scale Tool'))
|
||||
grid0.addWidget(self.grb_array_tools_s_label, 15, 0, 1, 2)
|
||||
|
||||
# Scale Factor
|
||||
self.grb_scale_label = QtWidgets.QLabel('%s:' % _('Scale factor'))
|
||||
self.grb_scale_label = FCLabel('%s:' % _('Scale factor'))
|
||||
self.grb_scale_label.setToolTip(
|
||||
_("Factor to scale the Gerber element.")
|
||||
)
|
||||
@@ -218,11 +218,11 @@ class GerberEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.grb_scale_label, 16, 0)
|
||||
grid0.addWidget(self.grb_scale_entry, 16, 1)
|
||||
|
||||
self.grb_array_tools_ma_label = QtWidgets.QLabel('<b>%s:</b>' % _('Mark Area Tool'))
|
||||
self.grb_array_tools_ma_label = FCLabel('<b>%s:</b>' % _('Mark Area Tool'))
|
||||
grid0.addWidget(self.grb_array_tools_ma_label, 17, 0, 1, 2)
|
||||
|
||||
# Mark area Tool low threshold
|
||||
self.grb_ma_low_label = QtWidgets.QLabel('%s:' % _('Threshold low'))
|
||||
self.grb_ma_low_label = FCLabel('%s:' % _('Threshold low'))
|
||||
self.grb_ma_low_label.setToolTip(
|
||||
_("Threshold value under which the apertures are not marked.")
|
||||
)
|
||||
@@ -234,7 +234,7 @@ class GerberEditorPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.grb_ma_low_entry, 18, 1)
|
||||
|
||||
# Mark area Tool high threshold
|
||||
self.grb_ma_high_label = QtWidgets.QLabel('%s:' % _('Threshold high'))
|
||||
self.grb_ma_high_label = FCLabel('%s:' % _('Threshold high'))
|
||||
self.grb_ma_high_label.setToolTip(
|
||||
_("Threshold value over which the apertures are not marked.")
|
||||
)
|
||||
|
||||
@@ -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
|
||||
@@ -28,7 +28,7 @@ class GerberExpPrefGroupUI(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 Gerber menu entry.")
|
||||
@@ -39,7 +39,7 @@ class GerberExpPrefGroupUI(OptionsGroupUI):
|
||||
self.layout.addLayout(form)
|
||||
|
||||
# Gerber Units
|
||||
self.gerber_units_label = QtWidgets.QLabel('%s:' % _('Units'))
|
||||
self.gerber_units_label = FCLabel('%s:' % _('Units'))
|
||||
self.gerber_units_label.setToolTip(
|
||||
_("The units used in the Gerber file.")
|
||||
)
|
||||
@@ -53,7 +53,7 @@ class GerberExpPrefGroupUI(OptionsGroupUI):
|
||||
form.addRow(self.gerber_units_label, self.gerber_units_radio)
|
||||
|
||||
# Gerber format
|
||||
self.digits_label = QtWidgets.QLabel("%s:" % _("Int/Decimals"))
|
||||
self.digits_label = FCLabel("%s:" % _("Int/Decimals"))
|
||||
self.digits_label.setToolTip(
|
||||
_("The number of digits in the whole part of the number\n"
|
||||
"and in the fractional part of the number.")
|
||||
@@ -73,7 +73,7 @@ class GerberExpPrefGroupUI(OptionsGroupUI):
|
||||
)
|
||||
hlay1.addWidget(self.format_whole_entry, QtCore.Qt.AlignLeft)
|
||||
|
||||
gerber_separator_label = QtWidgets.QLabel(':')
|
||||
gerber_separator_label = FCLabel(':')
|
||||
gerber_separator_label.setFixedWidth(5)
|
||||
hlay1.addWidget(gerber_separator_label, QtCore.Qt.AlignLeft)
|
||||
|
||||
@@ -93,7 +93,7 @@ class GerberExpPrefGroupUI(OptionsGroupUI):
|
||||
form.addRow(self.digits_label, hlay1)
|
||||
|
||||
# Gerber 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 Gerber zeros.\n"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from PyQt5 import QtWidgets, QtCore, QtGui
|
||||
from PyQt5.QtCore import QSettings
|
||||
|
||||
from appGUI.GUIElements import FCCheckBox, FCSpinner, RadioSet, FCButton, FCSliderWithSpinner, FCColorEntry
|
||||
from appGUI.GUIElements import FCCheckBox, FCSpinner, RadioSet, FCButton, FCSliderWithSpinner, FCColorEntry, FCLabel
|
||||
from appGUI.preferences.OptionsGroupUI import OptionsGroupUI
|
||||
|
||||
import gettext
|
||||
@@ -28,7 +28,7 @@ class GerberGenPrefGroupUI(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)
|
||||
|
||||
grid0 = QtWidgets.QGridLayout()
|
||||
@@ -56,7 +56,7 @@ class GerberGenPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.multicolored_cb, 0, 2)
|
||||
|
||||
# Number of circle steps for circular aperture linear approximation
|
||||
self.circle_steps_label = QtWidgets.QLabel('%s:' % _("Circle Steps"))
|
||||
self.circle_steps_label = FCLabel('%s:' % _("Circle Steps"))
|
||||
self.circle_steps_label.setToolTip(
|
||||
_("The number of circle steps for Gerber \n"
|
||||
"circular aperture linear approximation.")
|
||||
@@ -67,10 +67,10 @@ class GerberGenPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.circle_steps_label, 1, 0)
|
||||
grid0.addWidget(self.circle_steps_entry, 1, 1, 1, 2)
|
||||
|
||||
grid0.addWidget(QtWidgets.QLabel(''), 2, 0, 1, 3)
|
||||
grid0.addWidget(FCLabel(''), 2, 0, 1, 3)
|
||||
|
||||
# Default format for Gerber
|
||||
self.gerber_default_label = QtWidgets.QLabel('<b>%s:</b>' % _('Default Values'))
|
||||
self.gerber_default_label = FCLabel('<b>%s:</b>' % _('Default Values'))
|
||||
self.gerber_default_label.setToolTip(
|
||||
_("Those values will be used as fallback values\n"
|
||||
"in case that they are not found in the Gerber file.")
|
||||
@@ -79,7 +79,7 @@ class GerberGenPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.gerber_default_label, 3, 0, 1, 3)
|
||||
|
||||
# Gerber Units
|
||||
self.gerber_units_label = QtWidgets.QLabel('%s:' % _('Units'))
|
||||
self.gerber_units_label = FCLabel('%s:' % _('Units'))
|
||||
self.gerber_units_label.setToolTip(
|
||||
_("The units used in the Gerber file.")
|
||||
)
|
||||
@@ -94,7 +94,7 @@ class GerberGenPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.gerber_units_radio, 4, 1, 1, 2)
|
||||
|
||||
# Gerber Zeros
|
||||
self.gerber_zeros_label = QtWidgets.QLabel('%s:' % _('Zeros'))
|
||||
self.gerber_zeros_label = FCLabel('%s:' % _('Zeros'))
|
||||
self.gerber_zeros_label.setAlignment(QtCore.Qt.AlignLeft)
|
||||
self.gerber_zeros_label.setToolTip(
|
||||
_("This sets the type of Gerber zeros.\n"
|
||||
@@ -162,11 +162,11 @@ class GerberGenPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(separator_line, 13, 0, 1, 3)
|
||||
|
||||
# Gerber Object Color
|
||||
self.gerber_color_label = QtWidgets.QLabel('<b>%s</b>' % _('Object Color'))
|
||||
self.gerber_color_label = FCLabel('<b>%s</b>' % _('Object Color'))
|
||||
grid0.addWidget(self.gerber_color_label, 15, 0, 1, 3)
|
||||
|
||||
# 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.")
|
||||
)
|
||||
@@ -176,7 +176,7 @@ class GerberGenPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.line_color_entry, 17, 1, 1, 2)
|
||||
|
||||
# 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"
|
||||
@@ -188,7 +188,7 @@ class GerberGenPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.fill_color_entry, 20, 1, 1, 2)
|
||||
|
||||
# Plot Fill Transparency Level
|
||||
self.gerber_alpha_label = QtWidgets.QLabel('%s:' % _('Alpha'))
|
||||
self.gerber_alpha_label = FCLabel('%s:' % _('Alpha'))
|
||||
self.gerber_alpha_label.setToolTip(
|
||||
_("Set the fill transparency for plotted objects.")
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from PyQt5 import QtWidgets
|
||||
from PyQt5.QtCore import QSettings
|
||||
|
||||
from appGUI.GUIElements import FCDoubleSpinner, FCSpinner, RadioSet, FCCheckBox, FCComboBox
|
||||
from appGUI.GUIElements import FCDoubleSpinner, FCCheckBox, FCLabel
|
||||
from appGUI.preferences.OptionsGroupUI import OptionsGroupUI
|
||||
|
||||
import gettext
|
||||
@@ -29,7 +29,7 @@ class GerberOptPrefGroupUI(OptionsGroupUI):
|
||||
self.setTitle(str(_("Gerber Options")))
|
||||
|
||||
# ## Clear non-copper regions
|
||||
self.clearcopper_label = QtWidgets.QLabel("<b>%s:</b>" % _("Non-copper regions"))
|
||||
self.clearcopper_label = FCLabel("<b>%s:</b>" % _("Non-copper regions"))
|
||||
self.clearcopper_label.setToolTip(
|
||||
_("Create polygons covering the\n"
|
||||
"areas without copper on the PCB.\n"
|
||||
@@ -43,7 +43,7 @@ class GerberOptPrefGroupUI(OptionsGroupUI):
|
||||
self.layout.addLayout(grid1)
|
||||
|
||||
# Margin
|
||||
bmlabel = QtWidgets.QLabel('%s:' % _('Boundary Margin'))
|
||||
bmlabel = FCLabel('%s:' % _('Boundary Margin'))
|
||||
bmlabel.setToolTip(
|
||||
_("Specify the edge of the PCB\n"
|
||||
"by drawing a box around all\n"
|
||||
@@ -70,13 +70,13 @@ class GerberOptPrefGroupUI(OptionsGroupUI):
|
||||
grid1.addWidget(separator_line, 2, 0, 1, 2)
|
||||
|
||||
# ## Bounding box
|
||||
self.boundingbox_label = QtWidgets.QLabel('<b>%s:</b>' % _('Bounding Box'))
|
||||
self.boundingbox_label = FCLabel('<b>%s:</b>' % _('Bounding Box'))
|
||||
self.layout.addWidget(self.boundingbox_label)
|
||||
|
||||
grid2 = QtWidgets.QGridLayout()
|
||||
self.layout.addLayout(grid2)
|
||||
|
||||
bbmargin = QtWidgets.QLabel('%s:' % _('Boundary Margin'))
|
||||
bbmargin = FCLabel('%s:' % _('Boundary Margin'))
|
||||
bbmargin.setToolTip(
|
||||
_("Distance of the edges of the box\n"
|
||||
"to the nearest polygon.")
|
||||
|
||||
Reference in New Issue
Block a user