MaterialSettingsVisibilityHandler.py 739 B

123456789101112131415161718192021
  1. # Copyright (c) 2017 Ultimaker B.V.
  2. # Cura is released under the terms of the LGPLv3 or higher.
  3. import UM.Settings.Models.SettingVisibilityHandler
  4. class MaterialSettingsVisibilityHandler(UM.Settings.Models.SettingVisibilityHandler.SettingVisibilityHandler):
  5. def __init__(self, parent = None, *args, **kwargs):
  6. super().__init__(parent = parent, *args, **kwargs)
  7. material_settings = {
  8. "default_material_print_temperature",
  9. "default_material_bed_temperature",
  10. "material_standby_temperature",
  11. #"material_flow_temp_graph",
  12. "cool_fan_speed",
  13. "retraction_amount",
  14. "retraction_speed",
  15. }
  16. self.setVisible(material_settings)