MaterialSettingsVisibilityHandler.py 867 B

12345678910111213141516171819202122232425
  1. # Copyright (c) 2021 Ultimaker B.V.
  2. # Cura is released under the terms of the LGPLv3 or higher.
  3. from typing import Optional, TYPE_CHECKING
  4. import UM.Settings.Models.SettingVisibilityHandler
  5. if TYPE_CHECKING:
  6. from PyQt5.QtCore import QObject
  7. class MaterialSettingsVisibilityHandler(UM.Settings.Models.SettingVisibilityHandler.SettingVisibilityHandler):
  8. def __init__(self, parent: Optional["QObject"] = None, *args, **kwargs) -> None:
  9. super().__init__(parent = parent, *args, **kwargs)
  10. material_settings = {
  11. "default_material_print_temperature",
  12. "default_material_bed_temperature",
  13. "material_standby_temperature",
  14. #"material_flow_temp_graph",
  15. "cool_fan_speed",
  16. "retraction_amount",
  17. "retraction_speed",
  18. }
  19. self.setVisible(material_settings)