ToolsSubPrefGroupUI.py 966 B

123456789101112131415161718192021222324252627
  1. from PyQt5 import QtWidgets
  2. from flatcamGUI.GUIElements import FCCheckBox
  3. from flatcamGUI.preferences.OptionsGroupUI import OptionsGroupUI
  4. class ToolsSubPrefGroupUI(OptionsGroupUI):
  5. def __init__(self, decimals=4, parent=None):
  6. super(ToolsSubPrefGroupUI, self).__init__(self)
  7. self.setTitle(str(_("Substractor Tool Options")))
  8. self.decimals = decimals
  9. # ## Subtractor Tool Parameters
  10. self.sublabel = QtWidgets.QLabel("<b>%s:</b>" % _("Parameters"))
  11. self.sublabel.setToolTip(
  12. _("A tool to substract one Gerber or Geometry object\n"
  13. "from another of the same type.")
  14. )
  15. self.layout.addWidget(self.sublabel)
  16. self.close_paths_cb = FCCheckBox(_("Close paths"))
  17. self.close_paths_cb.setToolTip(_("Checking this will close the paths cut by the Geometry substractor object."))
  18. self.layout.addWidget(self.close_paths_cb)
  19. self.layout.addStretch()