MaterialSettingsVisibilityHandler.py 730 B

1234567891011121314151617181920
  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. "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)