diff --git a/BlocksScreen.cfg b/BlocksScreen.cfg
index 065a900b..801f05d5 100644
--- a/BlocksScreen.cfg
+++ b/BlocksScreen.cfg
@@ -3,11 +3,15 @@ host: localhost
port: 7125
[screensaver]
-timeout: 5000
+timeout: 600000
[usb_manager]
gcodes_dir: ~/printer_data/gcodes/
+[hotspot]
+ssid: PrinterHotspot
+password: 123456789
+
[filament_presence]
object: cutter_sensor
-name: extruder_cutter
\ No newline at end of file
+name: extruder_cutter
diff --git a/BlocksScreen/lib/panels/controlTab.py b/BlocksScreen/lib/panels/controlTab.py
index 9e81d323..d7249cb5 100644
--- a/BlocksScreen/lib/panels/controlTab.py
+++ b/BlocksScreen/lib/panels/controlTab.py
@@ -4,19 +4,20 @@
import logging
import re
import typing
-from functools import partial
from lib.moonrakerComm import MoonWebSocket
from lib.panels.widgets.basePopup import BasePopup
+from lib.panels.widgets.ControlTab.axisPage import AxisPage
+from lib.panels.widgets.ControlTab.extruderPage import ExtruderPage
+from lib.panels.widgets.ControlTab.fansPage import FansPage
+from lib.panels.widgets.ControlTab.printcorePage import SwapPrintcorePage
+from lib.panels.widgets.ControlTab.probeHelperPage import ProbeHelper
+from lib.panels.widgets.ControlTab.temperaturePage import TemperaturePage
from lib.panels.widgets.numpadPage import CustomNumpad
-from lib.panels.widgets.optionCardWidget import OptionCard
-from lib.panels.widgets.printcorePage import SwapPrintcorePage
-from lib.panels.widgets.probeHelperPage import ProbeHelper
from lib.panels.widgets.slider_selector_page import SliderPage
from lib.printer import Printer
-from lib.ui.controlStackedWidget_ui import Ui_controlStackedWidget
-from lib.utils.display_button import DisplayButton
-from lib.utils.gcode import fan_speed_gcode
+from lib.utils.blocks_button import BlocksCustomButton
+from lib.utils.icon_button import IconButton
from PyQt6 import QtCore, QtGui, QtWidgets
_logger = logging.getLogger(__name__)
@@ -63,43 +64,72 @@ def __init__(
/,
) -> None:
super().__init__(parent)
- self.panel = Ui_controlStackedWidget()
- self.panel.setupUi(self)
+ self._setup_ui()
+
+ self.back_button.clicked.connect(lambda: self._button_change(False))
self.ws: MoonWebSocket = ws
self.printer: Printer = printer
self._true_zero_state: bool | None = None
+ self._motion_active: bool = False
self.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
self.timers = []
- self.extruder_info: dict = {}
- self.bed_info: dict = {}
- self.toolhead_info: dict = {}
- self.tune_display_buttons: dict = {}
- self.card_options: dict = {}
- self.extrude_length: int = 10
- self.extrude_feedrate: int = 2
- self.extrude_page_message: str = ""
- self.move_length: float = 1.0
- self.move_speed: float = 25.0
+ self.ztilt_state = False
self.ztilt_result_screen = BasePopup(self, False, False)
+ self.ztilt_result_screen_timer = QtCore.QTimer()
+ self.ztilt_result_screen_timer.setSingleShot(True)
+ self.ztilt_result_screen_timer.setInterval(5000)
+ self.ztilt_result_screen_timer.timeout.connect(self.ztilt_result_screen.hide)
self.probe_helper_page = ProbeHelper(self)
+ self.addWidget(self.probe_helper_page)
self.probe_helper_page.toggle_conn_page.connect(self.toggle_conn_page)
self.probe_helper_page.disable_popups.connect(self.disable_popups)
self.probe_helper_page.lock_ui.connect(self.lock_ui)
- self.addWidget(self.probe_helper_page)
self.probe_helper_page.call_load_panel.connect(self.call_load_panel)
+
self.printcores_page = SwapPrintcorePage(self)
self.addWidget(self.printcores_page)
+ self.fans_page = FansPage(self)
+ self.addWidget(self.fans_page)
+ self.fans_page.request_back_button.connect(self.request_back_button)
+ self.fans_page.run_gcode_signal.connect(self.run_gcode_signal)
+ self.fans_page.request_slider_page.connect(self.on_slidePage_request)
+
self.sliderPage = SliderPage(self)
self.addWidget(self.sliderPage)
- self.sliderPage.request_back.connect(self.back_button)
+ self.sliderPage.request_back.connect(self.request_back_button)
+
+ self.axis_page = AxisPage(self)
+ self.addWidget(self.axis_page)
+ self.axis_page.request_back.connect(self.request_back_button)
+ self.axis_page.run_gcode_signal.connect(self.run_gcode_signal)
+ self.axis_page.call_load_panel.connect(self.call_load_panel)
+ self.printer.toolhead_update[str, list].connect(
+ self.axis_page.on_toolhead_update
+ )
+
+ self.extruder_page = ExtruderPage(self, printer)
+ self.addWidget(self.extruder_page)
+ self.extruder_page.request_back.connect(self.request_back_button)
+ self.extruder_page.run_gcode_signal.connect(self.run_gcode_signal)
+
+ self.temperature_page = TemperaturePage(self)
+ self.addWidget(self.temperature_page)
+ self.temperature_page.request_back.connect(self.request_back_button)
+ self.temperature_page.request_numpad.connect(self.on_numpad_request)
+ self.temperature_page.run_gcode_signal.connect(self.run_gcode_signal)
+
+ self.numpadPage = CustomNumpad(self)
+ self.numpadPage.setMaximumHeight(400)
+ self.numpadPage.request_back.connect(self.request_back_button)
+ self.addWidget(self.numpadPage)
self.probe_helper_page.request_page_view.connect(
- partial(self.change_page, self.indexOf(self.probe_helper_page))
+ lambda: self.change_page(self.indexOf(self.probe_helper_page))
)
self.probe_helper_page.query_printer_object.connect(self.ws.api.object_query)
self.probe_helper_page.run_gcode_signal.connect(self.ws.api.run_gcode)
- self.probe_helper_page.request_back.connect(self.back_button)
+ self.probe_helper_page.request_back.connect(self.request_back_button)
self.printer.print_stats_update[str, str].connect(
self.probe_helper_page.on_print_stats_update
)
@@ -129,178 +159,135 @@ def __init__(
self.printer.gcode_response.connect(
self.probe_helper_page.handle_gcode_response
)
- self.printer.toolhead_update[str, list].connect(self.on_toolhead_update)
- self.printer.extruder_update.connect(self.on_extruder_update)
- self.printer.heater_bed_update.connect(self.on_heater_bed_update)
- self.panel.cp_motion_btn.clicked.connect(
- partial(self.change_page, self.indexOf(self.panel.motion_page))
- )
- self.panel.cp_temperature_btn.clicked.connect(
- partial(self.change_page, self.indexOf(self.panel.temperature_page))
- )
- self.panel.cp_fans_btn.clicked.connect(
- partial(self.change_page, self.indexOf(self.panel.fans_page))
- )
- self.panel.fans_back_btn.clicked.connect(self.back_button)
- self.panel.cp_switch_print_core_btn.clicked.connect(self.show_swapcore)
- self.panel.cp_nozzles_calibration_btn.clicked.connect(
- partial(self.change_page, self.indexOf(self.probe_helper_page))
- )
- self.panel.motion_extrude_btn.clicked.connect(
- partial(self.change_page, self.indexOf(self.panel.extrude_page))
- )
- self.panel.motion_move_axis_btn.clicked.connect(
- partial(self.change_page, self.indexOf(self.panel.move_axis_page))
- )
- self.panel.mp_back_btn.clicked.connect(self.back_button)
- self.panel.motion_auto_home_btn.clicked.connect(
- partial(self.run_gcode_signal.emit, "G28\nM400")
- )
- self.panel.motion_disable_steppers_btn.clicked.connect(
- partial(self.run_gcode_signal.emit, "M84\nM400")
+ self.printer.extruder_update.connect(self.temperature_page.on_extruder_update)
+ self.printer.heater_bed_update.connect(
+ self.temperature_page.on_heater_bed_update
)
- self.panel.exp_back_btn.clicked.connect(self.back_button)
- self.panel.extrude_select_length_10_btn.toggled.connect(
- partial(
- self.handle_toggle_extrude_length,
- caller=self.panel.extrude_select_length_10_btn,
- value=10,
+
+ self.printer.printer_config.connect(self.temperature_page.on_printer_config)
+ self.printer.request_object_subscription_signal.connect(self._on_object_list)
+ self.run_gcode_signal.connect(self.ws.api.run_gcode)
+ # # @ object temperature change clicked
+ self.printcores_page.pc_accept.clicked.connect(self.handle_swapcore)
+
+ self.ws.klippy_state_signal.connect(self.on_klippy_status)
+ self.ws.klippy_state_signal.connect(self.probe_helper_page.on_klippy_status)
+ self.printer.on_printcore_update.connect(self.handle_printcoreupdate)
+ self.printer.gcode_response.connect(self._handle_gcode_response)
+ self.printer.z_tilt_update.connect(self._handle_z_tilt_object_update)
+
+ self.cp_button_6.hide()
+
+ self.printer.fan_update[str, str, float].connect(
+ self.fans_page.on_fan_object_update
+ )
+ self.printer.fan_update[str, str, int].connect(
+ self.fans_page.on_fan_object_update
+ )
+ self._button_change(False)
+
+ def _button_change(self, active: bool):
+ self._motion_active = active
+ for btn in [
+ self.cp_button_1,
+ self.cp_button_2,
+ self.cp_button_3,
+ self.cp_button_4,
+ self.cp_button_5,
+ self.cp_button_6,
+ ]:
+ with contextlib.suppress(RuntimeError, TypeError):
+ btn.clicked.disconnect()
+ if active:
+ self.cp_header_title.setText("Montion")
+ self.cp_button_1.setText("Auto Home")
+
+ self.cp_button_1.setPixmap(
+ QtGui.QPixmap(":/motion/media/btn_icons/home_all.svg")
)
- )
- self.panel.extrude_select_length_50_btn.toggled.connect(
- partial(
- self.handle_toggle_extrude_length,
- caller=self.panel.extrude_select_length_50_btn,
- value=50,
+ self.cp_button_1.clicked.connect(
+ lambda: self.run_gcode_signal.emit("G28\nM400")
)
- )
- self.panel.extrude_select_length_100_btn.toggled.connect(
- partial(
- self.handle_toggle_extrude_length,
- caller=self.panel.extrude_select_length_100_btn,
- value=100,
+ self.cp_button_2.setText("Disable\nSteppers")
+ self.cp_button_2.clicked.connect(
+ lambda: self.run_gcode_signal.emit("M84\nM400")
)
- )
-
- self.extrude_list = [2, 4, 8]
- self.panel.extrude_select_feedrate_low_btn.toggled.connect(
- partial(
- self.handle_toggle_extrude_feedrate,
- caller=self.panel.extrude_select_feedrate_low_btn,
- value=self.extrude_list[0],
+ self.cp_button_2.setPixmap(
+ QtGui.QPixmap(":/motion/media/btn_icons/disable_steppers.svg")
)
- )
- self.panel.extrude_select_feedrate_middle_btn.toggled.connect(
- partial(
- self.handle_toggle_extrude_feedrate,
- caller=self.panel.extrude_select_feedrate_middle_btn,
- value=self.extrude_list[1],
+ self.cp_button_3.setText("Axis")
+ self.cp_button_3.clicked.connect(
+ lambda: self.change_page(self.indexOf(self.axis_page))
)
- )
- self.panel.extrude_select_feedrate_high_btn.toggled.connect(
- partial(
- self.handle_toggle_extrude_feedrate,
- caller=self.panel.extrude_select_feedrate_high_btn,
- value=self.extrude_list[2],
+ self.cp_button_3.setPixmap(
+ QtGui.QPixmap(":/motion/media/btn_icons/axis_maintenance.svg")
+ )
+ self.cp_button_4.setText("Extruder")
+ self.cp_button_4.setPixmap(
+ QtGui.QPixmap(":/extruder_related/media/btn_icons/extrude.svg")
+ )
+ self.cp_button_4.clicked.connect(
+ lambda: self.change_page(self.indexOf(self.extruder_page))
)
- )
- self.panel.mva_select_length_1_btn.toggled.connect(
- partial(self.handle_select_move_length, value=1.0)
- )
- self.panel.mva_select_length_10_btn.toggled.connect(
- partial(self.handle_select_move_length, value=10.0)
- )
- self.panel.mva_select_length_100_btn.toggled.connect(
- partial(self.handle_select_move_length, value=100.0)
- )
- self.panel.mva_select_speed_25_btn.toggled.connect(
- partial(self.handle_select_move_speed, value=25.0)
- )
- self.panel.mva_select_speed_50_btn.toggled.connect(
- partial(self.handle_select_move_speed, value=50.0)
- )
- self.panel.mva_select_speed_100_btn.toggled.connect(
- partial(self.handle_select_move_speed, value=100.0)
- )
- self.panel.exp_extrude_btn.clicked.connect(
- partial(self.handle_extrusion, True)
- ) # True for extrusion
- self.panel.exp_unextrude_btn.clicked.connect(
- partial(self.handle_extrusion, False)
- ) # False for retraction
- # Move Axis
- self.panel.mva_back_btn.clicked.connect(self.back_button)
- self.panel.mva_home_x_btn.clicked.connect(
- partial(self.run_gcode_signal.emit, "G28 X\nM400")
- )
- self.panel.mva_home_y_btn.clicked.connect(
- partial(self.run_gcode_signal.emit, "G28 Y\nM400")
- )
- self.panel.mva_home_z_btn.clicked.connect(
- partial(self.run_gcode_signal.emit, "G28 Z\nM400")
- )
- self.panel.mva_home_all_btn.clicked.connect(
- partial(self.run_gcode_signal.emit, "G28\nM400")
- )
- self.panel.mva_up_btn.clicked.connect(partial(self.handle_move_axis, "Y"))
- self.panel.mva_down_btn.clicked.connect(partial(self.handle_move_axis, "Y-"))
- self.panel.mva_right_btn.clicked.connect(partial(self.handle_move_axis, "X"))
- self.panel.mva_left_btn.clicked.connect(partial(self.handle_move_axis, "X-"))
- self.panel.mva_z_up.clicked.connect(
- partial(self.handle_move_axis, "Z-") # Move nozzle closer to bed
- )
- self.panel.mva_z_down.clicked.connect(
- partial(self.handle_move_axis, "Z") # Move nozzle away from bed
- )
- self.panel.temp_back_button.clicked.connect(self.back_button)
- self.panel.printer_settings_back_btn.clicked.connect(self.back_button)
- self.run_gcode_signal.connect(self.ws.api.run_gcode)
- # @ object temperature change clicked
- self.numpadPage = CustomNumpad(self)
- self.numpadPage.setMaximumHeight(400)
- self.numpadPage.request_back.connect(self.request_back_button)
- self.addWidget(self.numpadPage)
- self.request_numpad[str, int, "PyQt_PyObject", int, int].connect(
- self.on_numpad_request
- )
+ self.back_button.show()
+ self.Hblank.show()
+
+ self.cp_content_layout.addWidget(self.blank)
+ self.cp_button_5.hide()
+ self.blank.show()
+ else:
+ self.cp_header_title.setText("Control")
- self.panel.cooldown_btn.clicked.connect(
- lambda: self.run_gcode_signal.emit(
- "SET_HEATER_TEMPERATURE HEATER=heater_bed TARGET=0\n\
- SET_HEATER_TEMPERATURE HEATER=extruder TARGET=0"
+ self.cp_button_1.setText("Motion\nControl")
+ self.cp_button_1.setPixmap(
+ QtGui.QPixmap(":/motion/media/btn_icons/axis_maintenance.svg")
)
- )
+ self.cp_button_1.clicked.connect(lambda: self._button_change(True))
- self.path = {
- "fan_cage": QtGui.QPixmap(":/fan_related/media/btn_icons/fan_cage.svg"),
- "blower": QtGui.QPixmap(":/fan_related/media/btn_icons/blower.svg"),
- "fan": QtGui.QPixmap(":/fan_related/media/btn_icons/fan.svg"),
- }
+ self.cp_button_2.setText("Temp.\nControl")
+ self.cp_button_2.setPixmap(
+ QtGui.QPixmap(":/temperature_related/media/btn_icons/temperature.svg")
+ )
+ self.cp_button_2.clicked.connect(
+ lambda: self.change_page(self.indexOf(self.temperature_page))
+ )
- self.panel.cp_z_tilt_btn.clicked.connect(lambda: self.handle_ztilt())
+ self.cp_button_3.setText("Nozzle\nCalibration")
+ self.cp_button_3.setPixmap(
+ QtGui.QPixmap(":/z_levelling/media/btn_icons/bed_levelling.svg")
+ )
+ self.cp_button_3.clicked.connect(
+ lambda: self.change_page(self.indexOf(self.probe_helper_page))
+ )
- self.printcores_page.pc_accept.clicked.connect(self.handle_swapcore)
+ self.cp_button_4.setText("Z-Tilt")
+ self.cp_button_4.setPixmap(
+ QtGui.QPixmap(":/z_levelling/media/btn_icons/bed_levelling.svg")
+ )
+ self.cp_button_4.clicked.connect(lambda: self.handle_ztilt())
- self.ws.klippy_state_signal.connect(self.on_klippy_status)
- self.ws.klippy_state_signal.connect(self.probe_helper_page.on_klippy_status)
- self.printer.on_printcore_update.connect(self.handle_printcoreupdate)
- self.printer.gcode_response.connect(self._handle_gcode_response)
- self.printer.z_tilt_update.connect(self._handle_z_tilt_object_update)
- # self.panel.cp_printer_settings_btn.hide()
- self.panel.temperature_cooldown_btn.hide()
- self.panel.cooldown_btn.hide()
- self.panel.cp_switch_print_core_btn.hide()
+ self.cp_button_5.setText("Fans")
+ self.cp_button_5.setPixmap(
+ QtGui.QPixmap(":/temperature_related/media/btn_icons/fan.svg")
+ )
+ self.cp_button_5.clicked.connect(
+ lambda: self.change_page(self.indexOf(self.fans_page))
+ )
- self.printer.fan_update[str, str, float].connect(self.on_fan_object_update)
- self.printer.fan_update[str, str, int].connect(self.on_fan_object_update)
+ self.cp_button_6.clicked.connect(self.show_swapcore)
- self.printer.printer_config.connect(self.on_printer_config)
- self.printer.request_object_subscription_signal.connect(self._on_object_list)
- self.ztilt_result_screen_timer = QtCore.QTimer()
- self.ztilt_result_screen_timer.setSingleShot(True)
- self.ztilt_result_screen_timer.setInterval(5000)
- self.ztilt_result_screen_timer.timeout.connect(self.ztilt_result_screen.hide)
+ self.back_button.hide()
+ self.Hblank.hide()
+ self.cp_button_5.show()
+ self.cp_content_layout.removeWidget(self.blank)
+ self.blank.hide()
+ self._apply_true_zero_layout()
+ self.repaint()
+
+ def showEvent(self, a0: QtGui.QShowEvent | None) -> None:
+ self._button_change(False)
+ return super().showEvent(a0)
def _handle_z_tilt_object_update(self, value, state):
if not self.isVisible():
@@ -311,74 +298,6 @@ def _handle_z_tilt_object_update(self, value, state):
self.ztilt_result_screen.show()
self.ztilt_result_screen_timer.start()
- @QtCore.pyqtSlot(str, str, float, name="on_fan_update")
- @QtCore.pyqtSlot(str, str, int, name="on_fan_update")
- def on_fan_object_update(
- self, name: str, field: str, new_value: int | float
- ) -> None:
- """Slot that receives updates from fan objects.
-
- Args:
- name (str): Fan object name
- field (str): Field name
- new_value (int | float): New value for the field
- """
- if "speed" not in field:
- return
-
- fields = name.split()
- first_field = fields[0]
- second_field = fields[1] if len(fields) > 1 else None
- name = second_field.replace("_", " ") if second_field else name
-
- fan_card = self.tune_display_buttons.get(name)
- if fan_card is None and first_field in (
- "fan",
- "fan_generic",
- ):
- icon = self.path.get("fan")
- if second_field:
- second_field = second_field.lower()
- pattern_blower = r"(?:^|_)(?:blower|auxiliary)(?:_|$)"
- pattern_exhaust = r"(?:^|_)exhaust(?:_|$)"
- if re.search(pattern_blower, second_field):
- icon = self.path.get("blower")
- elif re.search(pattern_exhaust, second_field):
- icon = self.path.get("fan_cage")
-
- card = OptionCard(self, name, str(name), icon) # type: ignore
- card.setObjectName(str(name))
-
- # Add card to layout and record reference
- self.card_options[name] = card
- self.panel.fans_content_layout.addWidget(card)
-
- # If the card doesn't have expected UI properties, discard it
- if not hasattr(card, "continue_clicked"):
- del card
- self.card_options.pop(name, None)
- return
-
- card.setMode(True)
- card.secondtext.setText(f"{new_value}%")
- card.continue_clicked.connect(
- lambda: self.on_slidePage_request(
- str(name),
- card.secondtext.text().replace("%", ""),
- self.on_slider_change,
- 0,
- 100,
- )
- )
-
- self.tune_display_buttons[name] = card
- self.update()
- fan_card = card
-
- if fan_card:
- value_percent = new_value * 100 if new_value <= 1 else new_value
- fan_card.secondtext.setText(f"{value_percent:.0f}%")
-
@QtCore.pyqtSlot(str, int, "PyQt_PyObject", name="on_slidePage_request")
@QtCore.pyqtSlot(str, int, "PyQt_PyObject", int, int, name="on_slidePage_request")
def on_slidePage_request(
@@ -389,7 +308,6 @@ def on_slidePage_request(
min_value: int = 0,
max_value: int = 100,
) -> None:
-
with contextlib.suppress(RuntimeError, TypeError):
self.sliderPage.value_selected.disconnect()
self.sliderPage.value_selected.connect(callback)
@@ -399,29 +317,6 @@ def on_slidePage_request(
self.sliderPage.set_slider_position(int(current_value))
self.change_page(self.indexOf(self.sliderPage))
- @QtCore.pyqtSlot(str, int, name="on_slider_change")
- def on_slider_change(self, name: str, new_value: int) -> None:
- """Handle fan slider value change."""
- self.run_gcode_signal.emit(fan_speed_gcode(name, new_value))
-
- def create_display_button(self, name: str) -> DisplayButton:
- """Create and return a DisplayButton
-
- Args:
- name (str): Name for the display button
-
- Returns:
- DisplayButton: The created DisplayButton object
- """
- display_button = DisplayButton()
- display_button.setObjectName(str(name + "_display"))
- display_button.setMinimumSize(QtCore.QSize(150, 50))
- display_button.setMaximumSize(QtCore.QSize(150, 80))
- font = QtGui.QFont()
- font.setPointSize(16)
- display_button.setFont(font)
- return display_button
-
def handle_printcoreupdate(self, value: dict):
_swapping = value.get("swapping")
if _swapping is None or _swapping == "idle":
@@ -475,44 +370,6 @@ def _handle_gcode_response(self, messages: list):
False,
)
- @QtCore.pyqtSlot(dict, name="printer_config")
- def on_printer_config(self, config: dict) -> None:
- """Slot that receives the full printer configuration,
-
- Additionally, this method configures the signal connections
- between controllable heaters and numpad calls
- """
- try:
- self.panel.extruder_temp_display.clicked.disconnect()
- self.panel.bed_temp_display.clicked.disconnect()
- except Exception:
- _logger.debug("Signals were not connected")
- extruder = config.get("extruder") or {}
- bed = config.get("heater_bed") or {}
- e_min_temp = extruder.get("min_temp", 0)
- e_max_temp = extruder.get("max_temp", 300)
- b_max_temp = bed.get("max_temp", 100)
- b_min_temp = bed.get("min_temp", 0)
- # Configure numpads
- self.panel.extruder_temp_display.clicked.connect(
- lambda: self.request_numpad[str, int, "PyQt_PyObject", int, int].emit(
- "Extruder Temperature",
- round(float(self.panel.extruder_temp_display.secondary_text)),
- self.on_numpad_change,
- int(e_min_temp),
- int(e_max_temp),
- )
- )
- self.panel.bed_temp_display.clicked.connect(
- lambda: self.request_numpad[str, int, "PyQt_PyObject", int, int].emit(
- "Bed Temperature",
- round(float(self.panel.bed_temp_display.secondary_text)),
- self.on_numpad_change,
- int(b_min_temp),
- int(b_max_temp),
- )
- )
-
def handle_ztilt(self):
"""Handle Z-Tilt Adjustment"""
self.call_load_panel.emit(
@@ -532,25 +389,34 @@ def on_klippy_status(self, state: str):
self.printcores_page.setText("Almost done \n be patient")
return
self._true_zero_state = None
- self.panel.cp_nozzles_calibration_btn.setVisible(True)
- self._place_fans_btn(row=2)
+ self._apply_true_zero_layout()
@QtCore.pyqtSlot(dict, name="_on_object_list")
def _on_object_list(self, objects: dict) -> None:
+ """Track whether the printer reports a true zero offset probe"""
has_true_zero = self.printer.uses_true_zero_offset
if has_true_zero == self._true_zero_state:
return
self._true_zero_state = has_true_zero
- self.panel.cp_nozzles_calibration_btn.setVisible(not has_true_zero)
+ self._apply_true_zero_layout()
+
+ def _apply_true_zero_layout(self) -> None:
+ """Hide nozzle calibration and lift the fans button when true zero is used"""
+ if self._motion_active:
+ self.cp_button_3.setVisible(True)
+ self._place_fans_btn(row=2)
+ return
+ has_true_zero = bool(self._true_zero_state)
+ self.cp_button_3.setVisible(not has_true_zero)
self._place_fans_btn(row=1 if has_true_zero else 2)
def _place_fans_btn(self, row: int) -> None:
- layout = self.panel.cp_content_layout
- layout.removeWidget(self.panel.cp_fans_btn)
- layout.addWidget(self.panel.cp_fans_btn, row, 0, 1, 1)
- # When fans moves to row 1, row 2 is empty — pin its height so the
+ """Move the fans button to the given grid row"""
+ self.cp_content_layout.removeWidget(self.cp_button_5)
+ self.cp_content_layout.addWidget(self.cp_button_5, row, 0, 1, 1)
+ # When fans moves to row 1, row 2 is empty: pin its height so the
# grid doesn't shrink and shift the "Control" header.
- layout.setRowMinimumHeight(2, 80 if row == 1 else 0)
+ self.cp_content_layout.setRowMinimumHeight(2, 80 if row == 1 else 0)
def show_swapcore(self):
"""Show swap printcore"""
@@ -583,179 +449,179 @@ def on_numpad_request(
self.numpadPage.set_max_value(max_value)
self.change_page(self.indexOf(self.numpadPage))
- @QtCore.pyqtSlot(str, int, name="on-numpad-change")
- def on_numpad_change(self, name: str, new_value: int) -> None:
- """Handles inputted numpad values"""
- if "bed" in name.lower():
- name = "heater_bed"
- elif "extruder" in name.lower():
- name = "extruder"
- self.run_gcode_signal.emit(
- f"SET_HEATER_TEMPERATURE HEATER={name} TARGET={new_value}"
- )
-
def change_page(self, index):
"""Handles changing page"""
self.request_change_page.emit(2, index)
- def back_button(self):
- """Handle back button click"""
- self.request_back_button.emit()
-
- def register_timed_callback(self, time: int, callback: callable) -> None:
- """Registers timed callback and starts the timeout"""
- _timer = QtCore.QTimer()
- _timer.setSingleShot(True)
- _timer.timeout.connect(callback)
- _timer.start(int(time))
- self.timers.append(_timer)
-
- @QtCore.pyqtSlot(bool, "PyQt_PyObject", int, name="select-extrude-feedrate")
- def handle_toggle_extrude_feedrate(self, checked: bool, caller, value: int) -> None:
- """Slot to change the extruder feedrate, mainly used for toggle buttons
-
- Args:
- checked (bool): Button checked state
- caller (PyQtObject): The button that called this slot
- value (int): New value for the extruder feedrate
- """
- if value == self.extrude_feedrate:
- return
- self.extrude_feedrate = value
-
- @QtCore.pyqtSlot(bool, "PyQt_PyObject", int, name="select-extrude-length")
- def handle_toggle_extrude_length(self, checked: bool, caller, value: int) -> None:
- """Slot that changes the extrude length, mainly used for toggle buttons
-
- Args:
- checked (bool): Button checked state
- caller (PyQtObject): The button that called this slot
- value (int): New value for the extrude length
- """
- if self.extrude_length == value:
- return
- self.extrude_length = value
-
- @QtCore.pyqtSlot(bool, float, name="handle-select-move-speed")
- def handle_select_move_speed(self, checked: bool, value: float) -> None:
- """Slot that changes the move speed of manual move commands, mainly used
- for toggle buttons
-
- Args:
- checked (bool): Button checked state
- value (float): New move speed value
- """
- if self.move_speed == value:
- return
- self.move_speed = value
-
- @QtCore.pyqtSlot(bool, float, name="handle-select-move-length")
- def handle_select_move_length(self, checked: bool, value: float) -> None:
- """Slot that changes the move length of manual move commands,
- mainly used for toggle buttons
-
-
- Args:
- checked (bool): Button checked state
- value (float): New length value
- """
- if self.move_length == value:
- return
- self.move_length = value
-
- @QtCore.pyqtSlot(str, name="handle-extrusion")
- def handle_extrusion(self, extrude: bool) -> None:
- """Slot that requests an extrusion/unextrusion move
-
- Args:
- extrude (bool): If True extrudes otherwise unextrudes.
- """
- can_extrude = bool(self.printer.heaters_object["extruder"]["can_extrude"])
- if not can_extrude:
- self.extrude_page_message = "Temperature too cold to extrude"
- self.panel.exp_info_label.setText(self.extrude_page_message)
- return
- if extrude:
- self.run_gcode_signal.emit(
- f"M83\nG1 E{self.extrude_length}"
- f" F{self.extrude_feedrate * 60}\nM82\nM400"
- )
- self.extrude_page_message = "Extruding"
- self.panel.exp_info_label.setText(self.extrude_page_message)
- else:
- self.run_gcode_signal.emit(
- f"M83\nG1 E-{self.extrude_length}"
- f" F{self.extrude_feedrate * 60}\nM82\nM400"
- )
- self.extrude_page_message = "Retracting"
- self.panel.exp_info_label.setText(self.extrude_page_message)
- # This block of code schedules a method to be called in x amount of milliseconds
- _sch_time_s = float(
- self.extrude_length / self.extrude_feedrate
- ) # calculate the amount of time it'll take for the operation
- self.extrude_page_message = "Ready"
- self.register_timed_callback(
- int(_sch_time_s + 2.0) * 1000, # In milliseconds
- lambda: self.panel.exp_info_label.setText(self.extrude_page_message),
- )
-
- @QtCore.pyqtSlot(str, name="handle-move-axis")
- def handle_move_axis(self, axis: str) -> None:
- """Slot that requests manual move command
-
- Args:
- axis (str): String that contains one of the following axis `
- ['X',
- 'X-'
- ,'Y'
- ,'Y-'
- ,'Z'
- ,'Z-']`. [^1]
-
- ---
-
- [^1]: The **-** symbol indicates the negative direction for that axis
-
- """
- if axis not in ["X", "X-", "Y", "Y-", "Z", "Z-"]:
- return
- self.run_gcode_signal.emit(
- f"G91\nG0 {axis}{float(self.move_length)}"
- f" F{float(self.move_speed * 60)}\nG90\nM400"
- )
-
- @QtCore.pyqtSlot(str, list, name="on-toolhead-update")
- def on_toolhead_update(self, field: str, values: list) -> None:
- """Handles updated from toolhead printer object"""
- if field == "position":
- self.panel.mva_x_value_label.setText(f"{values[0]:.2f}")
- self.panel.mva_y_value_label.setText(f"{values[1]:.2f}")
- self.panel.mva_z_value_label.setText(f"{values[2]:.3f}")
-
- self.toolhead_info.update({f"{field}": values})
+ def _setup_ui(self) -> None:
+ """Build the control tab page: header, back button, and option grid."""
+ self.resize(710, 410)
+ self.blank = QtWidgets.QWidget()
+ self.blank.setMinimumSize(QtCore.QSize(250, 80))
+ self.blank.setMaximumSize(QtCore.QSize(250, 80))
+
+ self.Hblank = QtWidgets.QWidget(parent=self)
+ self.Hblank.setMinimumSize(QtCore.QSize(60, 60))
+ self.Hblank.setMaximumSize(QtCore.QSize(60, 60))
+
+ widget = QtWidgets.QWidget()
+ widget.setMinimumSize(QtCore.QSize(710, 410))
+ widget.setMaximumSize(QtCore.QSize(710, 410))
+ self.setObjectName("control_page")
+ self.verticalLayout = QtWidgets.QVBoxLayout()
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.cp_header_layout = QtWidgets.QHBoxLayout()
+ self.cp_header_layout.setObjectName("cp_header_layout")
+
+ self.cp_header_layout.addWidget(self.Hblank)
+ self.cp_header_title = QtWidgets.QLabel(parent=self)
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ QtWidgets.QSizePolicy.Policy.Fixed,
+ )
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(
+ self.cp_header_title.sizePolicy().hasHeightForWidth()
+ )
+ self.cp_header_title.setSizePolicy(sizePolicy)
+ self.cp_header_title.setMinimumSize(QtCore.QSize(300, 60))
+ self.cp_header_title.setMaximumSize(QtCore.QSize(16777215, 60))
+ font = QtGui.QFont()
+ font.setFamily("Momcake")
+ font.setPointSize(24)
+ font.setBold(True)
+ font.setWeight(75)
+ self.cp_header_title.setFont(font)
+ self.cp_header_title.setStyleSheet("background: transparent; color: white;")
+ self.cp_header_title.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
+ self.cp_header_title.setObjectName("cp_header_title")
+ self.cp_header_layout.addWidget(self.cp_header_title)
+
+ self.back_button = IconButton(parent=self)
+ self.back_button.setPixmap(QtGui.QPixmap(":/ui/media/btn_icons/back.svg"))
+ self.back_button.setMinimumSize(QtCore.QSize(60, 60))
+ self.back_button.setMaximumSize(QtCore.QSize(60, 60))
+ self.cp_header_layout.addWidget(self.back_button)
+
+ self.verticalLayout.addLayout(self.cp_header_layout)
+ self.cp_content_layout = QtWidgets.QGridLayout()
+ self.cp_content_layout.setObjectName("cp_content_layout")
+
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed
+ )
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
- @QtCore.pyqtSlot(str, str, float, name="on-extruder-update")
- def on_extruder_update(
- self, extruder_name: str, field: str, new_value: float
- ) -> None:
- """Handles updates from extruder printer object"""
- if extruder_name == "extruder" and field == "temperature":
- self.panel.extruder_temp_display.setText(f"{new_value:.1f}")
- if extruder_name == "extruder" and field == "target":
- self.panel.extruder_temp_display.secondary_text = f"{new_value:.1f}"
- self.extruder_info.update({f"{extruder_name}": {f"{field}": new_value}})
-
- @QtCore.pyqtSlot(str, str, float, name="on-heater-bed-update")
- def on_heater_bed_update(self, name: str, field: str, new_value: float) -> None:
- """Handles updated from heater_bed printer object"""
- if field == "temperature":
- self.panel.bed_temp_display.setText(f"{new_value:.1f}")
- if field == "target":
- self.panel.bed_temp_display.secondary_text = f"{new_value:.1f}"
- self.bed_info.update({f"{name}": {f"{field}": new_value}})
-
- def paintEvent(self, a0: QtGui.QPaintEvent) -> None:
- """Handles ControlTab Widget painting"""
- if self.panel.extrude_page.isVisible():
- self.panel.exp_info_label.setText(self.extrude_page_message)
- return super().paintEvent(a0)
+ font = QtGui.QFont()
+ font.setFamily("Momcake")
+ font.setPointSize(19)
+ font.setItalic(False)
+ font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
+
+ self.cp_button_1 = BlocksCustomButton(parent=self)
+ self.cp_button_1.setSizePolicy(sizePolicy)
+ self.cp_button_1.setMinimumSize(QtCore.QSize(250, 80))
+ self.cp_button_1.setMaximumSize(QtCore.QSize(250, 80))
+ self.cp_button_1.setFont(font)
+ self.cp_button_1.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
+ self.cp_button_1.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
+ self.cp_button_1.setProperty(
+ "icon_pixmap",
+ QtGui.QPixmap(":/motion/media/btn_icons/axis_maintenance.svg"),
+ )
+ self.cp_button_1.setObjectName("cp_button_1")
+
+ self.cp_content_layout.addWidget(self.cp_button_1, 0, 0, 1, 1)
+
+ self.cp_button_2 = BlocksCustomButton(parent=self)
+ self.cp_button_2.setSizePolicy(sizePolicy)
+ self.cp_button_2.setMinimumSize(QtCore.QSize(10, 80))
+ self.cp_button_2.setMaximumSize(QtCore.QSize(250, 80))
+ self.cp_button_2.setFont(font)
+ self.cp_button_2.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
+ self.cp_button_2.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
+ self.cp_button_2.setProperty(
+ "icon_pixmap",
+ QtGui.QPixmap(":/temperature_related/media/btn_icons/temperature.svg"),
+ )
+ self.cp_button_2.setObjectName("cp_button_2")
+
+ self.cp_content_layout.addWidget(self.cp_button_2, 0, 1, 1, 1)
+
+ self.cp_button_3 = BlocksCustomButton(parent=self)
+ self.cp_button_3.setSizePolicy(sizePolicy)
+ self.cp_button_3.setMinimumSize(QtCore.QSize(10, 80))
+ self.cp_button_3.setMaximumSize(QtCore.QSize(250, 80))
+ self.cp_button_3.setFont(font)
+ self.cp_button_3.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
+ self.cp_button_3.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
+ self.cp_button_3.setProperty(
+ "icon_pixmap",
+ QtGui.QPixmap(":/z_levelling/media/btn_icons/bed_levelling.svg"),
+ )
+ self.cp_button_3.setObjectName("cp_button_3")
+
+ self.cp_content_layout.addWidget(self.cp_button_3, 1, 0, 1, 1)
+
+ self.cp_button_4 = BlocksCustomButton(parent=self)
+ self.cp_button_4.setSizePolicy(sizePolicy)
+ self.cp_button_4.setMinimumSize(QtCore.QSize(10, 80))
+ self.cp_button_4.setMaximumSize(QtCore.QSize(250, 80))
+ self.cp_button_4.setFont(font)
+ self.cp_button_4.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
+ self.cp_button_4.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
+ self.cp_button_4.setProperty(
+ "icon_pixmap",
+ QtGui.QPixmap(":/z_levelling/media/btn_icons/bed_levelling.svg"),
+ )
+ self.cp_button_4.setObjectName("cp_button_4")
+
+ self.cp_content_layout.addWidget(self.cp_button_4, 1, 1, 1, 1)
+
+ self.cp_button_5 = BlocksCustomButton(parent=self)
+ self.cp_button_5.setSizePolicy(sizePolicy)
+ self.cp_button_5.setMinimumSize(QtCore.QSize(10, 80))
+ self.cp_button_5.setMaximumSize(QtCore.QSize(250, 80))
+ self.cp_button_5.setFont(font)
+ self.cp_button_5.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
+ self.cp_button_5.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
+ self.cp_button_5.setProperty(
+ "icon_pixmap",
+ QtGui.QPixmap(":/temperature_related/media/btn_icons/fan.svg"),
+ )
+ self.cp_button_5.setObjectName("cp_button_5")
+
+ self.cp_content_layout.addWidget(self.cp_button_5, 2, 0, 1, 1)
+
+ self.cp_button_6 = BlocksCustomButton(parent=self)
+ self.cp_button_6.setSizePolicy(sizePolicy)
+ self.cp_button_6.setMinimumSize(QtCore.QSize(10, 80))
+ self.cp_button_6.setMaximumSize(QtCore.QSize(250, 80))
+ self.cp_button_6.setFont(font)
+ self.cp_button_6.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
+ self.cp_button_6.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
+ self.cp_button_6.setProperty(
+ "icon_pixmap",
+ QtGui.QPixmap(":/extruder_related/media/btn_icons/switch_print_core.svg"),
+ )
+ self.cp_button_6.setObjectName("cp_button_6")
+
+ self.cp_content_layout.addWidget(self.cp_button_6, 2, 1, 1, 1)
+ self.verticalLayout.addLayout(self.cp_content_layout)
+ widget.setLayout(self.verticalLayout)
+ self.addWidget(widget)
+
+ _translate = QtCore.QCoreApplication.translate
+ self.setWindowTitle(_translate("controlStackedWidget", "StackedWidget"))
+ self.cp_header_title.setText(_translate("controlStackedWidget", "Control"))
+
+ self.cp_button_1.setText(_translate("controlStackedWidget", "Motion\nControl"))
+ self.cp_button_2.setText(_translate("controlStackedWidget", "Temp.\nControl"))
+ self.cp_button_3.setText(
+ _translate("controlStackedWidget", "Nozzle\nCalibration")
+ )
+ self.cp_button_4.setText(_translate("controlStackedWidget", "Z-Tilt"))
+ self.cp_button_5.setText(_translate("controlStackedWidget", "Fans"))
+ self.cp_button_6.setText(_translate("controlStackedWidget", "Swap\nPrint Core"))
diff --git a/BlocksScreen/lib/panels/filamentTab.py b/BlocksScreen/lib/panels/filamentTab.py
index 015e7915..0f60870c 100644
--- a/BlocksScreen/lib/panels/filamentTab.py
+++ b/BlocksScreen/lib/panels/filamentTab.py
@@ -47,8 +47,8 @@ def __init__(
self.amu_manager: AMUManager = amu_manager
self.amu_configured = False
self._popup_callback = None
- self.ui = self.setupUi()
- self.change_page(self.indexOf(self.ui))
+ self._setup_ui()
+ self.change_page(self.indexOf(self.filament_control_page))
self._previous_gate_states: dict[int, bool] = {}
self.pre_gate_idx = {}
@@ -881,7 +881,8 @@ def on_mmu_state_changed(self, mmu_state):
self.load_state = True
self.call_load_panel.emit(True, mmu_state.action, True)
- def setupUi(self):
+ def _setup_ui(self) -> None:
+ """Build the filament control page and add it to the stack."""
self.resize(710, 410)
self.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
widget = QtWidgets.QWidget()
@@ -989,6 +990,7 @@ def setupUi(self):
2, int(87.5)
) # dont ask how i got this value , it was try and repeat
+ self.filament_control_page = widget
self.addWidget(widget)
self.fp_header_title.setText("Filament")
self.fp_button_1.setText("Filament\nControl")
diff --git a/BlocksScreen/lib/panels/mainWindow.py b/BlocksScreen/lib/panels/mainWindow.py
index 035f27f8..ec56e2ca 100644
--- a/BlocksScreen/lib/panels/mainWindow.py
+++ b/BlocksScreen/lib/panels/mainWindow.py
@@ -23,13 +23,12 @@
from lib.panels.printTab import PrintTab
from lib.panels.utilitiesTab import UtilitiesTab
from lib.panels.widgets.basePopup import BasePopup
-from lib.panels.widgets.cancelPage import CancelPage
-from lib.panels.widgets.connectionPage import ConnectionPage
+from lib.panels.widgets.MainWindow.cancelPage import CancelPage
+from lib.panels.widgets.MainWindow.connectionPage import ConnectionPage
from lib.panels.widgets.loadWidget import LoadingOverlayWidget
-from lib.panels.widgets.notificationPage import NotificationPage
-from lib.panels.widgets.updatePage import UpdatePage
+from lib.panels.widgets.MainWindow.notificationPage import NotificationPage
+from lib.panels.widgets.MainWindow.updatePage import UpdatePage
from lib.printer import Printer
-from lib.ui.mainWindow_ui import Ui_MainWindow # With header
from lib.ui.resources.background_resources_rc import *
from lib.ui.resources.font_rc import *
from lib.ui.resources.graphic_resources_rc import *
@@ -38,6 +37,9 @@
from lib.ui.resources.system_resources_rc import *
from lib.ui.resources.top_bar_resources_rc import *
from lib.updater_worker import UpdaterWorker
+from lib.utils.blocks_tabwidget import NotificationQTabWidget
+from lib.utils.display_button import DisplayButton
+from lib.utils.icon_button import IconButton
from PyQt6 import QtCore, QtGui, QtWidgets
from screensaver import ScreenSaver
@@ -122,8 +124,7 @@ def __init__(self):
"""Set up UI, instantiate subsystems, and wire all inter-component signals."""
super(MainWindow, self).__init__()
self.config: BlocksScreenConfig = get_configparser()
- self.ui = Ui_MainWindow()
- self.ui.setupUi(self)
+ self._setup_ui()
self.screensaver = ScreenSaver(self)
self._popup_toggle: bool = False
self._update_in_progress: bool = False
@@ -139,7 +140,7 @@ def __init__(self):
self._klipper_restart_timeout.setSingleShot(True)
self._klipper_restart_timeout.setInterval(30_000)
self._klipper_restart_timeout.timeout.connect(self._on_klipper_restart_timeout)
- self.ui.main_content_widget.setCurrentIndex(0)
+ self.main_content_widget.setCurrentIndex(0)
usb_config = self.config.get_section("usb_manager", fallback=None)
gdir = None
@@ -170,16 +171,14 @@ def __init__(self):
self.update_page.hide()
self.conn_window.call_cancel_panel.connect(self.handle_cancel_print)
self.installEventFilter(self.conn_window)
- self.printPanel = PrintTab(
- self.ui.printTab, self.file_data, self.ws, self.printer
- )
+ self.printPanel = PrintTab(self.printTab, self.file_data, self.ws, self.printer)
if not os.environ.get("BLOCKSCREEN_DEV"):
QtWidgets.QApplication.setOverrideCursor(QtCore.Qt.CursorShape.BlankCursor)
self.filamentPanel = FilamentTab(
- self.ui.filamentTab, self.printer, self.ws, self.config, self.amu_manager
+ self.filamentTab, self.printer, self.ws, self.config, self.amu_manager
)
- self.controlPanel = ControlTab(self.ui.controlTab, self.ws, self.printer)
- self.utilitiesPanel = UtilitiesTab(self.ui.utilitiesTab, self.ws, self.printer)
+ self.controlPanel = ControlTab(self.controlTab, self.ws, self.printer)
+ self.utilitiesPanel = UtilitiesTab(self.utilitiesTab, self.ws, self.printer)
self.networkPanel = NetworkControlWindow(self)
self.bo_ws_startup.connect(slot=self.bo_start_websocket_connection)
@@ -206,30 +205,29 @@ def __init__(self):
self.utilitiesPanel.request_back.connect(slot=self.global_back)
self.utilitiesPanel.request_change_page.connect(slot=self.global_change_page)
self.utilitiesPanel.update_available.connect(self.on_update_available)
-
- self.ui.notification_btn.clicked.connect(self.notiPage.show_notification_panel)
- self.ui.extruder_temp_display.clicked.connect(
+ self.notification_btn.clicked.connect(self.notiPage.show_notification_panel)
+ self.extruder_temp_display.clicked.connect(
lambda: self.global_change_page(
- self.ui.main_content_widget.indexOf(self.ui.controlTab),
- self.controlPanel.indexOf(self.controlPanel.panel.temperature_page),
+ self.main_content_widget.indexOf(self.controlTab),
+ self.controlPanel.indexOf(self.controlPanel.temperature_page),
)
)
- self.ui.bed_temp_display.clicked.connect(
+ self.bed_temp_display.clicked.connect(
lambda: self.global_change_page(
- self.ui.main_content_widget.indexOf(self.ui.controlTab),
- self.controlPanel.indexOf(self.controlPanel.panel.temperature_page),
+ self.main_content_widget.indexOf(self.controlTab),
+ self.controlPanel.indexOf(self.controlPanel.temperature_page),
)
)
- self.ui.filament_type_icon.clicked.connect(
+ self.filament_type_icon.clicked.connect(
lambda: self.global_change_page(
- self.ui.main_content_widget.indexOf(self.ui.filamentTab),
+ self.main_content_widget.indexOf(self.filamentTab),
2,
)
)
- self.ui.filament_type_icon.setText("PLA")
- self.ui.filament_type_icon.update()
- self.ui.nozzle_size_icon.setText("0.4mm")
- self.ui.nozzle_size_icon.update()
+ self.filament_type_icon.setText("PLA")
+ self.filament_type_icon.update()
+ self.nozzle_size_icon.setText("0.4mm")
+ self.nozzle_size_icon.update()
self.conn_window.retry_connection_clicked.connect(slot=self.ws.retry_wb_conn)
self.conn_window.firmware_restart_clicked.connect(
slot=self.mc.restart_klipper_mcu_service
@@ -255,7 +253,7 @@ def __init__(self):
self.amu_manager.run_gcode_signal.connect(self.ws.api.run_gcode)
self.run_gcode_signal.connect(self.ws.api.run_gcode)
- self.ui.main_content_widget.currentChanged.connect(slot=self.reset_tab_indexes)
+ self.main_content_widget.currentChanged.connect(slot=self.reset_tab_indexes)
self.call_network_panel.connect(self.networkPanel.show_network_panel)
self.call_notification_panel.connect(self.notiPage.show_notification_panel)
self.networkPanel.update_wifi_icon.connect(self.change_wifi_icon)
@@ -263,7 +261,7 @@ def __init__(self):
self.conn_window.notification_button_clicked.connect(
self.call_notification_panel.emit
)
- self.ui.wifi_button.clicked.connect(self.call_network_panel.emit)
+ self.wifi_button.clicked.connect(self.call_network_panel.emit)
self.handle_error_response.connect(
self.controlPanel.probe_helper_page.handle_error_response
)
@@ -302,8 +300,8 @@ def __init__(self):
self.ws.klippy_state_signal.connect(self._on_klippy_state)
self.utilitiesPanel.show_update_page.connect(self.show_update_page)
self.conn_window.update_button_clicked.connect(self.show_update_page)
- self.ui.extruder_temp_display.display_format = "upper_downer"
- self.ui.bed_temp_display.display_format = "upper_downer"
+ self.extruder_temp_display.display_format = "upper_downer"
+ self.bed_temp_display.display_format = "upper_downer"
self.controlPanel.call_load_panel.connect(self.show_loadscreen)
self.filamentPanel.call_load_panel.connect(self.show_loadscreen)
@@ -345,7 +343,7 @@ def __init__(self):
self.printer.print_stats_update[str, str].connect(self._track_print_state)
self.print_status = "idle"
- self.ui.chamber_temp_display.hide()
+ self.chamber_temp_display.hide()
if self.config.has_section("server"):
self.bo_ws_startup.emit()
@@ -418,9 +416,9 @@ def show_loadscreen(
def show_update_page(self, fullscreen: bool):
"""Slot for displaying update Panel"""
if not fullscreen:
- self.update_page.setParent(self.ui.main_content_widget)
- current_index = self.ui.main_content_widget.currentIndex()
- tab_rect = self.ui.main_content_widget.tabBar().tabRect(current_index)
+ self.update_page.setParent(self.main_content_widget)
+ current_index = self.main_content_widget.currentIndex()
+ tab_rect = self.main_content_widget.tabBar().tabRect(current_index)
width = tab_rect.width()
_parent_size = self.update_page.parent().size()
self.update_page.setGeometry(
@@ -491,20 +489,20 @@ def on_cancel_print(self):
"""Slot for cancel print signal"""
self.enable_tab_bar()
try:
- self.ui.extruder_temp_display.clicked.disconnect()
- self.ui.bed_temp_display.clicked.disconnect()
+ self.extruder_temp_display.clicked.disconnect()
+ self.bed_temp_display.clicked.disconnect()
except TypeError:
pass
- self.ui.extruder_temp_display.clicked.connect(
+ self.extruder_temp_display.clicked.connect(
lambda: self.global_change_page(
- self.ui.main_content_widget.indexOf(self.ui.controlTab),
- self.controlPanel.indexOf(self.controlPanel.panel.temperature_page),
+ self.main_content_widget.indexOf(self.controlTab),
+ self.controlPanel.indexOf(self.controlPanel.temperature_page),
)
)
- self.ui.bed_temp_display.clicked.connect(
+ self.bed_temp_display.clicked.connect(
lambda: self.global_change_page(
- self.ui.main_content_widget.indexOf(self.ui.controlTab),
- self.controlPanel.indexOf(self.controlPanel.panel.temperature_page),
+ self.main_content_widget.indexOf(self.controlTab),
+ self.controlPanel.indexOf(self.controlPanel.temperature_page),
)
)
@@ -588,7 +586,7 @@ def _on_moonraker_connected_post_update(self) -> None:
@QtCore.pyqtSlot(bool, name="update-available")
def on_update_available(self, state: bool = False):
"""Signal render for red dot on utilities tab icon and Update button"""
- self.ui.main_content_widget.setNotification(3, state)
+ self.main_content_widget.setNotification(3, state)
self.utilitiesPanel.panel.update_btn.setShowNotification(state)
self.repaint()
@@ -601,22 +599,22 @@ def enable_tab_bar(self) -> bool:
bool: True if the TabBar was disabled
"""
- self.ui.main_content_widget.setTabEnabled(
- self.ui.main_content_widget.indexOf(self.ui.controlTab), True
+ self.main_content_widget.setTabEnabled(
+ self.main_content_widget.indexOf(self.controlTab), True
)
- self.ui.main_content_widget.setTabEnabled(
- self.ui.main_content_widget.indexOf(self.ui.utilitiesTab), True
+ self.main_content_widget.setTabEnabled(
+ self.main_content_widget.indexOf(self.utilitiesTab), True
)
- self.ui.header_main_layout.setEnabled(True)
+ self.header_main_layout.setEnabled(True)
return all(
[
- not self.ui.main_content_widget.isTabEnabled(
- self.ui.main_content_widget.indexOf(self.ui.controlTab)
+ not self.main_content_widget.isTabEnabled(
+ self.main_content_widget.indexOf(self.controlTab)
),
- not self.ui.main_content_widget.isTabEnabled(
- self.ui.main_content_widget.indexOf(self.ui.utilitiesTab)
+ not self.main_content_widget.isTabEnabled(
+ self.main_content_widget.indexOf(self.utilitiesTab)
),
- not self.ui.header_main_layout.isEnabled(),
+ not self.header_main_layout.isEnabled(),
]
)
@@ -631,22 +629,22 @@ def disable_tab_bar(self) -> bool:
Returns:
boolean: True if the TabBar was disabled
"""
- self.ui.main_content_widget.setTabEnabled(
- self.ui.main_content_widget.indexOf(self.ui.controlTab), False
+ self.main_content_widget.setTabEnabled(
+ self.main_content_widget.indexOf(self.controlTab), False
)
- self.ui.main_content_widget.setTabEnabled(
- self.ui.main_content_widget.indexOf(self.ui.utilitiesTab), False
+ self.main_content_widget.setTabEnabled(
+ self.main_content_widget.indexOf(self.utilitiesTab), False
)
- self.ui.header_main_layout.setEnabled(False)
+ self.header_main_layout.setEnabled(False)
return all(
[
- not self.ui.main_content_widget.isTabEnabled(
- self.ui.main_content_widget.indexOf(self.ui.controlTab)
+ not self.main_content_widget.isTabEnabled(
+ self.main_content_widget.indexOf(self.controlTab)
),
- not self.ui.main_content_widget.isTabEnabled(
- self.ui.main_content_widget.indexOf(self.ui.utilitiesTab)
+ not self.main_content_widget.isTabEnabled(
+ self.main_content_widget.indexOf(self.utilitiesTab)
),
- not self.ui.header_main_layout.isEnabled(),
+ not self.header_main_layout.isEnabled(),
]
)
@@ -663,14 +661,14 @@ def set_ui_lock(self, locked: bool) -> None:
the header, so the user cannot navigate away mid-calibration.
"""
for tab in (
- self.ui.printTab,
- self.ui.filamentTab,
- self.ui.utilitiesTab,
+ self.printTab,
+ self.filamentTab,
+ self.utilitiesTab,
):
- self.ui.main_content_widget.setTabEnabled(
- self.ui.main_content_widget.indexOf(tab), not locked
+ self.main_content_widget.setTabEnabled(
+ self.main_content_widget.indexOf(tab), not locked
)
- self.ui.header_main_layout.setEnabled(not locked)
+ self.header_main_layout.setEnabled(not locked)
@QtCore.pyqtSlot(str, str, name="track_print_state")
def _track_print_state(self, field: str, value: str) -> None:
@@ -684,7 +682,7 @@ def _is_job_active(self) -> bool:
def _print_tab_index(self) -> int:
"""Tab index of the print tab in the main content widget."""
- return self.ui.main_content_widget.indexOf(self.ui.printTab)
+ return self.main_content_widget.indexOf(self.printTab)
def _job_status_index(self) -> int:
"""Panel index of the job-status page inside the print tab."""
@@ -726,7 +724,7 @@ def current_panel_index(self) -> int:
Returns:
int: The index os the page
"""
- match self.ui.main_content_widget.currentIndex():
+ match self.main_content_widget.currentIndex():
case 0:
return self.printPanel.currentIndex()
case 1:
@@ -743,7 +741,7 @@ def set_current_panel_index(self, panel_index: int) -> None:
Args:
panel_index (int): The index of the page we want to go to
"""
- match self.ui.main_content_widget.currentIndex():
+ match self.main_content_widget.currentIndex():
case 0:
self.printPanel.setCurrentIndex(panel_index)
case 1:
@@ -760,7 +758,7 @@ def change_wifi_icon(self, icon_key: int) -> None:
Args:
icon_key (int): WifiIconKey mapping for the current network state
"""
- self.ui.wifi_button.setPixmap(HeaderWifiIconProvider.get_pixmap(icon_key))
+ self.wifi_button.setPixmap(HeaderWifiIconProvider.get_pixmap(icon_key))
@QtCore.pyqtSlot(int, int, name="request-change-page")
def global_change_page(self, tab_index: int, panel_index: int) -> None:
@@ -782,7 +780,7 @@ def global_change_page(self, tab_index: int, panel_index: int) -> None:
self.show_loadscreen(False)
panel_index = self._guard_print_panel(tab_index, panel_index)
current_page = [
- self.ui.main_content_widget.currentIndex(),
+ self.main_content_widget.currentIndex(),
self.current_panel_index(),
]
requested_page = [tab_index, panel_index]
@@ -790,7 +788,7 @@ def global_change_page(self, tab_index: int, panel_index: int) -> None:
_logger.debug("User is already on the requested page")
return
self.index_stack.append(current_page)
- self.ui.main_content_widget.setCurrentIndex(tab_index)
+ self.main_content_widget.setCurrentIndex(tab_index)
self.set_current_panel_index(panel_index)
_logger.debug(
f"Requested page change -> Tab index : {requested_page[0]} | panel index : {requested_page[1]}",
@@ -807,7 +805,7 @@ def global_change_tab(self, tab_index: int) -> None:
"Tab index argument expected type int, got %s", str(type(tab_index))
)
return
- self.ui.main_content_widget.setCurrentIndex(tab_index)
+ self.main_content_widget.setCurrentIndex(tab_index)
_logger.debug(
f"Requested tab change -> Tab index : {tab_index}",
)
@@ -820,7 +818,7 @@ def global_back(self) -> None:
return
_tab, _panel = self.index_stack[-1]
_panel = self._guard_print_panel(_tab, _panel)
- self.ui.main_content_widget.setCurrentIndex(_tab)
+ self.main_content_widget.setCurrentIndex(_tab)
self.set_current_panel_index(_panel)
self.index_stack.pop() # Remove the last position.
_logger.debug("Successfully went back a page.")
@@ -1158,9 +1156,9 @@ def on_extruder_update(
"""Handles extruder printer object updates"""
if extruder_name == "extruder":
if field == "temperature":
- self.ui.extruder_temp_display.setText(f"{new_value:.0f}")
+ self.extruder_temp_display.setText(f"{new_value:.0f}")
elif field == "target":
- self.ui.extruder_temp_display.secondary_text = (
+ self.extruder_temp_display.secondary_text = (
f"{round(int(new_value)):.0f}°C"
)
@@ -1168,34 +1166,32 @@ def on_extruder_update(
def on_heater_bed_update(self, name: str, field: str, new_value: float) -> None:
"""Handles heater_bed printer object updates"""
if field == "temperature":
- self.ui.bed_temp_display.setText(f"{new_value:.0f}")
+ self.bed_temp_display.setText(f"{new_value:.0f}")
elif field == "target":
- self.ui.bed_temp_display.secondary_text = f"{round(int(new_value)):.0f}°C"
+ self.bed_temp_display.secondary_text = f"{round(int(new_value)):.0f}°C"
@QtCore.pyqtSlot(str, str, float, name="sensor_update")
def on_temp_sensor_update(self, name: str, field: str, value: float) -> None:
"""Handles Chamber temperature if a sensor with that name exists"""
if name == "Chamber":
- if self.ui.chamber_temp_display.isHidden():
- self.ui.chamber_temp_display.show()
+ if self.chamber_temp_display.isHidden():
+ self.chamber_temp_display.show()
if field == "temperature":
- self.ui.chamber_temp_display.setText(f"{round(int(value)):.0f}°C")
+ self.chamber_temp_display.setText(f"{round(int(value)):.0f}°C")
elif field == "humidity":
- self.ui.chamber_temp_display.setSecondaryText(
- f"{round(int(value)):.0f}%"
- )
+ self.chamber_temp_display.setSecondaryText(f"{round(int(value)):.0f}%")
@QtCore.pyqtSlot(str, name="set-header-filament-type")
def set_header_filament_type(self, type: str):
"""Sets header filament text label"""
- self.ui.filament_type_icon.setText(f"{type}")
- self.ui.filament_type_icon.update()
+ self.filament_type_icon.setText(f"{type}")
+ self.filament_type_icon.update()
@QtCore.pyqtSlot(str, name="set-header-nozzle-diameter")
def set_header_nozzle_diameter(self, diam: str):
"""Sets header nozzle diameter text label"""
- self.ui.nozzle_size_icon.setText(f"{diam}mm")
- self.ui.nozzle_size_icon.update()
+ self.nozzle_size_icon.setText(f"{diam}mm")
+ self.nozzle_size_icon.update()
def closeEvent(self, a0: QtGui.QCloseEvent | None) -> None:
"""Handles GUI closing"""
@@ -1222,19 +1218,19 @@ def event(self, event: QtCore.QEvent) -> bool:
self.print_status = "printing"
self.disable_tab_bar()
try:
- self.ui.extruder_temp_display.clicked.disconnect()
- self.ui.bed_temp_display.clicked.disconnect()
+ self.extruder_temp_display.clicked.disconnect()
+ self.bed_temp_display.clicked.disconnect()
except TypeError:
pass
- self.ui.extruder_temp_display.clicked.connect(
+ self.extruder_temp_display.clicked.connect(
lambda: self.global_change_page(
- self.ui.main_content_widget.indexOf(self.ui.printTab),
+ self.main_content_widget.indexOf(self.printTab),
self.printPanel.indexOf(self.printPanel.tune_page),
)
)
- self.ui.bed_temp_display.clicked.connect(
+ self.bed_temp_display.clicked.connect(
lambda: self.global_change_page(
- self.ui.main_content_widget.indexOf(self.ui.printTab),
+ self.main_content_widget.indexOf(self.printTab),
self.printPanel.indexOf(self.printPanel.tune_page),
)
)
@@ -1250,20 +1246,20 @@ def event(self, event: QtCore.QEvent) -> bool:
self.handle_cancel_print()
self.enable_tab_bar()
try:
- self.ui.extruder_temp_display.clicked.disconnect()
- self.ui.bed_temp_display.clicked.disconnect()
+ self.extruder_temp_display.clicked.disconnect()
+ self.bed_temp_display.clicked.disconnect()
except TypeError:
pass
- self.ui.extruder_temp_display.clicked.connect(
+ self.extruder_temp_display.clicked.connect(
lambda: self.global_change_page(
- self.ui.main_content_widget.indexOf(self.ui.controlTab),
- self.controlPanel.indexOf(self.controlPanel.panel.temperature_page),
+ self.main_content_widget.indexOf(self.controlTab),
+ self.controlPanel.indexOf(self.controlPanel.temperature_page),
)
)
- self.ui.bed_temp_display.clicked.connect(
+ self.bed_temp_display.clicked.connect(
lambda: self.global_change_page(
- self.ui.main_content_widget.indexOf(self.ui.controlTab),
- self.controlPanel.indexOf(self.controlPanel.panel.temperature_page),
+ self.main_content_widget.indexOf(self.controlTab),
+ self.controlPanel.indexOf(self.controlPanel.temperature_page),
)
)
return False
@@ -1273,3 +1269,491 @@ def sizeHint(self) -> QtCore.QSize:
"""Sets default size for the widget"""
self.adjustSize()
return QtCore.QSize(800, 480)
+
+ def _setup_ui(self) -> None:
+ """Build the main window chrome: header bar, tab widget, and tab pages."""
+ self.setObjectName("MainWindow")
+ self.resize(800, 480)
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ )
+ sizePolicy.setHorizontalStretch(1)
+ sizePolicy.setVerticalStretch(1)
+ sizePolicy.setHeightForWidth(self.sizePolicy().hasHeightForWidth())
+ self.setSizePolicy(sizePolicy)
+ self.setMinimumSize(QtCore.QSize(800, 480))
+ self.setMaximumSize(QtCore.QSize(1024, 600))
+ self.setSizeIncrement(QtCore.QSize(1, 1))
+ self.setBaseSize(QtCore.QSize(800, 480))
+ palette = QtGui.QPalette()
+ brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
+ brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
+ palette.setBrush(
+ QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush
+ )
+ brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
+ brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
+ palette.setBrush(
+ QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush
+ )
+ brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
+ brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
+ palette.setBrush(
+ QtGui.QPalette.ColorGroup.Inactive,
+ QtGui.QPalette.ColorRole.WindowText,
+ brush,
+ )
+ brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
+ brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
+ palette.setBrush(
+ QtGui.QPalette.ColorGroup.Inactive,
+ QtGui.QPalette.ColorRole.ButtonText,
+ brush,
+ )
+ brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
+ brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
+ palette.setBrush(
+ QtGui.QPalette.ColorGroup.Disabled,
+ QtGui.QPalette.ColorRole.WindowText,
+ brush,
+ )
+ brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
+ brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
+ palette.setBrush(
+ QtGui.QPalette.ColorGroup.Disabled,
+ QtGui.QPalette.ColorRole.ButtonText,
+ brush,
+ )
+ self.setPalette(palette)
+ self.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor))
+ self.setTabletTracking(True)
+ icon = QtGui.QIcon.fromTheme("applications-other")
+ self.setWindowIcon(icon)
+ self.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
+ self.setStyleSheet(
+ "MainWindow > {\n url(:/font/media/fonts for text/Momcake-Thin.ttf);\n}"
+ )
+ self.setAnimated(False)
+ self.main_widget = QtWidgets.QWidget(parent=self)
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ )
+ sizePolicy.setHorizontalStretch(1)
+ sizePolicy.setVerticalStretch(1)
+ sizePolicy.setHeightForWidth(self.main_widget.sizePolicy().hasHeightForWidth())
+ self.main_widget.setSizePolicy(sizePolicy)
+ self.main_widget.setMinimumSize(QtCore.QSize(800, 480))
+ self.main_widget.setMaximumSize(QtCore.QSize(1024, 600))
+ self.main_widget.setSizeIncrement(QtCore.QSize(1, 1))
+ self.main_widget.setBaseSize(QtCore.QSize(800, 480))
+ self.main_widget.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor))
+ self.main_widget.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
+ self.main_widget.setStyleSheet(
+ "#main_widget{background-image: url(:/background/media/1st_background.png);}\n"
+ ""
+ )
+ self.main_widget.setObjectName("main_widget")
+ self.main_content_widget = NotificationQTabWidget(parent=self.main_widget)
+ self.main_content_widget.setEnabled(True)
+ self.main_content_widget.setGeometry(QtCore.QRect(0, 60, 800, 420))
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ )
+ sizePolicy.setHorizontalStretch(1)
+ sizePolicy.setVerticalStretch(1)
+ sizePolicy.setHeightForWidth(
+ self.main_content_widget.sizePolicy().hasHeightForWidth()
+ )
+ self.main_content_widget.setSizePolicy(sizePolicy)
+ self.main_content_widget.setMinimumSize(QtCore.QSize(800, 400))
+ self.main_content_widget.setMaximumSize(QtCore.QSize(1024, 720))
+ self.main_content_widget.setBaseSize(QtCore.QSize(800, 400))
+ self.main_content_widget.setCursor(
+ QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor)
+ )
+ self.main_content_widget.setLayoutDirection(
+ QtCore.Qt.LayoutDirection.RightToLeft
+ )
+ self.main_content_widget.setAutoFillBackground(False)
+ self.main_content_widget.setStyleSheet(
+ "#main_content_widget{\n"
+ "background-image: url(:/background/media/1st_background.png);\n"
+ "}\n"
+ "QTabBar::tab{\n"
+ " min-width: 80px;\n"
+ " max-width: 80px;\n"
+ " min-height: 100px;\n"
+ " max-height: 100px;\n"
+ " background: transparent;\n"
+ "}\n"
+ "\n"
+ ""
+ )
+ self.main_content_widget.setTabPosition(QtWidgets.QTabWidget.TabPosition.West)
+ self.main_content_widget.setTabShape(QtWidgets.QTabWidget.TabShape.Rounded)
+ self.main_content_widget.setIconSize(QtCore.QSize(60, 60))
+ self.main_content_widget.setElideMode(QtCore.Qt.TextElideMode.ElideLeft)
+ self.main_content_widget.setUsesScrollButtons(False)
+ self.main_content_widget.setDocumentMode(True)
+ self.main_content_widget.setTabsClosable(False)
+ self.main_content_widget.setMovable(False)
+ self.main_content_widget.setObjectName("main_content_widget")
+ self.printTab = QtWidgets.QWidget()
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ )
+ sizePolicy.setHorizontalStretch(1)
+ sizePolicy.setVerticalStretch(1)
+ sizePolicy.setHeightForWidth(self.printTab.sizePolicy().hasHeightForWidth())
+ self.printTab.setSizePolicy(sizePolicy)
+ self.printTab.setMinimumSize(QtCore.QSize(720, 420))
+ self.printTab.setMaximumSize(QtCore.QSize(1024, 720))
+ self.printTab.setBaseSize(QtCore.QSize(1024, 420))
+ self.printTab.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor))
+ self.printTab.setObjectName("printTab")
+ icon = QtGui.QIcon()
+ icon.addPixmap(
+ QtGui.QPixmap(":/icons/media/main_menu/ICON_home.png"),
+ QtGui.QIcon.Mode.Normal,
+ QtGui.QIcon.State.Off,
+ )
+ icon.addPixmap(
+ QtGui.QPixmap(":/icons/media/main_menu/ICON_home_pressed.png"),
+ QtGui.QIcon.Mode.Normal,
+ QtGui.QIcon.State.On,
+ )
+ icon.addPixmap(
+ QtGui.QPixmap(":/icons/media/main_menu/ICON_home_blocked.png"),
+ QtGui.QIcon.Mode.Disabled,
+ QtGui.QIcon.State.On,
+ )
+ self.main_content_widget.addTab(self.printTab, icon, "")
+ self.filamentTab = QtWidgets.QWidget()
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ )
+ sizePolicy.setHorizontalStretch(1)
+ sizePolicy.setVerticalStretch(1)
+ sizePolicy.setHeightForWidth(self.filamentTab.sizePolicy().hasHeightForWidth())
+ self.filamentTab.setSizePolicy(sizePolicy)
+ self.filamentTab.setMinimumSize(QtCore.QSize(720, 420))
+ self.filamentTab.setMaximumSize(QtCore.QSize(1024, 720))
+ self.filamentTab.setBaseSize(QtCore.QSize(1024, 420))
+ self.filamentTab.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor))
+ self.filamentTab.setObjectName("filamentTab")
+ icon1 = QtGui.QIcon()
+ icon1.addPixmap(
+ QtGui.QPixmap(":/icons/media/main_menu/ICON_filament.png"),
+ QtGui.QIcon.Mode.Normal,
+ QtGui.QIcon.State.Off,
+ )
+ icon1.addPixmap(
+ QtGui.QPixmap(":/icons/media/main_menu/ICON_filament_pressed.png"),
+ QtGui.QIcon.Mode.Normal,
+ QtGui.QIcon.State.On,
+ )
+ icon1.addPixmap(
+ QtGui.QPixmap(":/icons/media/main_menu/ICON_filamente_blocked.png"),
+ QtGui.QIcon.Mode.Disabled,
+ QtGui.QIcon.State.On,
+ )
+ self.main_content_widget.addTab(self.filamentTab, icon1, "")
+ self.controlTab = QtWidgets.QWidget()
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ )
+ sizePolicy.setHorizontalStretch(1)
+ sizePolicy.setVerticalStretch(1)
+ sizePolicy.setHeightForWidth(self.controlTab.sizePolicy().hasHeightForWidth())
+ self.controlTab.setSizePolicy(sizePolicy)
+ self.controlTab.setMinimumSize(QtCore.QSize(720, 420))
+ self.controlTab.setMaximumSize(QtCore.QSize(1024, 720))
+ self.controlTab.setBaseSize(QtCore.QSize(720, 420))
+ self.controlTab.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor))
+ self.controlTab.setObjectName("controlTab")
+ icon2 = QtGui.QIcon()
+ icon2.addPixmap(
+ QtGui.QPixmap(":/icons/media/main_menu/ICON_control.png"),
+ QtGui.QIcon.Mode.Normal,
+ QtGui.QIcon.State.Off,
+ )
+ icon2.addPixmap(
+ QtGui.QPixmap(":/icons/media/main_menu/ICON_control_pressed.png"),
+ QtGui.QIcon.Mode.Normal,
+ QtGui.QIcon.State.On,
+ )
+ icon2.addPixmap(
+ QtGui.QPixmap(":/icons/media/main_menu/ICON_control_blocked.png"),
+ QtGui.QIcon.Mode.Disabled,
+ QtGui.QIcon.State.On,
+ )
+ self.main_content_widget.addTab(self.controlTab, icon2, "")
+ self.utilitiesTab = QtWidgets.QWidget()
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ )
+ sizePolicy.setHorizontalStretch(1)
+ sizePolicy.setVerticalStretch(1)
+ sizePolicy.setHeightForWidth(self.utilitiesTab.sizePolicy().hasHeightForWidth())
+ self.utilitiesTab.setSizePolicy(sizePolicy)
+ self.utilitiesTab.setMinimumSize(QtCore.QSize(720, 420))
+ self.utilitiesTab.setMaximumSize(QtCore.QSize(1024, 720))
+ self.utilitiesTab.setBaseSize(QtCore.QSize(1024, 420))
+ self.utilitiesTab.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor))
+ self.utilitiesTab.setObjectName("utilitiesTab")
+ icon3 = QtGui.QIcon()
+ icon3.addPixmap(
+ QtGui.QPixmap(":/icons/media/main_menu/ICON_utilities.png"),
+ QtGui.QIcon.Mode.Normal,
+ QtGui.QIcon.State.Off,
+ )
+ icon3.addPixmap(
+ QtGui.QPixmap(":/icons/media/main_menu/ICON_utilities_pressed.png"),
+ QtGui.QIcon.Mode.Normal,
+ QtGui.QIcon.State.On,
+ )
+ icon3.addPixmap(
+ QtGui.QPixmap(":/icons/media/main_menu/ICON_utilities_blocked.png"),
+ QtGui.QIcon.Mode.Disabled,
+ QtGui.QIcon.State.On,
+ )
+ self.main_content_widget.addTab(self.utilitiesTab, icon3, "")
+ self.main_header_layout = QtWidgets.QGroupBox(parent=self.main_widget)
+ self.main_header_layout.setEnabled(True)
+ self.main_header_layout.setGeometry(QtCore.QRect(0, 0, 800, 60))
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ )
+ sizePolicy.setHorizontalStretch(2)
+ sizePolicy.setVerticalStretch(1)
+ sizePolicy.setHeightForWidth(
+ self.main_header_layout.sizePolicy().hasHeightForWidth()
+ )
+ self.main_header_layout.setSizePolicy(sizePolicy)
+ self.main_header_layout.setMinimumSize(QtCore.QSize(800, 60))
+ self.main_header_layout.setMaximumSize(QtCore.QSize(1024, 80))
+ self.main_header_layout.setSizeIncrement(QtCore.QSize(1, 1))
+ self.main_header_layout.setBaseSize(QtCore.QSize(800, 60))
+ font = QtGui.QFont()
+ font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
+ self.main_header_layout.setFont(font)
+ self.main_header_layout.setCursor(
+ QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor)
+ )
+ self.main_header_layout.setLayoutDirection(
+ QtCore.Qt.LayoutDirection.LeftToRight
+ )
+ self.main_header_layout.setStyleSheet(
+ "QWidget {\n"
+ " background-color: rgb(50,50,50);\n"
+ " color:rgb(255,255,255);\n"
+ " border-color : rgb(60,60,60);\n"
+ " selection-background-color: rgb(60,60,60);\n"
+ " gridline-color:rgb(60,60,60);\n"
+ " selection-color:rgb(60,60,60);\n"
+ "}\n"
+ "\n"
+ "QGroupBox{\n"
+ " background-color: rgb(50,50,50);\n"
+ " border: none; \n"
+ " border-color : rgb(60,60,60);\n"
+ " selection-background-color: rgb(60,60,60);\n"
+ " gridline-color:rgb(60,60,60);\n"
+ " selection-color:rgb(60,60,60);\n"
+ " \n"
+ "}\n"
+ "\n"
+ "QFrame > *{\n"
+ " background-color: rgb(50, 50, 50);\n"
+ " selection-background-color: rgb(60, 60, 60);\n"
+ " gridline-color: rgb(60, 60, 60);\n"
+ " color: rgb(255, 255, 255); \n"
+ " selection-color: rgb(60, 60, 60);\n"
+ " border-bottom-color: rgb(60, 60, 60);\n"
+ " \n"
+ "}\n"
+ "\n"
+ "\n"
+ "QPushButton:pressed{\n"
+ " border: none;\n"
+ " background: transparent;\n"
+ "}"
+ )
+ self.main_header_layout.setTitle("")
+ self.main_header_layout.setAlignment(
+ QtCore.Qt.AlignmentFlag.AlignJustify | QtCore.Qt.AlignmentFlag.AlignVCenter
+ )
+ self.main_header_layout.setFlat(True)
+ self.main_header_layout.setCheckable(False)
+ self.main_header_layout.setObjectName("main_header_layout")
+ self.header_main_layout = QtWidgets.QHBoxLayout(self.main_header_layout)
+ self.header_main_layout.setSizeConstraint(
+ QtWidgets.QLayout.SizeConstraint.SetMinimumSize
+ )
+ self.header_main_layout.setContentsMargins(5, 0, 5, 0)
+ self.header_main_layout.setSpacing(10)
+ self.header_main_layout.setObjectName("header_main_layout")
+ self.notification_btn = IconButton(parent=self.main_header_layout)
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed
+ )
+ sizePolicy.setHorizontalStretch(1)
+ sizePolicy.setVerticalStretch(1)
+ sizePolicy.setHeightForWidth(
+ self.notification_btn.sizePolicy().hasHeightForWidth()
+ )
+ self.notification_btn.setSizePolicy(sizePolicy)
+ self.notification_btn.setMinimumSize(QtCore.QSize(60, 60))
+ self.notification_btn.setMaximumSize(QtCore.QSize(60, 60))
+ self.notification_btn.setText("")
+ self.notification_btn.setIconSize(QtCore.QSize(60, 60))
+ self.notification_btn.setFlat(True)
+ self.notification_btn.setProperty(
+ "icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/notification.svg")
+ )
+ self.notification_btn.setObjectName("notification_btn")
+ self.header_main_layout.addWidget(
+ self.notification_btn, 0, QtCore.Qt.AlignmentFlag.AlignLeft
+ )
+ self.extruder_temp_display = DisplayButton(parent=self.main_header_layout)
+ self.extruder_temp_display.setMinimumSize(QtCore.QSize(140, 60))
+ self.extruder_temp_display.setMaximumSize(QtCore.QSize(160, 60))
+ self.extruder_temp_display.setFlat(True)
+ self.extruder_temp_display.setProperty(
+ "icon_pixmap",
+ QtGui.QPixmap(":/extruder_related/media/btn_icons/nozzle_topbar.svg"),
+ )
+ self.extruder_temp_display.setObjectName("extruder_temp_display")
+ self.header_main_layout.addWidget(
+ self.extruder_temp_display, 0, QtCore.Qt.AlignmentFlag.AlignHCenter
+ )
+ self.bed_temp_display = DisplayButton(parent=self.main_header_layout)
+ self.bed_temp_display.setMinimumSize(QtCore.QSize(140, 60))
+ self.bed_temp_display.setMaximumSize(QtCore.QSize(160, 60))
+ self.bed_temp_display.setFlat(True)
+ self.bed_temp_display.setProperty(
+ "icon_pixmap",
+ QtGui.QPixmap(
+ ":/temperature_related/media/btn_icons/temperature_plate.svg"
+ ),
+ )
+ self.bed_temp_display.setObjectName("bed_temp_display")
+ self.header_main_layout.addWidget(
+ self.bed_temp_display, 0, QtCore.Qt.AlignmentFlag.AlignHCenter
+ )
+ self.chamber_temp_display = DisplayButton(parent=self.main_header_layout)
+ self.chamber_temp_display.setMinimumSize(QtCore.QSize(140, 60))
+ self.chamber_temp_display.setMaximumSize(QtCore.QSize(160, 60))
+ self.chamber_temp_display.setFlat(True)
+ self.chamber_temp_display.setProperty(
+ "icon_pixmap",
+ QtGui.QPixmap(":/top_bar_icons/media/topbar/chamber_temp_topbar.svg"),
+ )
+ self.chamber_temp_display.setProperty(
+ "secondary_pixmap",
+ QtGui.QPixmap(":/temperature_related/media/btn_icons/humidity.svg"),
+ )
+ self.chamber_temp_display.setObjectName("chamber_temp_display")
+ self.header_main_layout.addWidget(
+ self.chamber_temp_display, 0, QtCore.Qt.AlignmentFlag.AlignHCenter
+ )
+ self.filament_type_icon = IconButton(parent=self.main_header_layout)
+ self.filament_type_icon.setMinimumSize(QtCore.QSize(60, 60))
+ self.filament_type_icon.setMaximumSize(QtCore.QSize(60, 60))
+ self.filament_type_icon.setFlat(True)
+ self.filament_type_icon.setProperty(
+ "icon_pixmap",
+ QtGui.QPixmap(":/filament_related/media/btn_icons/load_filament.svg"),
+ )
+ self.filament_type_icon.setObjectName("filament_type_icon")
+ self.header_main_layout.addWidget(
+ self.filament_type_icon, 0, QtCore.Qt.AlignmentFlag.AlignHCenter
+ )
+ self.nozzle_size_icon = IconButton(parent=self.main_header_layout)
+ self.nozzle_size_icon.setMinimumSize(QtCore.QSize(60, 60))
+ self.nozzle_size_icon.setMaximumSize(QtCore.QSize(60, 60))
+ self.nozzle_size_icon.setFlat(True)
+ self.nozzle_size_icon.setProperty(
+ "icon_pixmap",
+ QtGui.QPixmap(
+ ":/temperature_related/media/btn_icons/standart_temperature.svg"
+ ),
+ )
+ self.nozzle_size_icon.setObjectName("nozzle_size_icon")
+ self.header_main_layout.addWidget(
+ self.nozzle_size_icon, 0, QtCore.Qt.AlignmentFlag.AlignHCenter
+ )
+ self.wifi_button = IconButton(parent=self.main_header_layout)
+ self.wifi_button.setEnabled(True)
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ )
+ sizePolicy.setHorizontalStretch(1)
+ sizePolicy.setVerticalStretch(1)
+ sizePolicy.setHeightForWidth(self.wifi_button.sizePolicy().hasHeightForWidth())
+ self.wifi_button.setSizePolicy(sizePolicy)
+ self.wifi_button.setMinimumSize(QtCore.QSize(60, 60))
+ self.wifi_button.setMaximumSize(QtCore.QSize(60, 60))
+ self.wifi_button.setStyleSheet("")
+ self.wifi_button.setText("")
+ self.wifi_button.setIconSize(QtCore.QSize(16, 16))
+ self.wifi_button.setCheckable(False)
+ self.wifi_button.setChecked(False)
+ self.wifi_button.setFlat(True)
+ self.wifi_button.setProperty(
+ "icon_pixmap",
+ QtGui.QPixmap(":/network/media/btn_icons/network/3bar_wifi.svg"),
+ )
+ self.wifi_button.setObjectName("wifi_button")
+ self.header_main_layout.addWidget(
+ self.wifi_button,
+ 0,
+ QtCore.Qt.AlignmentFlag.AlignRight | QtCore.Qt.AlignmentFlag.AlignTop,
+ )
+ self.header_main_layout.setStretch(1, 1)
+ self.header_main_layout.setStretch(2, 1)
+ self.header_main_layout.setStretch(3, 1)
+ self.setCentralWidget(self.main_widget)
+
+ _translate = QtCore.QCoreApplication.translate
+ self.setWindowTitle(_translate("MainWindow", "MainWindow"))
+ self.notification_btn.setProperty(
+ "button_type", _translate("MainWindow", "icon_text")
+ )
+ self.extruder_temp_display.setText(_translate("MainWindow", "extruder"))
+ self.extruder_temp_display.setProperty(
+ "button_type", _translate("MainWindow", "secondary_display")
+ )
+ self.extruder_temp_display.setProperty(
+ "name", _translate("MainWindow", "extruder_temperature_display")
+ )
+ self.bed_temp_display.setText(_translate("MainWindow", "bed"))
+ self.bed_temp_display.setProperty(
+ "button_type", _translate("MainWindow", "secondary_display")
+ )
+ self.chamber_temp_display.setText(_translate("MainWindow", "chamber"))
+ self.chamber_temp_display.setProperty(
+ "display_format", _translate("MainWindow", "dual")
+ )
+ self.chamber_temp_display.setProperty(
+ "button_type", _translate("MainWindow", "display_secondary")
+ )
+ self.filament_type_icon.setText(_translate("MainWindow", "Filament"))
+ self.filament_type_icon.setProperty(
+ "button_type", _translate("MainWindow", "icon_text")
+ )
+ self.nozzle_size_icon.setText(_translate("MainWindow", "nozzle"))
+ self.nozzle_size_icon.setProperty(
+ "button_type", _translate("MainWindow", "icon_text")
+ )
+ self.wifi_button.setProperty("button_type", _translate("MainWindow", "icon"))
+ self.main_content_widget.setCurrentIndex(3)
diff --git a/BlocksScreen/lib/panels/printTab.py b/BlocksScreen/lib/panels/printTab.py
index 36f62024..e72fea90 100644
--- a/BlocksScreen/lib/panels/printTab.py
+++ b/BlocksScreen/lib/panels/printTab.py
@@ -6,15 +6,15 @@
from configfile import BlocksScreenConfig, get_configparser
from lib.files import Files
from lib.moonrakerComm import MoonWebSocket
-from lib.panels.widgets.babystepPage import BabystepPage
+from lib.panels.widgets.PrintTab.babystepPage import BabystepPage
from lib.panels.widgets.basePopup import BasePopup
-from lib.panels.widgets.confirmPage import ConfirmWidget
-from lib.panels.widgets.filesPage import FilesPage
-from lib.panels.widgets.jobStatusPage import JobStatusWidget
+from lib.panels.widgets.PrintTab.confirmPage import ConfirmWidget
+from lib.panels.widgets.PrintTab.filesPage import FilesPage
+from lib.panels.widgets.PrintTab.jobStatusPage import JobStatusWidget
from lib.panels.widgets.numpadPage import CustomNumpad
-from lib.panels.widgets.sensorsPanel import SensorsWindow
+from lib.panels.widgets.PrintTab.sensorsPanel import SensorsWindow
from lib.panels.widgets.slider_selector_page import SliderPage
-from lib.panels.widgets.tunePage import TuneWidget
+from lib.panels.widgets.PrintTab.tunePage import TuneWidget
from lib.printer import Printer
from lib.utils.blocks_button import BlocksCustomButton
from lib.utils.display_button import DisplayButton
diff --git a/BlocksScreen/lib/panels/widgets/ControlTab/axisPage.py b/BlocksScreen/lib/panels/widgets/ControlTab/axisPage.py
new file mode 100644
index 00000000..026915fd
--- /dev/null
+++ b/BlocksScreen/lib/panels/widgets/ControlTab/axisPage.py
@@ -0,0 +1,581 @@
+"""Control tab axis page: jog XYZ, pick move length/speed, home and disable steppers."""
+
+import typing
+
+from lib.utils.check_button import BlocksCustomCheckButton
+from lib.utils.icon_button import IconButton
+from PyQt6 import QtCore, QtGui, QtWidgets
+
+
+class AxisPage(QtWidgets.QWidget):
+ """Axis movement page of the control tab."""
+
+ run_gcode_signal: typing.ClassVar[QtCore.pyqtSignal] = QtCore.pyqtSignal(
+ str, name="run_gcode"
+ )
+ request_back = QtCore.pyqtSignal(name="request_back")
+
+ call_load_panel = QtCore.pyqtSignal(bool, str, bool, name="call-load-panel")
+
+ def __init__(self, parent: QtWidgets.QWidget) -> None:
+ super().__init__(parent)
+
+ self.setObjectName("axis_page")
+ self._setup_ui()
+
+ self.update()
+
+ self.move_length: float = 1.0
+ self.move_speed: float = 25.0
+
+ self.mva_back_btn.clicked.connect(self.request_back.emit)
+ self.mva_home_x_btn.clicked.connect(
+ lambda: self.run_gcode_signal.emit("G28 X\nM400")
+ )
+ self.mva_home_y_btn.clicked.connect(
+ lambda: self.run_gcode_signal.emit("G28 Y\nM400")
+ )
+ self.mva_home_z_btn.clicked.connect(
+ lambda: self.run_gcode_signal.emit("G28 Z\nM400")
+ )
+ self.mva_home_all_btn.clicked.connect(
+ lambda: self.run_gcode_signal.emit("G28\nM400")
+ )
+
+ self.mva_up_btn.clicked.connect(lambda: self.handle_move_axis("Y"))
+ self.mva_down_btn.clicked.connect(lambda: self.handle_move_axis("Y-"))
+ self.mva_right_btn.clicked.connect(lambda: self.handle_move_axis("X"))
+ self.mva_left_btn.clicked.connect(lambda: self.handle_move_axis("X-"))
+ self.mva_z_up.clicked.connect(
+ lambda: self.handle_move_axis("Z-") # Move nozzle closer to bed
+ )
+ self.mva_z_down.clicked.connect(
+ lambda: self.handle_move_axis("Z") # Move nozzle away from bed
+ )
+
+ self.mva_select_length_1_btn.toggled.connect(
+ lambda checked: self.handle_select_move_length(checked, value=1.0)
+ )
+ self.mva_select_length_10_btn.toggled.connect(
+ lambda checked: self.handle_select_move_length(checked, value=10.0)
+ )
+ self.mva_select_length_100_btn.toggled.connect(
+ lambda checked: self.handle_select_move_length(checked, value=100.0)
+ )
+ self.mva_select_speed_25_btn.toggled.connect(
+ lambda checked: self.handle_select_move_speed(checked, value=25.0)
+ )
+ self.mva_select_speed_50_btn.toggled.connect(
+ lambda checked: self.handle_select_move_speed(checked, value=50.0)
+ )
+ self.mva_select_speed_100_btn.toggled.connect(
+ lambda checked: self.handle_select_move_speed(checked, value=100.0)
+ )
+
+ @QtCore.pyqtSlot(bool, float, name="handle-select-move-speed")
+ def handle_select_move_speed(self, checked: bool, value: float) -> None:
+ """Slot that changes the move speed of manual move commands, mainly used
+ for toggle buttons
+
+ Args:
+ checked (bool): Button checked state
+ value (float): New move speed value
+ """
+ if self.move_speed == value:
+ return
+ self.move_speed = value
+
+ @QtCore.pyqtSlot(bool, float, name="handle-select-move-length")
+ def handle_select_move_length(self, checked: bool, value: float) -> None:
+ """Slot that changes the move length of manual move commands,
+ mainly used for toggle buttons
+
+
+ Args:
+ checked (bool): Button checked state
+ value (float): New length value
+ """
+ if self.move_length == value:
+ return
+ self.move_length = value
+
+ @QtCore.pyqtSlot(str, name="handle-move-axis")
+ def handle_move_axis(self, axis: str) -> None:
+ """Slot that requests manual move command
+
+ Args:
+ axis (str): String that contains one of the following axis `
+ ['X',
+ 'X-'
+ ,'Y'
+ ,'Y-'
+ ,'Z'
+ ,'Z-']`. [^1]
+
+ ---
+
+ [^1]: The **-** symbol indicates the negative direction for that axis
+
+ """
+ if axis not in ["X", "X-", "Y", "Y-", "Z", "Z-"]:
+ return
+ self.run_gcode_signal.emit(
+ f"G91\nG0 {axis}{float(self.move_length)} F{float(self.move_speed * 60)}\nG90\nM400"
+ )
+
+ @QtCore.pyqtSlot(str, list, name="on-toolhead-update")
+ def on_toolhead_update(self, field: str, values: list) -> None:
+ """Handles updated from toolhead printer object"""
+ if field == "position":
+ self.mva_x_value_label.setText(f"{values[0]:.2f}")
+ self.mva_y_value_label.setText(f"{values[1]:.2f}")
+ self.mva_z_value_label.setText(f"{values[2]:.3f}")
+
+ if values[0] == "252,50" and values[1] == "250" and values[2] == "50":
+ self.call_load_panel.emit(False, "", False)
+
+ def _setup_ui(self) -> None:
+ """Build the axis page: jog pads, step selector, and status labels."""
+ widget = QtWidgets.QWidget(parent=self)
+ widget.setMinimumSize(QtCore.QSize(710, 410))
+ widget.setMaximumSize(QtCore.QSize(710, 410))
+ self.setObjectName("move_axis_page")
+ self.verticalLayout = QtWidgets.QVBoxLayout(self)
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.mva_header_layout = QtWidgets.QHBoxLayout()
+ self.mva_header_layout.setObjectName("mva_header_layout")
+ spacerItem2 = QtWidgets.QSpacerItem(
+ 60,
+ 20,
+ QtWidgets.QSizePolicy.Policy.Minimum,
+ QtWidgets.QSizePolicy.Policy.Minimum,
+ )
+ self.mva_header_layout.addItem(spacerItem2)
+ self.mva_title_label = QtWidgets.QLabel(parent=self)
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum
+ )
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(
+ self.mva_title_label.sizePolicy().hasHeightForWidth()
+ )
+ self.mva_title_label.setSizePolicy(sizePolicy)
+ self.mva_title_label.setMinimumSize(QtCore.QSize(0, 0))
+ self.mva_title_label.setMaximumSize(QtCore.QSize(16777215, 60))
+ font = QtGui.QFont()
+ font.setFamily("Momcake")
+ font.setPointSize(24)
+ self.mva_title_label.setFont(font)
+ self.mva_title_label.setStyleSheet("background: transparent; color: white;")
+ self.mva_title_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
+ self.mva_title_label.setObjectName("mva_title_label")
+ self.mva_header_layout.addWidget(self.mva_title_label)
+
+ self.mva_back_btn = IconButton(parent=self)
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed
+ )
+ self.mva_back_btn.setSizePolicy(sizePolicy)
+ self.mva_back_btn.setMinimumSize(QtCore.QSize(60, 60))
+ self.mva_back_btn.setMaximumSize(QtCore.QSize(60, 60))
+ self.mva_back_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
+ self.mva_back_btn.setProperty(
+ "icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/back.svg")
+ )
+ self.mva_back_btn.setObjectName("mva_back_btn")
+ self.mva_header_layout.addWidget(
+ self.mva_back_btn,
+ 0,
+ QtCore.Qt.AlignmentFlag.AlignRight | QtCore.Qt.AlignmentFlag.AlignVCenter,
+ )
+
+ self.verticalLayout.addLayout(self.mva_header_layout)
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+ self.mva_home_axis_layout = QtWidgets.QVBoxLayout()
+ self.mva_home_axis_layout.setContentsMargins(5, 5, 5, 5)
+ self.mva_home_axis_layout.setObjectName("mva_home_axis_layout")
+
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ )
+ sizePolicy.setHorizontalStretch(1)
+ sizePolicy.setVerticalStretch(1)
+
+ self.mva_home_x_btn = IconButton(parent=self)
+ self.mva_home_x_btn.setSizePolicy(sizePolicy)
+ self.mva_home_x_btn.setMinimumSize(QtCore.QSize(60, 60))
+ self.mva_home_x_btn.setMaximumSize(QtCore.QSize(60, 60))
+ self.mva_home_x_btn.setObjectName("mva_home_x_btn")
+ self.mva_home_x_btn.setProperty(
+ "icon_pixmap", QtGui.QPixmap(":/motion/media/btn_icons/home_x.svg")
+ )
+ self.mva_home_axis_layout.addWidget(
+ self.mva_home_x_btn, 0, QtCore.Qt.AlignmentFlag.AlignHCenter
+ )
+
+ self.mva_home_y_btn = IconButton(parent=self)
+ self.mva_home_y_btn.setSizePolicy(sizePolicy)
+ self.mva_home_y_btn.setMinimumSize(QtCore.QSize(60, 60))
+ self.mva_home_y_btn.setMaximumSize(QtCore.QSize(60, 60))
+ self.mva_home_y_btn.setObjectName("mva_home_y_btn")
+ self.mva_home_y_btn.setProperty(
+ "icon_pixmap", QtGui.QPixmap(":/motion/media/btn_icons/home_y.svg")
+ )
+ self.mva_home_axis_layout.addWidget(
+ self.mva_home_y_btn, 0, QtCore.Qt.AlignmentFlag.AlignHCenter
+ )
+
+ self.mva_home_z_btn = IconButton(parent=self)
+ self.mva_home_z_btn.setSizePolicy(sizePolicy)
+ self.mva_home_z_btn.setMinimumSize(QtCore.QSize(60, 60))
+ self.mva_home_z_btn.setMaximumSize(QtCore.QSize(60, 60))
+ self.mva_home_z_btn.setObjectName("mva_home_z_btn")
+ self.mva_home_z_btn.setProperty(
+ "icon_pixmap", QtGui.QPixmap(":/motion/media/btn_icons/home_z.svg")
+ )
+ self.mva_home_axis_layout.addWidget(
+ self.mva_home_z_btn, 0, QtCore.Qt.AlignmentFlag.AlignHCenter
+ )
+
+ self.mva_home_all_btn = IconButton(parent=self)
+ self.mva_home_all_btn.setSizePolicy(sizePolicy)
+ self.mva_home_all_btn.setMinimumSize(QtCore.QSize(60, 60))
+ self.mva_home_all_btn.setMaximumSize(QtCore.QSize(60, 60))
+ self.mva_home_all_btn.setObjectName("mva_home_all_btn")
+ self.mva_home_all_btn.setProperty(
+ "icon_pixmap", QtGui.QPixmap(":/motion/media/btn_icons/home_all.svg")
+ )
+ self.mva_home_axis_layout.addWidget(
+ self.mva_home_all_btn, 0, QtCore.Qt.AlignmentFlag.AlignHCenter
+ )
+
+ self.horizontalLayout_2.addLayout(self.mva_home_axis_layout)
+ self.verticalLayout_6 = QtWidgets.QVBoxLayout()
+ self.verticalLayout_6.setObjectName("verticalLayout_6")
+ self.label_2 = QtWidgets.QLabel(parent=self)
+ self.label_2.setMaximumSize(QtCore.QSize(16777215, 20))
+ font = QtGui.QFont()
+ font.setPointSize(14)
+ self.label_2.setFont(font)
+ self.label_2.setStyleSheet("color:white")
+ self.label_2.setObjectName("label_2")
+ self.verticalLayout_6.addWidget(self.label_2)
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+
+ self.axis_select_length_group = QtWidgets.QButtonGroup(self)
+ self.axis_select_length_group.setObjectName("extrude_select_length_group")
+
+ self.mva_select_length_1_btn = BlocksCustomCheckButton(parent=self)
+ self.mva_select_length_1_btn.setMinimumSize(QtCore.QSize(90, 90))
+ self.mva_select_length_1_btn.setMaximumSize(QtCore.QSize(90, 90))
+ self.mva_select_length_1_btn.setFont(font)
+ self.mva_select_length_1_btn.setCheckable(True)
+ self.mva_select_length_1_btn.setChecked(True)
+ self.mva_select_length_1_btn.setAutoExclusive(True)
+ self.mva_select_length_1_btn.setObjectName("mva_select_length_1_btn")
+ self.axis_select_length_group.addButton(self.mva_select_length_1_btn)
+ self.horizontalLayout_3.addWidget(self.mva_select_length_1_btn)
+
+ self.mva_select_length_10_btn = BlocksCustomCheckButton(parent=self)
+ self.mva_select_length_10_btn.setMinimumSize(QtCore.QSize(90, 90))
+ self.mva_select_length_10_btn.setMaximumSize(QtCore.QSize(90, 90))
+ self.mva_select_length_10_btn.setFont(font)
+ self.mva_select_length_10_btn.setCheckable(True)
+ self.mva_select_length_10_btn.setAutoExclusive(True)
+ self.mva_select_length_10_btn.setObjectName("mva_select_length_10_btn")
+ self.axis_select_length_group.addButton(self.mva_select_length_10_btn)
+ self.horizontalLayout_3.addWidget(self.mva_select_length_10_btn)
+
+ self.mva_select_length_100_btn = BlocksCustomCheckButton(parent=self)
+ self.mva_select_length_100_btn.setMinimumSize(QtCore.QSize(90, 90))
+ self.mva_select_length_100_btn.setMaximumSize(QtCore.QSize(90, 90))
+ self.mva_select_length_100_btn.setFont(font)
+ self.mva_select_length_100_btn.setAutoExclusive(True)
+ self.mva_select_length_100_btn.setCheckable(True)
+ self.mva_select_length_100_btn.setObjectName("mva_select_length_100_btn")
+ self.axis_select_length_group.addButton(self.mva_select_length_100_btn)
+ self.horizontalLayout_3.addWidget(self.mva_select_length_100_btn)
+
+ self.verticalLayout_6.addLayout(self.horizontalLayout_3)
+ self.label = QtWidgets.QLabel(parent=self)
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum
+ )
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
+ self.label.setSizePolicy(sizePolicy)
+ self.label.setMaximumSize(QtCore.QSize(16777215, 20))
+
+ self.label.setFont(font)
+ self.label.setStyleSheet("color:white")
+ self.label.setObjectName("label")
+ self.verticalLayout_6.addWidget(self.label)
+ self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_4.setObjectName("horizontalLayout_4")
+
+ self.axis_select_speed_group = QtWidgets.QButtonGroup(self)
+ self.axis_select_speed_group.setObjectName("extrude_select_length_group")
+
+ self.mva_select_speed_25_btn = BlocksCustomCheckButton(parent=self)
+ self.mva_select_speed_25_btn.setMinimumSize(QtCore.QSize(90, 90))
+ self.mva_select_speed_25_btn.setMaximumSize(QtCore.QSize(90, 90))
+ self.mva_select_speed_25_btn.setFont(font)
+ self.mva_select_speed_25_btn.setCheckable(True)
+ self.mva_select_speed_25_btn.setChecked(True)
+ self.mva_select_speed_25_btn.setAutoExclusive(True)
+ self.mva_select_speed_25_btn.setObjectName("mva_select_speed_25_btn")
+ self.axis_select_speed_group.addButton(self.mva_select_speed_25_btn)
+ self.horizontalLayout_4.addWidget(self.mva_select_speed_25_btn)
+
+ self.mva_select_speed_50_btn = BlocksCustomCheckButton(parent=self)
+ self.mva_select_speed_50_btn.setMinimumSize(QtCore.QSize(90, 90))
+ self.mva_select_speed_50_btn.setMaximumSize(QtCore.QSize(90, 90))
+ self.mva_select_speed_50_btn.setFont(font)
+ self.mva_select_speed_50_btn.setCheckable(True)
+ self.mva_select_speed_50_btn.setAutoExclusive(True)
+ self.mva_select_speed_50_btn.setObjectName("mva_select_speed_50_btn")
+ self.axis_select_speed_group.addButton(self.mva_select_speed_50_btn)
+ self.horizontalLayout_4.addWidget(self.mva_select_speed_50_btn)
+
+ self.mva_select_speed_100_btn = BlocksCustomCheckButton(parent=self)
+ self.mva_select_speed_100_btn.setMinimumSize(QtCore.QSize(90, 90))
+ self.mva_select_speed_100_btn.setMaximumSize(QtCore.QSize(90, 90))
+ self.mva_select_speed_100_btn.setFont(font)
+ self.mva_select_speed_100_btn.setCheckable(True)
+ self.mva_select_speed_100_btn.setAutoExclusive(True)
+ self.mva_select_speed_100_btn.setObjectName("mva_select_speed_100_btn")
+ self.axis_select_speed_group.addButton(self.mva_select_speed_100_btn)
+ self.horizontalLayout_4.addWidget(self.mva_select_speed_100_btn)
+
+ self.verticalLayout_6.addLayout(self.horizontalLayout_4)
+ self.horizontalLayout_2.addLayout(self.verticalLayout_6)
+ self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_5.setObjectName("horizontalLayout_5")
+ self.gridLayout_2 = QtWidgets.QGridLayout()
+ self.gridLayout_2.setContentsMargins(0, 5, 0, 5)
+ self.gridLayout_2.setObjectName("gridLayout_2")
+
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum
+ )
+ sizePolicy.setHorizontalStretch(1)
+ sizePolicy.setVerticalStretch(1)
+
+ self.mva_left_btn = IconButton(parent=self)
+ self.mva_left_btn.setSizePolicy(sizePolicy)
+ self.mva_left_btn.setMinimumSize(QtCore.QSize(60, 60))
+ self.mva_left_btn.setMaximumSize(QtCore.QSize(60, 60))
+ self.mva_left_btn.setProperty(
+ "icon_pixmap", QtGui.QPixmap(":/arrow_icons/media/btn_icons/left_arrow.svg")
+ )
+ self.mva_left_btn.setObjectName("mva_left_btn")
+ self.gridLayout_2.addWidget(
+ self.mva_left_btn, 1, 0, 1, 1, QtCore.Qt.AlignmentFlag.AlignRight
+ )
+
+ self.mva_right_btn = IconButton(parent=self)
+ self.mva_right_btn.setSizePolicy(sizePolicy)
+ self.mva_right_btn.setMinimumSize(QtCore.QSize(60, 60))
+ self.mva_right_btn.setMaximumSize(QtCore.QSize(60, 60))
+ self.mva_right_btn.setProperty(
+ "icon_pixmap",
+ QtGui.QPixmap(":/arrow_icons/media/btn_icons/right_arrow.svg"),
+ )
+ self.mva_right_btn.setObjectName("mva_right_btn")
+ self.gridLayout_2.addWidget(
+ self.mva_right_btn, 1, 2, 1, 1, QtCore.Qt.AlignmentFlag.AlignLeft
+ )
+
+ self.mva_down_btn = IconButton(parent=self)
+ self.mva_down_btn.setSizePolicy(sizePolicy)
+ self.mva_down_btn.setMinimumSize(QtCore.QSize(60, 60))
+ self.mva_down_btn.setMaximumSize(QtCore.QSize(60, 60))
+ self.mva_down_btn.setProperty(
+ "icon_pixmap", QtGui.QPixmap(":/arrow_icons/media/btn_icons/down_arrow.svg")
+ )
+ self.mva_down_btn.setObjectName("mva_down_btn")
+ self.gridLayout_2.addWidget(
+ self.mva_down_btn, 2, 1, 1, 1, QtCore.Qt.AlignmentFlag.AlignTop
+ )
+
+ self.mva_up_btn = IconButton(parent=self)
+ self.mva_up_btn.setSizePolicy(sizePolicy)
+ self.mva_up_btn.setMinimumSize(QtCore.QSize(60, 60))
+ self.mva_up_btn.setMaximumSize(QtCore.QSize(60, 60))
+ self.mva_up_btn.setProperty(
+ "icon_pixmap", QtGui.QPixmap(":/arrow_icons/media/btn_icons/up_arrow.svg")
+ )
+ self.mva_up_btn.setObjectName("mva_up_btn")
+ self.gridLayout_2.addWidget(
+ self.mva_up_btn, 0, 1, 1, 1, QtCore.Qt.AlignmentFlag.AlignBottom
+ )
+
+ self.mva_middle = IconButton(parent=self)
+ self.mva_middle.setSizePolicy(sizePolicy)
+ self.mva_middle.setMinimumSize(QtCore.QSize(60, 60))
+ self.mva_middle.setMaximumSize(QtCore.QSize(60, 60))
+ self.mva_middle.setProperty(
+ "icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/center_arrows.svg")
+ )
+ self.mva_middle.setObjectName("mva_middle")
+
+ self.gridLayout_2.addWidget(self.mva_middle, 1, 1, 1, 1)
+ self.horizontalLayout_5.addLayout(self.gridLayout_2)
+
+ self.mva_z_layout = QtWidgets.QVBoxLayout()
+ self.mva_z_layout.setObjectName("mva_z_layout")
+
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ )
+ sizePolicy.setHorizontalStretch(1)
+ sizePolicy.setVerticalStretch(1)
+
+ self.mva_z_up = IconButton(parent=self)
+ self.mva_z_up.setSizePolicy(sizePolicy)
+ self.mva_z_up.setMinimumSize(QtCore.QSize(60, 60))
+ self.mva_z_up.setMaximumSize(QtCore.QSize(60, 60))
+ self.mva_z_up.setIconSize(QtCore.QSize(16, 16))
+ self.mva_z_up.setProperty(
+ "icon_pixmap", QtGui.QPixmap(":/arrow_icons/media/btn_icons/up_arrow.svg")
+ )
+ self.mva_z_up.setObjectName("mva_z_up")
+ self.mva_z_layout.addWidget(
+ self.mva_z_up, 0, QtCore.Qt.AlignmentFlag.AlignHCenter
+ )
+
+ self.mva_z_down = IconButton(parent=self)
+ self.mva_z_down.setSizePolicy(sizePolicy)
+ self.mva_z_down.setMinimumSize(QtCore.QSize(60, 60))
+ self.mva_z_down.setMaximumSize(QtCore.QSize(60, 60))
+ self.mva_z_down.setProperty(
+ "icon_pixmap", QtGui.QPixmap(":/arrow_icons/media/btn_icons/down_arrow.svg")
+ )
+ self.mva_z_down.setObjectName("mva_z_down")
+ self.mva_z_layout.addWidget(
+ self.mva_z_down, 0, QtCore.Qt.AlignmentFlag.AlignHCenter
+ )
+
+ self.horizontalLayout_5.addLayout(self.mva_z_layout)
+ self.horizontalLayout_2.addLayout(self.horizontalLayout_5)
+ self.verticalLayout.addLayout(self.horizontalLayout_2)
+ self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_6.setObjectName("horizontalLayout_6")
+ self.mva_x_label = QtWidgets.QLabel(parent=self)
+ self.mva_x_label.setEnabled(True)
+
+ self.mva_x_label.setFont(font)
+ self.mva_x_label.setStyleSheet("background: transparent; color: white;")
+ self.mva_x_label.setObjectName("mva_x_label")
+ self.horizontalLayout_6.addWidget(
+ self.mva_x_label, 0, QtCore.Qt.AlignmentFlag.AlignRight
+ )
+ self.mva_x_value_label = QtWidgets.QLabel(parent=self)
+ self.mva_x_value_label.setEnabled(True)
+
+ self.mva_x_value_label.setFont(font)
+ self.mva_x_value_label.setStyleSheet("background: transparent; color: white;")
+ self.mva_x_value_label.setObjectName("mva_x_value_label")
+ self.horizontalLayout_6.addWidget(self.mva_x_value_label)
+ self.mva_y_label = QtWidgets.QLabel(parent=self)
+ self.mva_y_label.setEnabled(True)
+
+ self.mva_y_label.setFont(font)
+ self.mva_y_label.setStyleSheet("background: transparent; color: white;")
+ self.mva_y_label.setObjectName("mva_y_label")
+ self.horizontalLayout_6.addWidget(
+ self.mva_y_label, 0, QtCore.Qt.AlignmentFlag.AlignRight
+ )
+ self.mva_y_value_label = QtWidgets.QLabel(parent=self)
+ self.mva_y_value_label.setEnabled(True)
+
+ self.mva_y_value_label.setFont(font)
+ self.mva_y_value_label.setStyleSheet("background: transparent; color: white;")
+ self.mva_y_value_label.setObjectName("mva_y_value_label")
+ self.horizontalLayout_6.addWidget(self.mva_y_value_label)
+ self.mva_z_label = QtWidgets.QLabel(parent=self)
+ self.mva_z_label.setEnabled(True)
+
+ self.mva_z_label.setFont(font)
+ self.mva_z_label.setStyleSheet("background: transparent; color: white;")
+ self.mva_z_label.setObjectName("mva_z_label")
+ self.horizontalLayout_6.addWidget(
+ self.mva_z_label, 0, QtCore.Qt.AlignmentFlag.AlignRight
+ )
+ self.mva_z_value_label = QtWidgets.QLabel(parent=self)
+ self.mva_z_value_label.setEnabled(True)
+
+ self.mva_z_value_label.setFont(font)
+ self.mva_z_value_label.setStyleSheet("background: transparent; color: white;")
+ self.mva_z_value_label.setObjectName("mva_z_value_label")
+ self.horizontalLayout_6.addWidget(self.mva_z_value_label)
+ self.verticalLayout.addLayout(self.horizontalLayout_6)
+ widget.setLayout(self.verticalLayout)
+
+ _translate = QtCore.QCoreApplication.translate
+ self.mva_x_label.setText(_translate("controlStackedWidget", "X:"))
+ self.mva_y_label.setText(_translate("controlStackedWidget", "Y:"))
+ self.mva_z_label.setText(_translate("controlStackedWidget", "Z:"))
+ self.mva_z_value_label.setText(_translate("controlStackedWidget", "0"))
+ self.mva_y_value_label.setText(_translate("controlStackedWidget", "0"))
+ self.mva_x_value_label.setText(_translate("controlStackedWidget", "0"))
+ self.mva_title_label.setText(_translate("controlStackedWidget", "Move Axis"))
+ self.mva_title_label.setProperty(
+ "class", _translate("controlStackedWidget", "title_text")
+ )
+ self.mva_back_btn.setText(_translate("controlStackedWidget", "Back"))
+ self.mva_back_btn.setProperty(
+ "class", _translate("controlStackedWidget", "menu_btn")
+ )
+ self.mva_back_btn.setProperty(
+ "button_type", _translate("controlStackedWidget", "icon")
+ )
+ self.mva_z_up.setProperty(
+ "button_type", _translate("controlStackedWidget", "icon")
+ )
+ self.mva_z_down.setProperty(
+ "button_type", _translate("controlStackedWidget", "icon")
+ )
+ self.mva_home_x_btn.setProperty(
+ "button_type", _translate("controlStackedWidget", "icon")
+ )
+ self.mva_home_y_btn.setProperty(
+ "button_type", _translate("controlStackedWidget", "icon")
+ )
+ self.mva_home_z_btn.setProperty(
+ "button_type", _translate("controlStackedWidget", "icon")
+ )
+ self.mva_home_all_btn.setProperty(
+ "button_type", _translate("controlStackedWidget", "icon")
+ )
+ self.mva_select_speed_25_btn.setText(_translate("controlStackedWidget", "25"))
+ self.mva_select_speed_50_btn.setText(_translate("controlStackedWidget", "50"))
+ self.mva_select_speed_100_btn.setText(_translate("controlStackedWidget", "100"))
+ self.label.setText(_translate("controlStackedWidget", "Move Speed mm/s"))
+ self.mva_select_length_1_btn.setText(_translate("controlStackedWidget", "1"))
+ self.mva_select_length_10_btn.setText(_translate("controlStackedWidget", "10"))
+ self.mva_select_length_100_btn.setText(
+ _translate("controlStackedWidget", "100")
+ )
+ self.label_2.setText(_translate("controlStackedWidget", "Move Length mm"))
+ self.mva_left_btn.setProperty(
+ "button_type", _translate("controlStackedWidget", "icon")
+ )
+ self.mva_right_btn.setProperty(
+ "button_type", _translate("controlStackedWidget", "icon")
+ )
+ self.mva_down_btn.setProperty(
+ "button_type", _translate("controlStackedWidget", "icon")
+ )
+ self.mva_up_btn.setProperty(
+ "button_type", _translate("controlStackedWidget", "icon")
+ )
+ self.mva_middle.setProperty(
+ "button_type", _translate("controlStackedWidget", "icon")
+ )
diff --git a/BlocksScreen/lib/panels/widgets/ControlTab/extruderPage.py b/BlocksScreen/lib/panels/widgets/ControlTab/extruderPage.py
new file mode 100644
index 00000000..7a40a246
--- /dev/null
+++ b/BlocksScreen/lib/panels/widgets/ControlTab/extruderPage.py
@@ -0,0 +1,514 @@
+"""Control tab extruder page: manual extrude/retract with feedrate and length picks."""
+
+import typing
+
+from lib.printer import Printer
+from lib.utils.blocks_button import BlocksCustomButton
+from lib.utils.blocks_label import BlocksLabel
+from lib.utils.check_button import BlocksCustomCheckButton
+from lib.utils.icon_button import IconButton
+from PyQt6 import QtCore, QtGui, QtWidgets
+
+
+class ExtruderPage(QtWidgets.QWidget):
+ """Filament extrude/retract page of the control tab."""
+
+ run_gcode_signal: typing.ClassVar[QtCore.pyqtSignal] = QtCore.pyqtSignal(
+ str, name="run_gcode"
+ )
+
+ request_back = QtCore.pyqtSignal(name="request-back-button")
+
+ def __init__(
+ self,
+ parent: QtWidgets.QWidget,
+ printer: Printer,
+ ) -> None:
+ super().__init__(parent)
+
+ self.setObjectName("extruder_page")
+ self.extrude_list: list[int] = [2, 4, 8]
+ self._setup_ui()
+
+ self.update()
+
+ self.printer: Printer = printer
+ self.timers = []
+ self.extrude_length: int = 10
+ self.extrude_feedrate: int = 2
+ self.extrude_page_message: str = ""
+
+ self.exp_extrude_btn.clicked.connect(
+ lambda: self.handle_extrusion(True)
+ ) # True for extrusion
+ self.exp_unextrude_btn.clicked.connect(
+ lambda: self.handle_extrusion(False)
+ ) # False for retraction
+
+ self.exp_back_btn.clicked.connect(self.request_back.emit)
+ self.extrude_select_length_10_btn.toggled.connect(
+ lambda: self.handle_toggle_extrude_length(
+ caller=self.extrude_select_length_10_btn, value=10
+ )
+ )
+ self.extrude_select_length_50_btn.toggled.connect(
+ lambda: self.handle_toggle_extrude_length(
+ caller=self.extrude_select_length_50_btn, value=50
+ )
+ )
+ self.extrude_select_length_100_btn.toggled.connect(
+ lambda: self.handle_toggle_extrude_length(
+ caller=self.extrude_select_length_100_btn, value=100
+ )
+ )
+ self.extrude_select_feedrate_low_btn.toggled.connect(
+ lambda: self.handle_toggle_extrude_feedrate(
+ caller=self.extrude_select_feedrate_low_btn,
+ value=self.extrude_list[0],
+ )
+ )
+ self.extrude_select_feedrate_middle_btn.toggled.connect(
+ lambda: self.handle_toggle_extrude_feedrate(
+ caller=self.extrude_select_feedrate_middle_btn,
+ value=self.extrude_list[1],
+ )
+ )
+ self.extrude_select_feedrate_high_btn.toggled.connect(
+ lambda: self.handle_toggle_extrude_feedrate(
+ caller=self.extrude_select_feedrate_high_btn,
+ value=self.extrude_list[2],
+ )
+ )
+
+ @QtCore.pyqtSlot(str, name="handle-extrusion")
+ def handle_extrusion(self, extrude: bool) -> None:
+ """Slot that requests an extrusion/unextrusion move
+
+ Args:
+ extrude (bool): If True extrudes otherwise unextrudes.
+ """
+ can_extrude = bool(self.printer.heaters_object["extruder"]["can_extrude"])
+ if not can_extrude:
+ self.extrude_page_message = "Temperature too cold to extrude"
+ self.exp_info_label.setText(self.extrude_page_message)
+ return
+ if extrude:
+ self.run_gcode_signal.emit(
+ f"M83\nG1 E{self.extrude_length} F{self.extrude_feedrate * 60}\nM82\nM400"
+ )
+ self.extrude_page_message = "Extruding"
+ self.exp_info_label.setText(self.extrude_page_message)
+ else:
+ self.run_gcode_signal.emit(
+ f"M83\nG1 E-{self.extrude_length} F{self.extrude_feedrate * 60}\nM82\nM400"
+ )
+ self.extrude_page_message = "Retracting"
+ self.exp_info_label.setText(self.extrude_page_message)
+ # This block of code schedules a method to be called in x amount of milliseconds
+ _sch_time_s = float(
+ self.extrude_length / self.extrude_feedrate
+ ) # calculate the amount of time it'll take for the operation
+ self.extrude_page_message = "Ready"
+ self.register_timed_callback(
+ int(_sch_time_s + 2.0) * 1000, # In milliseconds
+ lambda: self.exp_info_label.setText(self.extrude_page_message),
+ )
+
+ def register_timed_callback(self, time: int, callback: callable) -> None:
+ """Registers timed callback and starts the timeout"""
+ _timer = QtCore.QTimer()
+ _timer.setSingleShot(True)
+ _timer.timeout.connect(callback)
+ _timer.start(int(time))
+ self.timers.append(_timer)
+
+ @QtCore.pyqtSlot(bool, "PyQt_PyObject", int, name="select-extrude-feedrate")
+ def handle_toggle_extrude_feedrate(self, caller, value: int) -> None:
+ """Slot to change the extruder feedrate, mainly used for toggle buttons
+
+ Args:
+ checked (bool): Button checked state
+ caller (PyQtObject): The button that called this slot
+ value (int): New value for the extruder feedrate
+ """
+ if value == self.extrude_feedrate:
+ return
+ self.extrude_feedrate = value
+
+ @QtCore.pyqtSlot(bool, "PyQt_PyObject", int, name="select-extrude-length")
+ def handle_toggle_extrude_length(self, caller, value: int) -> None:
+ """Slot that changes the extrude length, mainly used for toggle buttons
+
+ Args:
+ checked (bool): Button checked state
+ caller (PyQtObject): The button that called this slot
+ value (int): New value for the extrude length
+ """
+ if self.extrude_length == value:
+ return
+ self.extrude_length = value
+
+ def paintEvent(self, a0: QtGui.QPaintEvent | None) -> None:
+ """Refresh the info label while the extrude page is visible."""
+ if self.extrude_page.isVisible():
+ self.exp_info_label.setText(self.extrude_page_message)
+ return super().paintEvent(a0)
+
+ def _setup_ui(self) -> None:
+ """Build the extruder page: extrude/retract controls and status labels."""
+ widget = QtWidgets.QWidget(parent=self)
+ widget.setMinimumSize(QtCore.QSize(710, 410))
+ widget.setMaximumSize(QtCore.QSize(710, 410))
+ self.setObjectName("fans_page")
+ self.extrude_page = QtWidgets.QWidget()
+ self.extrude_page.setMinimumSize(QtCore.QSize(710, 400))
+ self.extrude_page.setMaximumSize(QtCore.QSize(720, 420))
+ self.extrude_page.setObjectName("extrude_page")
+ self.verticalLayout = QtWidgets.QVBoxLayout(self.extrude_page)
+ self.verticalLayout.setObjectName("verticalLayout")
+ spacerItem = QtWidgets.QSpacerItem(
+ 20,
+ 24,
+ QtWidgets.QSizePolicy.Policy.Minimum,
+ QtWidgets.QSizePolicy.Policy.Minimum,
+ )
+ self.verticalLayout.addItem(spacerItem)
+ self.exp_header_layout = QtWidgets.QHBoxLayout()
+ self.exp_header_layout.setObjectName("exp_header_layout")
+ spacerItem1 = QtWidgets.QSpacerItem(
+ 60,
+ 60,
+ QtWidgets.QSizePolicy.Policy.Minimum,
+ QtWidgets.QSizePolicy.Policy.Minimum,
+ )
+ self.exp_header_layout.addItem(spacerItem1)
+ self.exp_title_label = QtWidgets.QLabel(parent=self.extrude_page)
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum
+ )
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(
+ self.exp_title_label.sizePolicy().hasHeightForWidth()
+ )
+ self.exp_title_label.setSizePolicy(sizePolicy)
+ self.exp_title_label.setMinimumSize(QtCore.QSize(0, 60))
+ self.exp_title_label.setMaximumSize(QtCore.QSize(16777215, 60))
+ font = QtGui.QFont()
+ font.setFamily("Momcake")
+ font.setPointSize(24)
+ self.exp_title_label.setFont(font)
+ self.exp_title_label.setStyleSheet("background: transparent; color: white;")
+ self.exp_title_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
+ self.exp_title_label.setObjectName("exp_title_label")
+ self.exp_header_layout.addWidget(self.exp_title_label)
+
+ font = QtGui.QFont()
+ font.setFamily("Momcake")
+ font.setPointSize(20)
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed
+ )
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+
+ self.exp_back_btn = IconButton(parent=self.extrude_page)
+
+ self.exp_back_btn.setSizePolicy(sizePolicy)
+ self.exp_back_btn.setMinimumSize(QtCore.QSize(60, 60))
+ self.exp_back_btn.setMaximumSize(QtCore.QSize(60, 60))
+ self.exp_back_btn.setFont(font)
+ self.exp_back_btn.setProperty(
+ "icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/back.svg")
+ )
+ self.exp_back_btn.setObjectName("exp_back_btn")
+
+ self.exp_header_layout.addWidget(
+ self.exp_back_btn,
+ 0,
+ QtCore.Qt.AlignmentFlag.AlignRight | QtCore.Qt.AlignmentFlag.AlignVCenter,
+ )
+ self.verticalLayout.addLayout(self.exp_header_layout)
+ self.exp_vertical_content_layout = QtWidgets.QVBoxLayout()
+ self.exp_vertical_content_layout.setContentsMargins(5, 5, 5, 5)
+ self.exp_vertical_content_layout.setObjectName("exp_vertical_content_layout")
+
+ font = QtGui.QFont()
+ font.setPointSize(14)
+
+ self.exp_length_group_box = QtWidgets.QGroupBox(parent=self.extrude_page)
+ self.exp_length_group_box.setMinimumSize(QtCore.QSize(0, 80))
+ self.exp_length_group_box.setMaximumSize(QtCore.QSize(16777215, 16777215))
+ self.exp_length_group_box.setFont(font)
+ self.exp_length_group_box.setStyleSheet("color:white")
+ self.exp_length_group_box.setAlignment(
+ QtCore.Qt.AlignmentFlag.AlignLeading
+ | QtCore.Qt.AlignmentFlag.AlignLeft
+ | QtCore.Qt.AlignmentFlag.AlignVCenter
+ )
+ self.exp_length_group_box.setFlat(True)
+ self.exp_length_group_box.setObjectName("exp_length_group_box")
+
+ self.layoutWidget = QtWidgets.QWidget(parent=self.exp_length_group_box)
+ self.layoutWidget.setGeometry(QtCore.QRect(0, 20, 681, 61))
+ self.layoutWidget.setObjectName("layoutWidget")
+ self.exp_length_content_layout = QtWidgets.QHBoxLayout(self.layoutWidget)
+ self.exp_length_content_layout.setContentsMargins(5, 5, 5, 5)
+ self.exp_length_content_layout.setSpacing(5)
+ self.exp_length_content_layout.setObjectName("exp_length_content_layout")
+
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding
+ )
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+
+ font = QtGui.QFont()
+ font.setPointSize(16)
+ font.setWeight(50)
+
+ self.extrude_select_length_group = QtWidgets.QButtonGroup(self)
+ self.extrude_select_length_group.setObjectName("extrude_select_length_group")
+
+ self.extrude_select_length_10_btn = BlocksCustomCheckButton(
+ parent=self.layoutWidget
+ )
+ self.extrude_select_length_10_btn.setSizePolicy(sizePolicy)
+ self.extrude_select_length_10_btn.setFont(font)
+ self.extrude_select_length_10_btn.setCheckable(True)
+ self.extrude_select_length_10_btn.setChecked(True)
+ self.extrude_select_length_10_btn.setObjectName("extrude_select_length_10_btn")
+
+ self.extrude_select_length_group.addButton(self.extrude_select_length_10_btn)
+ self.exp_length_content_layout.addWidget(self.extrude_select_length_10_btn)
+
+ self.extrude_select_length_50_btn = BlocksCustomCheckButton(
+ parent=self.layoutWidget
+ )
+ self.extrude_select_length_50_btn.setSizePolicy(sizePolicy)
+ self.extrude_select_length_50_btn.setFont(font)
+ self.extrude_select_length_50_btn.setCheckable(True)
+ self.extrude_select_length_50_btn.setObjectName("extrude_select_length_50_btn")
+
+ self.extrude_select_length_group.addButton(self.extrude_select_length_50_btn)
+ self.exp_length_content_layout.addWidget(self.extrude_select_length_50_btn)
+
+ self.extrude_select_length_100_btn = BlocksCustomCheckButton(
+ parent=self.layoutWidget
+ )
+ self.extrude_select_length_100_btn.setSizePolicy(sizePolicy)
+ self.extrude_select_length_100_btn.setFont(font)
+ self.extrude_select_length_100_btn.setCheckable(True)
+ self.extrude_select_length_100_btn.setObjectName(
+ "extrude_select_length_100_btn"
+ )
+
+ self.extrude_select_length_group.addButton(self.extrude_select_length_100_btn)
+ self.exp_length_content_layout.addWidget(self.extrude_select_length_100_btn)
+ self.exp_vertical_content_layout.addWidget(self.exp_length_group_box)
+
+ font = QtGui.QFont()
+ font.setPointSize(14)
+
+ self.exp_feedrate_group_box = QtWidgets.QGroupBox(parent=self.extrude_page)
+ self.exp_feedrate_group_box.setMinimumSize(QtCore.QSize(0, 80))
+ self.exp_feedrate_group_box.setFont(font)
+ self.exp_feedrate_group_box.setStyleSheet("color:white")
+ self.exp_feedrate_group_box.setObjectName("exp_feedrate_group_box")
+
+ self.layoutWidget1 = QtWidgets.QWidget(parent=self.exp_feedrate_group_box)
+ self.layoutWidget1.setGeometry(QtCore.QRect(0, 19, 681, 61))
+ self.layoutWidget1.setObjectName("layoutWidget1")
+
+ self.exp_feedrate_content_layout = QtWidgets.QHBoxLayout(self.layoutWidget1)
+ self.exp_feedrate_content_layout.setContentsMargins(5, 5, 5, 5)
+ self.exp_feedrate_content_layout.setSpacing(5)
+ self.exp_feedrate_content_layout.setObjectName("exp_feedrate_content_layout")
+
+ font = QtGui.QFont()
+ font.setPointSize(16)
+ font.setBold(False)
+ font.setWeight(50)
+
+ self.extrude_select_feedrate_group = QtWidgets.QButtonGroup(self)
+ self.extrude_select_feedrate_group.setObjectName(
+ "extrude_select_feedrate_group"
+ )
+
+ self.extrude_select_feedrate_low_btn = BlocksCustomCheckButton(
+ parent=self.layoutWidget1
+ )
+ self.extrude_select_feedrate_low_btn.setSizePolicy(sizePolicy)
+ self.extrude_select_feedrate_low_btn.setFont(font)
+ self.extrude_select_feedrate_low_btn.setCheckable(True)
+ self.extrude_select_feedrate_low_btn.setChecked(True)
+ self.extrude_select_feedrate_low_btn.setObjectName(
+ "extrude_select_feedrate_low_btn"
+ )
+
+ self.extrude_select_feedrate_group.addButton(
+ self.extrude_select_feedrate_low_btn
+ )
+ self.exp_feedrate_content_layout.addWidget(self.extrude_select_feedrate_low_btn)
+
+ self.extrude_select_feedrate_middle_btn = BlocksCustomCheckButton(
+ parent=self.layoutWidget1
+ )
+ self.extrude_select_feedrate_middle_btn.setSizePolicy(sizePolicy)
+ self.extrude_select_feedrate_middle_btn.setFont(font)
+ self.extrude_select_feedrate_middle_btn.setCheckable(True)
+ self.extrude_select_feedrate_middle_btn.setObjectName(
+ "extrude_select_feedrate_middle_btn"
+ )
+
+ self.extrude_select_feedrate_group.addButton(
+ self.extrude_select_feedrate_middle_btn
+ )
+ self.exp_feedrate_content_layout.addWidget(
+ self.extrude_select_feedrate_middle_btn
+ )
+
+ self.extrude_select_feedrate_high_btn = BlocksCustomCheckButton(
+ parent=self.layoutWidget1
+ )
+ self.extrude_select_feedrate_high_btn.setSizePolicy(sizePolicy)
+ self.extrude_select_feedrate_high_btn.setFont(font)
+ self.extrude_select_feedrate_high_btn.setCheckable(True)
+ self.extrude_select_feedrate_high_btn.setObjectName(
+ "extrude_select_feedrate_high_btn"
+ )
+ self.extrude_select_feedrate_group.addButton(
+ self.extrude_select_feedrate_high_btn
+ )
+ self.exp_feedrate_content_layout.addWidget(
+ self.extrude_select_feedrate_high_btn
+ )
+ self.exp_vertical_content_layout.addWidget(self.exp_feedrate_group_box)
+
+ self.exp_movement_content_layout = QtWidgets.QVBoxLayout()
+ self.exp_movement_content_layout.setContentsMargins(-1, 5, -1, -1)
+ self.exp_movement_content_layout.setSpacing(0)
+ self.exp_movement_content_layout.setObjectName("exp_movement_content_layout")
+
+ self.exp_buttons_layout = QtWidgets.QHBoxLayout()
+ self.exp_buttons_layout.setContentsMargins(5, 5, 5, 5)
+ self.exp_buttons_layout.setObjectName("exp_buttons_layout")
+
+ font = QtGui.QFont()
+ font.setFamily("Momcake")
+ font.setPointSize(20)
+ font.setItalic(False)
+ font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
+
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.Minimum,
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ )
+ self.exp_unextrude_btn = BlocksCustomButton(parent=self.extrude_page)
+ self.exp_unextrude_btn.setSizePolicy(sizePolicy)
+ self.exp_unextrude_btn.setMinimumSize(QtCore.QSize(250, 80))
+ self.exp_unextrude_btn.setMaximumSize(QtCore.QSize(250, 80))
+ self.exp_unextrude_btn.setFont(font)
+ self.exp_unextrude_btn.setProperty(
+ "icon_pixmap",
+ QtGui.QPixmap(":/extruder_related/media/btn_icons/extrude.svg"),
+ )
+ self.exp_unextrude_btn.setObjectName("exp_unextrude_btn")
+
+ font = QtGui.QFont()
+ font.setFamily("Momcake")
+ font.setPointSize(16)
+
+ self.exp_buttons_layout.addWidget(self.exp_unextrude_btn)
+ self.exp_nozzle_icon_label = BlocksLabel(parent=self.extrude_page)
+ self.exp_nozzle_icon_label.setMinimumSize(QtCore.QSize(60, 60))
+ self.exp_nozzle_icon_label.setMaximumSize(QtCore.QSize(60, 60))
+ self.exp_nozzle_icon_label.setFont(font)
+ self.exp_nozzle_icon_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
+ self.exp_nozzle_icon_label.setProperty(
+ "icon_pixmap",
+ QtGui.QPixmap(":/extruder_related/media/btn_icons/nozzle.svg"),
+ )
+ self.exp_nozzle_icon_label.setObjectName("exp_nozzle_icon_label")
+ self.exp_buttons_layout.addWidget(self.exp_nozzle_icon_label)
+
+ font = QtGui.QFont()
+ font.setFamily("Momcake")
+ font.setPointSize(20)
+ font.setItalic(False)
+ font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
+
+ self.exp_extrude_btn = BlocksCustomButton(parent=self.extrude_page)
+ self.exp_extrude_btn.setSizePolicy(sizePolicy)
+ self.exp_extrude_btn.setMinimumSize(QtCore.QSize(250, 80))
+ self.exp_extrude_btn.setMaximumSize(QtCore.QSize(250, 80))
+ self.exp_extrude_btn.setFont(font)
+ self.exp_extrude_btn.setProperty(
+ "icon_pixmap",
+ QtGui.QPixmap(":/extruder_related/media/btn_icons/extrude.svg"),
+ )
+ self.exp_extrude_btn.setObjectName("exp_extrude_btn")
+
+ self.exp_buttons_layout.addWidget(self.exp_extrude_btn)
+ self.exp_movement_content_layout.addLayout(self.exp_buttons_layout)
+
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Minimum
+ )
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+
+ font = QtGui.QFont()
+ font.setFamily("Montserrat")
+ font.setPointSize(14)
+
+ self.exp_info_layout = QtWidgets.QHBoxLayout()
+ self.exp_info_layout.setContentsMargins(5, 5, 5, 5)
+ self.exp_info_layout.setObjectName("exp_info_layout")
+
+ self.exp_info_label = QtWidgets.QLabel(parent=self.extrude_page)
+ self.exp_info_label.setSizePolicy(sizePolicy)
+ self.exp_info_label.setFont(font)
+ self.exp_info_label.setStyleSheet("background: transparent; color: white;")
+ self.exp_info_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
+ self.exp_info_label.setObjectName("exp_info_label")
+ self.exp_info_layout.addWidget(self.exp_info_label)
+ self.exp_movement_content_layout.addLayout(self.exp_info_layout)
+ self.exp_movement_content_layout.setStretch(1, 1)
+ self.exp_vertical_content_layout.addLayout(self.exp_movement_content_layout)
+ self.exp_vertical_content_layout.setStretch(2, 1)
+ self.verticalLayout.addLayout(self.exp_vertical_content_layout)
+ widget.setLayout(self.verticalLayout)
+
+ _translate = QtCore.QCoreApplication.translate
+ self.exp_title_label.setText(_translate("controlStackedWidget", "Extrude"))
+ self.exp_back_btn.setText(_translate("controlStackedWidget", "Back"))
+ self.exp_length_group_box.setTitle(
+ _translate("controlStackedWidget", "Extrude Length (mm)")
+ )
+ self.extrude_select_length_10_btn.setText(
+ _translate("controlStackedWidget", "10")
+ )
+ self.extrude_select_length_50_btn.setText(
+ _translate("controlStackedWidget", "50")
+ )
+ self.extrude_select_length_100_btn.setText(
+ _translate("controlStackedWidget", "100")
+ )
+ self.exp_feedrate_group_box.setTitle(
+ _translate("controlStackedWidget", "Extrude Feedrate (mm/s)")
+ )
+ self.extrude_select_feedrate_low_btn.setText(
+ _translate("controlStackedWidget", str(self.extrude_list[0]))
+ )
+ self.extrude_select_feedrate_middle_btn.setText(
+ _translate("controlStackedWidget", str(self.extrude_list[1]))
+ )
+ self.extrude_select_feedrate_high_btn.setText(
+ _translate("controlStackedWidget", str(self.extrude_list[2]))
+ )
+ self.exp_unextrude_btn.setText(_translate("controlStackedWidget", "Retract"))
+ self.exp_extrude_btn.setText(_translate("controlStackedWidget", "Extrude"))
+ self.exp_info_label.setText(
+ _translate("controlStackedWidget", "Nozzle heating to extrude")
+ )
diff --git a/BlocksScreen/lib/panels/widgets/ControlTab/fansPage.py b/BlocksScreen/lib/panels/widgets/ControlTab/fansPage.py
new file mode 100644
index 00000000..0e008c50
--- /dev/null
+++ b/BlocksScreen/lib/panels/widgets/ControlTab/fansPage.py
@@ -0,0 +1,212 @@
+"""Control tab fans page: one card per fan with a slider popup for speed changes."""
+
+import re
+import typing
+
+from lib.panels.widgets.optionCardWidget import OptionCard
+from lib.utils.gcode import fan_speed_gcode
+from lib.utils.icon_button import IconButton
+from PyQt6 import QtCore, QtGui, QtWidgets
+
+
+class FansPage(QtWidgets.QWidget):
+ """Fan control page of the control tab."""
+
+ request_slider_page = QtCore.pyqtSignal(
+ str, int, "PyQt_PyObject", int, int, name="on_slidePage_request"
+ )
+ request_back_button = QtCore.pyqtSignal(name="request-back-button")
+
+ run_gcode_signal: typing.ClassVar[QtCore.pyqtSignal] = QtCore.pyqtSignal(
+ str, name="run-gcode"
+ )
+
+ def __init__(
+ self,
+ parent: typing.Optional["QtWidgets.QWidget"],
+ ) -> None:
+ super().__init__(parent)
+
+ self.tune_display_buttons: dict = {}
+ self.card_options: dict = {}
+ self._setup_ui()
+ self.fans_back_btn.clicked.connect(self.request_back_button.emit)
+
+ self.path = {
+ "fan_cage": QtGui.QPixmap(":/fan_related/media/btn_icons/fan_cage.svg"),
+ "blower": QtGui.QPixmap(":/fan_related/media/btn_icons/blower.svg"),
+ "fan": QtGui.QPixmap(":/fan_related/media/btn_icons/fan.svg"),
+ }
+
+ @QtCore.pyqtSlot(str, str, float, name="on_fan_update")
+ @QtCore.pyqtSlot(str, str, int, name="on_fan_update")
+ def on_fan_object_update(self, name: str, field: str, new_value: float) -> None:
+ """Slot that receives updates from fan objects.
+
+ Args:
+ name (str): Fan object name
+ field (str): Field name
+ new_value (int | float): New value for the field
+ """
+ if "speed" not in field:
+ return
+
+ fields = name.split()
+ first_field = fields[0]
+ second_field = fields[1] if len(fields) > 1 else None
+ name = second_field.replace("_", " ") if second_field else name
+
+ fan_card = self.tune_display_buttons.get(name)
+ if fan_card is None and first_field in (
+ "fan",
+ "fan_generic",
+ ):
+ icon = self.path.get("fan")
+ if second_field:
+ second_field = second_field.lower()
+ pattern_blower = r"(?:^|_)(?:blower|auxiliary)(?:_|$)"
+ pattern_exhaust = r"(?:^|_)exhaust(?:_|$)"
+ if re.search(pattern_blower, second_field):
+ icon = self.path.get("blower")
+ elif re.search(pattern_exhaust, second_field):
+ icon = self.path.get("fan_cage")
+
+ card = OptionCard(self, name, str(name), icon) # type: ignore
+ card.setObjectName(str(name))
+
+ # Add card to layout and record reference
+ self.card_options[name] = card
+ self.fans_content_layout.addWidget(card)
+
+ # If the card doesn't have expected UI properties, discard it
+ if not hasattr(card, "continue_clicked"):
+ del card
+ self.card_options.pop(name, None)
+ return
+
+ card.setMode(True)
+ card.secondtext.setText(f"{new_value}%")
+ card.continue_clicked.connect(
+ lambda: self.request_slider_page.emit(
+ str(name),
+ int(card.secondtext.text().replace("%", "")),
+ self.on_slider_change,
+ 0,
+ 100,
+ )
+ )
+
+ self.tune_display_buttons[name] = card
+ self.update()
+ fan_card = card
+
+ if fan_card:
+ value_percent = new_value * 100 if new_value <= 1 else new_value
+ fan_card.secondtext.setText(f"{value_percent:.0f}%")
+
+ @QtCore.pyqtSlot(str, int, name="on_slider_change")
+ def on_slider_change(self, name: str, new_value: int) -> None:
+ """
+ Slider change handler
+ Args:
+ name (str): fan name
+ new_value (int): value from 0 to 255 to set fans speed
+ """
+ self.run_gcode_signal.emit(fan_speed_gcode(name, new_value))
+
+ def _setup_ui(self) -> None:
+ """Build the fans page: header, back button, and fan slider area."""
+ self.setObjectName("fans_page")
+ widget = QtWidgets.QWidget(parent=self)
+ widget.setGeometry(QtCore.QRect(0, 0, 720, 420))
+
+ self.verticalLayout = QtWidgets.QVBoxLayout(self)
+ self.verticalLayout.setObjectName("verticalLayout")
+
+ spacerItem9 = QtWidgets.QSpacerItem(
+ 20,
+ 24,
+ QtWidgets.QSizePolicy.Policy.Minimum,
+ QtWidgets.QSizePolicy.Policy.Minimum,
+ )
+ self.verticalLayout.addItem(spacerItem9)
+
+ self.fans_header_layout = QtWidgets.QHBoxLayout()
+ self.fans_header_layout.setObjectName("fans_header_layout")
+
+ spacerItem10 = QtWidgets.QSpacerItem(
+ 60,
+ 20,
+ QtWidgets.QSizePolicy.Policy.Minimum,
+ QtWidgets.QSizePolicy.Policy.Minimum,
+ )
+ self.fans_header_layout.addItem(spacerItem10)
+
+ font = QtGui.QFont()
+ font.setFamily("Momcake")
+ font.setPointSize(24)
+
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed
+ )
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+
+ self.fans_title_label = QtWidgets.QLabel(parent=self)
+ self.fans_title_label.setSizePolicy(sizePolicy)
+ self.fans_title_label.setFont(font)
+ self.fans_title_label.setStyleSheet("background: transparent; color: white;")
+ self.fans_title_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
+ self.fans_title_label.setObjectName("fans_title_label")
+ self.fans_header_layout.addWidget(self.fans_title_label)
+
+ font = QtGui.QFont()
+ font.setFamily("Momcake")
+ font.setPointSize(20)
+ font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
+
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ )
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+
+ self.fans_back_btn = IconButton(parent=self)
+ self.fans_back_btn.setSizePolicy(sizePolicy)
+ self.fans_back_btn.setMinimumSize(QtCore.QSize(60, 60))
+ self.fans_back_btn.setMaximumSize(QtCore.QSize(60, 60))
+ self.fans_back_btn.setFont(font)
+ self.fans_back_btn.setProperty(
+ "icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/back.svg")
+ )
+ self.fans_back_btn.setObjectName("fans_back_btn")
+
+ self.fans_header_layout.addWidget(self.fans_back_btn)
+ self.verticalLayout.addLayout(self.fans_header_layout)
+ spacerItem11 = QtWidgets.QSpacerItem(
+ 20,
+ 111,
+ QtWidgets.QSizePolicy.Policy.Minimum,
+ QtWidgets.QSizePolicy.Policy.Expanding,
+ )
+
+ self.verticalLayout.addItem(spacerItem11)
+
+ self.fans_content_layout = QtWidgets.QHBoxLayout()
+ self.fans_content_layout.setObjectName("fans_content_layout")
+ self.verticalLayout.addLayout(self.fans_content_layout)
+
+ spacerItem12 = QtWidgets.QSpacerItem(
+ 20,
+ 111,
+ QtWidgets.QSizePolicy.Policy.Minimum,
+ QtWidgets.QSizePolicy.Policy.Expanding,
+ )
+ self.verticalLayout.addItem(spacerItem12)
+
+ widget.setLayout(self.verticalLayout)
+
+ _translate = QtCore.QCoreApplication.translate
+ self.fans_title_label.setText(_translate("controlStackedWidget", "Fans"))
+ self.fans_back_btn.setText(_translate("controlStackedWidget", "Back"))
diff --git a/BlocksScreen/lib/panels/widgets/printcorePage.py b/BlocksScreen/lib/panels/widgets/ControlTab/printcorePage.py
similarity index 100%
rename from BlocksScreen/lib/panels/widgets/printcorePage.py
rename to BlocksScreen/lib/panels/widgets/ControlTab/printcorePage.py
diff --git a/BlocksScreen/lib/panels/widgets/probeHelperPage.py b/BlocksScreen/lib/panels/widgets/ControlTab/probeHelperPage.py
similarity index 99%
rename from BlocksScreen/lib/panels/widgets/probeHelperPage.py
rename to BlocksScreen/lib/panels/widgets/ControlTab/probeHelperPage.py
index 0df4b50d..55aaa9ce 100644
--- a/BlocksScreen/lib/panels/widgets/probeHelperPage.py
+++ b/BlocksScreen/lib/panels/widgets/ControlTab/probeHelperPage.py
@@ -97,7 +97,7 @@ def __init__(self, parent: QtWidgets.QWidget) -> None:
self._eddy_command: str = ""
self.setObjectName("probe_offset_page")
- self._setupUi()
+ self._setup_ui()
self.inductive_icon = QtGui.QPixmap(
":/z_levelling/media/btn_icons/inductive.svg"
)
@@ -731,7 +731,7 @@ def _create_move_button(
btn.setObjectName(obj_name)
return btn
- def _setupUi(self) -> None:
+ def _setup_ui(self) -> None:
"""Build and lay out all UI elements for the probe helper page."""
self.bbp_offset_value_selector_group = QtWidgets.QButtonGroup(self)
self.bbp_offset_value_selector_group.setExclusive(True)
diff --git a/BlocksScreen/lib/panels/widgets/ControlTab/temperaturePage.py b/BlocksScreen/lib/panels/widgets/ControlTab/temperaturePage.py
new file mode 100644
index 00000000..968d8988
--- /dev/null
+++ b/BlocksScreen/lib/panels/widgets/ControlTab/temperaturePage.py
@@ -0,0 +1,310 @@
+"""Control tab temperature page: per-heater target display and preset selection."""
+
+import contextlib
+import typing
+
+from lib.utils.blocks_button import BlocksCustomButton
+from lib.utils.display_button import DisplayButton
+from lib.utils.icon_button import IconButton
+from PyQt6 import QtCore, QtGui, QtWidgets
+
+
+class TemperaturePage(QtWidgets.QWidget):
+ """Heater temperature page of the control tab."""
+
+ request_back = QtCore.pyqtSignal(name="request-back-button")
+
+ run_gcode_signal: typing.ClassVar[QtCore.pyqtSignal] = QtCore.pyqtSignal(
+ str, name="run-gcode"
+ )
+ request_numpad: typing.ClassVar[QtCore.pyqtSignal] = QtCore.pyqtSignal(
+ str,
+ int,
+ "PyQt_PyObject",
+ int,
+ int,
+ name="request-numpad",
+ )
+
+ def __init__(
+ self,
+ parent: typing.Optional["QtWidgets.QWidget"],
+ ) -> None:
+ super().__init__(parent)
+
+ self._setup_ui()
+
+ self.temp_back_button.clicked.connect(self.request_back.emit)
+
+ self.cooldown_btn.hide()
+ self.temperature_cooldown_btn.hide()
+
+ self._connect_temp_displays(0, 370, 0, 120)
+
+ @QtCore.pyqtSlot(dict, name="printer_config")
+ def on_printer_config(self, config: dict) -> None:
+ """Rewire the temperature numpads with the printer's configured limits"""
+ extruder = config.get("extruder") or {}
+ bed = config.get("heater_bed") or {}
+ self._connect_temp_displays(
+ int(extruder.get("min_temp", 0)),
+ int(extruder.get("max_temp", 300)),
+ int(bed.get("min_temp", 0)),
+ int(bed.get("max_temp", 100)),
+ )
+
+ def _connect_temp_displays(
+ self, e_min: int, e_max: int, b_min: int, b_max: int
+ ) -> None:
+ """Connect both temperature displays to the numpad with the given limits"""
+ with contextlib.suppress(RuntimeError, TypeError):
+ self.extruder_temp_display.clicked.disconnect()
+ with contextlib.suppress(RuntimeError, TypeError):
+ self.bed_temp_display.clicked.disconnect()
+ self.extruder_temp_display.clicked.connect(
+ lambda: self.request_numpad.emit(
+ "Extruder Temperature",
+ round(float(self.extruder_temp_display.secondary_text)),
+ self.on_numpad_change,
+ e_min,
+ e_max,
+ )
+ )
+ self.bed_temp_display.clicked.connect(
+ lambda: self.request_numpad.emit(
+ "Bed Temperature",
+ round(float(self.bed_temp_display.secondary_text)),
+ self.on_numpad_change,
+ b_min,
+ b_max,
+ )
+ )
+
+ @QtCore.pyqtSlot(str, int, name="on-numpad-change")
+ def on_numpad_change(self, name: str, new_value: int) -> None:
+ """Handles inputted numpad values"""
+ if "bed" in name.lower():
+ name = "heater_bed"
+ elif "extruder" in name.lower():
+ name = "extruder"
+ self.run_gcode_signal.emit(
+ f"SET_HEATER_TEMPERATURE HEATER={name} TARGET={new_value}"
+ )
+
+ @QtCore.pyqtSlot(str, str, float, name="on-extruder-update")
+ def on_extruder_update(
+ self, extruder_name: str, field: str, new_value: float
+ ) -> None:
+ """Handles updates from extruder printer object"""
+ if extruder_name == "extruder" and field == "temperature":
+ self.extruder_temp_display.setText(f"{new_value:.1f}")
+ if extruder_name == "extruder" and field == "target":
+ self.extruder_temp_display.secondary_text = f"{new_value:.1f}"
+
+ @QtCore.pyqtSlot(str, str, float, name="on-heater-bed-update")
+ def on_heater_bed_update(self, name: str, field: str, new_value: float) -> None:
+ """Handles updated from heater_bed printer object"""
+ if field == "temperature":
+ self.bed_temp_display.setText(f"{new_value:.1f}")
+ if field == "target":
+ self.bed_temp_display.secondary_text = f"{new_value:.1f}"
+
+ def _setup_ui(self) -> None:
+ """Build the temperature page: heater cards and preset controls."""
+ self.setObjectName("temperature_page")
+ widget = QtWidgets.QWidget(parent=self)
+ widget.setGeometry(QtCore.QRect(0, 0, 720, 420))
+ self.verticalLayout = QtWidgets.QVBoxLayout(self)
+ self.verticalLayout.setObjectName("verticalLayout")
+ spacerItem3 = QtWidgets.QSpacerItem(
+ 20,
+ 24,
+ QtWidgets.QSizePolicy.Policy.Minimum,
+ QtWidgets.QSizePolicy.Policy.Minimum,
+ )
+ self.verticalLayout.addItem(spacerItem3)
+
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setObjectName("horizontalLayout")
+
+ spacerItem4 = QtWidgets.QSpacerItem(
+ 60,
+ 20,
+ QtWidgets.QSizePolicy.Policy.Minimum,
+ QtWidgets.QSizePolicy.Policy.Minimum,
+ )
+ self.horizontalLayout.addItem(spacerItem4)
+
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ QtWidgets.QSizePolicy.Policy.MinimumExpanding,
+ )
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+
+ font = QtGui.QFont()
+ font.setFamily("Momcake")
+ font.setPointSize(24)
+ font.setBold(True)
+ font.setWeight(75)
+
+ self.temp_header_title = QtWidgets.QLabel(parent=self)
+ self.temp_header_title.setSizePolicy(sizePolicy)
+ self.temp_header_title.setMaximumSize(QtCore.QSize(16777215, 60))
+ self.temp_header_title.setFont(font)
+ self.temp_header_title.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
+ self.temp_header_title.setStyleSheet("background: transparent; color: white;")
+ self.temp_header_title.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
+ self.temp_header_title.setObjectName("temp_header_title")
+ self.horizontalLayout.addWidget(self.temp_header_title)
+
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed
+ )
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+
+ self.temp_back_button = IconButton(parent=self)
+ self.temp_back_button.setSizePolicy(sizePolicy)
+ self.temp_back_button.setMinimumSize(QtCore.QSize(60, 60))
+ self.temp_back_button.setMaximumSize(QtCore.QSize(60, 60))
+ self.temp_back_button.setProperty(
+ "icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/back.svg")
+ )
+ self.temp_back_button.setObjectName("temp_back_button")
+
+ self.horizontalLayout.addWidget(self.temp_back_button)
+ self.verticalLayout.addLayout(self.horizontalLayout)
+
+ spacerItem5 = QtWidgets.QSpacerItem(
+ 20,
+ 35,
+ QtWidgets.QSizePolicy.Policy.Minimum,
+ QtWidgets.QSizePolicy.Policy.Minimum,
+ )
+ self.verticalLayout.addItem(spacerItem5)
+
+ self.gridLayout = QtWidgets.QGridLayout()
+ self.gridLayout.setContentsMargins(5, 5, 5, 5)
+ self.gridLayout.setSpacing(0)
+ self.gridLayout.setObjectName("gridLayout")
+
+ self.tp_content_horizontal_layout = QtWidgets.QHBoxLayout()
+ self.tp_content_horizontal_layout.setSizeConstraint(
+ QtWidgets.QLayout.SizeConstraint.SetMinimumSize
+ )
+ self.tp_content_horizontal_layout.setContentsMargins(5, 5, 5, 5)
+ self.tp_content_horizontal_layout.setSpacing(5)
+ self.tp_content_horizontal_layout.setObjectName("tp_content_horizontal_layout")
+
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed
+ )
+ sizePolicy.setHorizontalStretch(1)
+ sizePolicy.setVerticalStretch(1)
+
+ font = QtGui.QFont()
+ font.setPointSize(11)
+
+ self.extruder_temp_display = DisplayButton(parent=self)
+ self.extruder_temp_display.setSizePolicy(sizePolicy)
+ self.extruder_temp_display.setMinimumSize(QtCore.QSize(200, 60))
+ self.extruder_temp_display.setMaximumSize(QtCore.QSize(120, 60))
+ self.extruder_temp_display.setFont(font)
+ self.extruder_temp_display.setProperty(
+ "icon_pixmap",
+ QtGui.QPixmap(":/extruder_related/media/btn_icons/nozzle.svg"),
+ )
+ self.extruder_temp_display.setObjectName("extruder_temp_display")
+ self.tp_content_horizontal_layout.addWidget(self.extruder_temp_display)
+
+ self.bed_temp_display = DisplayButton(parent=self)
+ self.bed_temp_display.setSizePolicy(sizePolicy)
+ self.bed_temp_display.setMinimumSize(QtCore.QSize(200, 60))
+ self.bed_temp_display.setMaximumSize(QtCore.QSize(120, 60))
+ self.bed_temp_display.setFont(font)
+ self.bed_temp_display.setProperty(
+ "icon_pixmap",
+ QtGui.QPixmap(
+ ":/temperature_related/media/btn_icons/temperature_plate.svg"
+ ),
+ )
+ self.bed_temp_display.setObjectName("bed_temp_display")
+
+ self.tp_content_horizontal_layout.addWidget(self.bed_temp_display)
+ self.gridLayout.addLayout(self.tp_content_horizontal_layout, 0, 0, 1, 2)
+
+ font = QtGui.QFont()
+ font.setFamily("Momcake")
+ font.setPointSize(19)
+ font.setItalic(False)
+ font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
+
+ sizePolicy = QtWidgets.QSizePolicy(
+ QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed
+ )
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+
+ self.cooldown_btn = BlocksCustomButton(parent=self)
+ self.cooldown_btn.setSizePolicy(sizePolicy)
+ self.cooldown_btn.setMinimumSize(QtCore.QSize(250, 80))
+ self.cooldown_btn.setMaximumSize(QtCore.QSize(250, 80))
+ self.cooldown_btn.setFont(font)
+ self.cooldown_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
+ self.cooldown_btn.setProperty(
+ "icon_pixmap",
+ QtGui.QPixmap(":/temperature_related/media/btn_icons/cooldown.svg"),
+ )
+ self.cooldown_btn.setObjectName("cooldown_btn")
+
+ self.gridLayout.addWidget(self.cooldown_btn, 2, 1, 1, 1)
+ spacerItem6 = QtWidgets.QSpacerItem(
+ 20,
+ 50,
+ QtWidgets.QSizePolicy.Policy.Minimum,
+ QtWidgets.QSizePolicy.Policy.Minimum,
+ )
+ self.gridLayout.addItem(spacerItem6, 1, 0, 1, 2)
+
+ self.temperature_cooldown_btn = BlocksCustomButton(parent=self)
+ self.temperature_cooldown_btn.setSizePolicy(sizePolicy)
+ self.temperature_cooldown_btn.setMinimumSize(QtCore.QSize(250, 80))
+ self.temperature_cooldown_btn.setMaximumSize(QtCore.QSize(250, 80))
+ self.temperature_cooldown_btn.setFont(font)
+ self.temperature_cooldown_btn.setLayoutDirection(
+ QtCore.Qt.LayoutDirection.LeftToRight
+ )
+ self.temperature_cooldown_btn.setProperty(
+ "icon_pixmap",
+ QtGui.QPixmap(":/temperature_related/media/btn_icons/heatsoak_icon.svg"),
+ )
+ self.temperature_cooldown_btn.setObjectName("temperature_cooldown_btn")
+ self.gridLayout.addWidget(self.temperature_cooldown_btn, 2, 0, 1, 1)
+
+ self.verticalLayout.addLayout(self.gridLayout)
+ spacerItem7 = QtWidgets.QSpacerItem(
+ 20,
+ 8,
+ QtWidgets.QSizePolicy.Policy.Minimum,
+ QtWidgets.QSizePolicy.Policy.Minimum,
+ )
+ self.verticalLayout.addItem(spacerItem7)
+
+ widget.setLayout(self.verticalLayout)
+
+ _translate = QtCore.QCoreApplication.translate
+ self.temp_header_title.setText(
+ _translate("controlStackedWidget", "Temperature")
+ )
+ self.temp_back_button.setText(_translate("controlStackedWidget", "Back"))
+ self.extruder_temp_display.setProperty(
+ "button_type", _translate("controlStackedWidget", "secondary_display")
+ )
+ self.bed_temp_display.setProperty(
+ "button_type", _translate("controlStackedWidget", "secondary_display")
+ )
+ self.cooldown_btn.setText(_translate("controlStackedWidget", "Cooldown"))
+ self.temperature_cooldown_btn.setText(
+ _translate("controlStackedWidget", "Heatsoak")
+ )
diff --git a/BlocksScreen/lib/panels/widgets/cancelPage.py b/BlocksScreen/lib/panels/widgets/MainWindow/cancelPage.py
similarity index 100%
rename from BlocksScreen/lib/panels/widgets/cancelPage.py
rename to BlocksScreen/lib/panels/widgets/MainWindow/cancelPage.py
diff --git a/BlocksScreen/lib/panels/widgets/connectionPage.py b/BlocksScreen/lib/panels/widgets/MainWindow/connectionPage.py
similarity index 100%
rename from BlocksScreen/lib/panels/widgets/connectionPage.py
rename to BlocksScreen/lib/panels/widgets/MainWindow/connectionPage.py
diff --git a/BlocksScreen/lib/panels/widgets/notificationPage.py b/BlocksScreen/lib/panels/widgets/MainWindow/notificationPage.py
similarity index 100%
rename from BlocksScreen/lib/panels/widgets/notificationPage.py
rename to BlocksScreen/lib/panels/widgets/MainWindow/notificationPage.py
diff --git a/BlocksScreen/lib/panels/widgets/updatePage.py b/BlocksScreen/lib/panels/widgets/MainWindow/updatePage.py
similarity index 100%
rename from BlocksScreen/lib/panels/widgets/updatePage.py
rename to BlocksScreen/lib/panels/widgets/MainWindow/updatePage.py
diff --git a/BlocksScreen/lib/panels/widgets/babystepPage.py b/BlocksScreen/lib/panels/widgets/PrintTab/babystepPage.py
similarity index 100%
rename from BlocksScreen/lib/panels/widgets/babystepPage.py
rename to BlocksScreen/lib/panels/widgets/PrintTab/babystepPage.py
diff --git a/BlocksScreen/lib/panels/widgets/confirmPage.py b/BlocksScreen/lib/panels/widgets/PrintTab/confirmPage.py
similarity index 100%
rename from BlocksScreen/lib/panels/widgets/confirmPage.py
rename to BlocksScreen/lib/panels/widgets/PrintTab/confirmPage.py
diff --git a/BlocksScreen/lib/panels/widgets/filesPage.py b/BlocksScreen/lib/panels/widgets/PrintTab/filesPage.py
similarity index 100%
rename from BlocksScreen/lib/panels/widgets/filesPage.py
rename to BlocksScreen/lib/panels/widgets/PrintTab/filesPage.py
diff --git a/BlocksScreen/lib/panels/widgets/jobStatusPage.py b/BlocksScreen/lib/panels/widgets/PrintTab/jobStatusPage.py
similarity index 100%
rename from BlocksScreen/lib/panels/widgets/jobStatusPage.py
rename to BlocksScreen/lib/panels/widgets/PrintTab/jobStatusPage.py
diff --git a/BlocksScreen/lib/panels/widgets/sensorWidget.py b/BlocksScreen/lib/panels/widgets/PrintTab/sensorWidget.py
similarity index 100%
rename from BlocksScreen/lib/panels/widgets/sensorWidget.py
rename to BlocksScreen/lib/panels/widgets/PrintTab/sensorWidget.py
diff --git a/BlocksScreen/lib/panels/widgets/sensorsPanel.py b/BlocksScreen/lib/panels/widgets/PrintTab/sensorsPanel.py
similarity index 99%
rename from BlocksScreen/lib/panels/widgets/sensorsPanel.py
rename to BlocksScreen/lib/panels/widgets/PrintTab/sensorsPanel.py
index df63cfb5..59f0c87e 100644
--- a/BlocksScreen/lib/panels/widgets/sensorsPanel.py
+++ b/BlocksScreen/lib/panels/widgets/PrintTab/sensorsPanel.py
@@ -1,6 +1,6 @@
import typing
-from lib.panels.widgets.sensorWidget import SensorWidget
+from lib.panels.widgets.PrintTab.sensorWidget import SensorWidget
from lib.utils.blocks_frame import BlocksCustomFrame
from lib.utils.icon_button import IconButton
from lib.utils.list_model import EntryDelegate, EntryListModel, ListItem
@@ -25,7 +25,7 @@ def __init__(self, parent):
self.sensor_tracking_widget = {}
self.current_widget = None
self.sensor_list: list[SensorWidget] = []
- self._setupUi()
+ self._setup_ui()
self.setAttribute(QtCore.Qt.WidgetAttribute.WA_TranslucentBackground, True)
self.setAttribute(QtCore.Qt.WidgetAttribute.WA_AcceptTouchEvents, True)
self.setTabletTracking(True)
@@ -128,7 +128,7 @@ def create_sensor_widget(self, name: str) -> SensorWidget:
return _item_widget
- def _setupUi(self) -> None:
+ def _setup_ui(self) -> None:
"""Setup UI for updatePage"""
font_id = QtGui.QFontDatabase.addApplicationFont(
":/font/media/fonts for text/Momcake-Bold.ttf"
diff --git a/BlocksScreen/lib/panels/widgets/tunePage.py b/BlocksScreen/lib/panels/widgets/PrintTab/tunePage.py
similarity index 100%
rename from BlocksScreen/lib/panels/widgets/tunePage.py
rename to BlocksScreen/lib/panels/widgets/PrintTab/tunePage.py
diff --git a/BlocksScreen/lib/panels/widgets/basePopup.py b/BlocksScreen/lib/panels/widgets/basePopup.py
index 199f9bf2..cc6d9708 100644
--- a/BlocksScreen/lib/panels/widgets/basePopup.py
+++ b/BlocksScreen/lib/panels/widgets/basePopup.py
@@ -105,37 +105,74 @@ def _update_button_style(self) -> None:
)
def set_message(self, message: str) -> None:
+ """Sets Main Message
+
+ Args:
+ message (str): a message
+ """
self.label.setText(message)
def cancel_button_text(self, text: str) -> None:
+ """Sets Cancel button text
+
+ Args:
+ text (str): a string
+ """
+
if not self.dialog:
return
self.cancel_button.setText(text)
def confirm_button_text(self, text: str) -> None:
+ """Sets Confirm button text
+
+ Args:
+ text (str): a string
+ """
if not self.dialog:
return
self.confirm_button.setText(text)
def cancel_background_color(self, color: str) -> None:
+ """Sets Cancel button color
+
+ Args:
+ color (str): a string containing a hex color
+ """
+
if not self.dialog:
return
self.cancel_bk_color = color
self._update_button_style()
def confirm_background_color(self, color: str) -> None:
+ """Sets Confirm button color
+
+ Args:
+ color (str): a string containing a hex color
+ """
if not self.dialog:
return
self.confirm_bk_color = color
self._update_button_style()
def cancel_font_color(self, color: str) -> None:
+ """Sets cancel font color
+
+ Args:
+ color (str): a string containing a hex color
+ """
if not self.dialog:
return
self.cancel_ft_color = color
self._update_button_style()
def confirm_font_color(self, color: str) -> None:
+ """Sets confirm font color
+
+ Args:
+ color (str): a string containing a hex color
+ """
if not self.dialog:
return
self.confirm_ft_color = color
diff --git a/BlocksScreen/lib/panels/widgets/basicFilamentPanel.py b/BlocksScreen/lib/panels/widgets/basicFilamentPanel.py
index 00769f13..53b51ced 100644
--- a/BlocksScreen/lib/panels/widgets/basicFilamentPanel.py
+++ b/BlocksScreen/lib/panels/widgets/basicFilamentPanel.py
@@ -51,7 +51,7 @@ def __init__(self, printer: Printer, cfg, parent=None) -> None:
self.has_load_unload_objects = None
self.filament_buttons_list = []
self.mmu_configured = False
- self._setupUi()
+ self._setup_ui()
self.filament_state = self.FilamentStates.UNKNOWN
self.setCurrentIndex(0)
@@ -346,7 +346,8 @@ def _setupInfoBox(self):
return root
- def _setupUi(self):
+ def _setup_ui(self) -> None:
+ """Build the basic filament panel: load/unload controls and status labels."""
self.setObjectName("self")
self.resize(710, 411)
diff --git a/BlocksScreen/lib/panels/widgets/fansPage.py b/BlocksScreen/lib/panels/widgets/fansPage.py
deleted file mode 100644
index 925c0230..00000000
--- a/BlocksScreen/lib/panels/widgets/fansPage.py
+++ /dev/null
@@ -1,15 +0,0 @@
-from PyQt6 import QtCore, QtWidgets
-import typing
-
-
-class FansPage(QtWidgets.QWidget):
- def __init__(
- self,
- parent: typing.Optional["QtWidgets.QWidget"],
- flags: typing.Optional["QtCore.Qt.WindowType"],
- ) -> None:
- if parent is not None and flags is not None:
- super(FansPage, self).__init__(parent, flags)
-
- else:
- super(FansPage, self).__init__()
diff --git a/BlocksScreen/lib/panels/widgets/keyboardPage.py b/BlocksScreen/lib/panels/widgets/keyboardPage.py
index 243302f4..12cf6903 100644
--- a/BlocksScreen/lib/panels/widgets/keyboardPage.py
+++ b/BlocksScreen/lib/panels/widgets/keyboardPage.py
@@ -316,6 +316,7 @@ def _create_key_button(
return btn
def _setup_ui(self) -> None:
+ """Build the keyboard page: qwerty grid, numpad, and input row."""
self.setObjectName("self")
self.resize(800, 480)
self.setMaximumSize(QtCore.QSize(800, 480))
diff --git a/BlocksScreen/lib/panels/widgets/optionCardWidget.py b/BlocksScreen/lib/panels/widgets/optionCardWidget.py
index 6fbfe20d..24a1d74e 100644
--- a/BlocksScreen/lib/panels/widgets/optionCardWidget.py
+++ b/BlocksScreen/lib/panels/widgets/optionCardWidget.py
@@ -25,7 +25,7 @@ def __init__(
self.name = name
self.card_text = text
self.doubleT: bool = False
- self._setupUi(self)
+ self._setup_ui()
self.option_icon.setAttribute(
QtCore.Qt.WidgetAttribute.WA_TransparentForMouseEvents
)
@@ -200,29 +200,30 @@ def paintEvent(self, a0: QtGui.QPaintEvent) -> None:
painter.end()
- def _setupUi(self, option_card):
- option_card.setObjectName("option_card")
- option_card.resize(200, 300)
+ def _setup_ui(self) -> None:
+ """Build the option card: icon, title, and continue button."""
+ self.setObjectName("option_card")
+ self.resize(200, 300)
sizePolicy = QtWidgets.QSizePolicy(
QtWidgets.QSizePolicy.Policy.MinimumExpanding,
QtWidgets.QSizePolicy.Policy.Ignored,
)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(option_card.sizePolicy().hasHeightForWidth())
- option_card.setSizePolicy(sizePolicy)
- option_card.setMinimumSize(QtCore.QSize(200, 300))
- option_card.setMaximumSize(QtCore.QSize(200, 300))
- self.verticalLayout = QtWidgets.QVBoxLayout(option_card)
+ sizePolicy.setHeightForWidth(self.sizePolicy().hasHeightForWidth())
+ self.setSizePolicy(sizePolicy)
+ self.setMinimumSize(QtCore.QSize(200, 300))
+ self.setMaximumSize(QtCore.QSize(200, 300))
+ self.verticalLayout = QtWidgets.QVBoxLayout(self)
self.verticalLayout.setContentsMargins(0, 0, -1, -1)
self.verticalLayout.setObjectName("verticalLayout")
- self.option_icon = IconButton(parent=option_card)
+ self.option_icon = IconButton(parent=self)
self.option_icon.setMinimumSize(QtCore.QSize(200, 150))
self.option_icon.setObjectName("option_icon")
_button_font = QtGui.QFont()
_button_font.setBold(True)
_button_font.setPointSize(20)
- self.secondtext = QtWidgets.QLabel(parent=option_card)
+ self.secondtext = QtWidgets.QLabel(parent=self)
self.secondtext.setText("%")
self.secondtext.setStyleSheet("color:white")
self.secondtext.setFont(_button_font)
@@ -230,7 +231,7 @@ def _setupUi(self, option_card):
self.secondtext.setWordWrap(True)
self.secondtext.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
self.secondtext.hide()
- self.line_separator = QtWidgets.QFrame(parent=option_card)
+ self.line_separator = QtWidgets.QFrame(parent=self)
self.line_separator.setFrameShape(QtWidgets.QFrame.Shape.HLine)
self.line_separator.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
self.line_separator.setMinimumSize(150, 2)
@@ -241,7 +242,7 @@ def _setupUi(self, option_card):
0,
QtCore.Qt.AlignmentFlag.AlignHCenter | QtCore.Qt.AlignmentFlag.AlignVCenter,
)
- self.option_text = QtWidgets.QLabel(parent=option_card)
+ self.option_text = QtWidgets.QLabel(parent=self)
self.option_text.setMinimumSize(QtCore.QSize(200, 50))
self.option_text.setObjectName("option_text")
self.option_text.setWordWrap(True)
@@ -252,7 +253,7 @@ def _setupUi(self, option_card):
self.option_text.setPalette(_palette)
self.option_text.setFont(_button_font)
- self.continue_button = IconButton(parent=option_card)
+ self.continue_button = IconButton(parent=self)
sizePolicy = QtWidgets.QSizePolicy(
QtWidgets.QSizePolicy.Policy.MinimumExpanding,
QtWidgets.QSizePolicy.Policy.MinimumExpanding,
@@ -278,12 +279,8 @@ def _setupUi(self, option_card):
QtWidgets.QSizePolicy.Policy.Minimum,
QtWidgets.QSizePolicy.Policy.Expanding,
)
- self._retranslateUi(option_card)
- QtCore.QMetaObject.connectSlotsByName(option_card)
-
- def _retranslateUi(self, option_card):
_translate = QtCore.QCoreApplication.translate
- option_card.setWindowTitle(_translate("option_card", "Frame"))
+ self.setWindowTitle(_translate("option_card", "Frame"))
self.option_text.setText(_translate("option_card", "TextLabel"))
self.continue_button.setProperty(
"button_type", _translate("option_card", "icon")
diff --git a/BlocksScreen/lib/ui/connectionWindow.ui b/BlocksScreen/lib/ui/connectionWindow.ui
deleted file mode 100644
index e495a380..00000000
--- a/BlocksScreen/lib/ui/connectionWindow.ui
+++ /dev/null
@@ -1,1037 +0,0 @@
-
-
- ConnectivityForm
-
-
- Qt::WindowModal
-
-
-
- 0
- 0
- 800
- 480
-
-
-
-
- 0
- 0
-
-
-
-
- 800
- 480
-
-
-
-
- 800
- 480
-
-
-
- Form
-
-
- 1.000000000000000
-
-
- false
-
-
- #ConnectivityForm{
-background-image: url(:/background/media/1st_background.png);
-}
-
-
-
-
-
-
-
- 10
- 380
- 780
- 124
-
-
-
-
- 0
- 0
-
-
-
-
- 780
- 124
-
-
-
-
- 780
- 150
-
-
-
-
- 800
- 80
-
-
-
-
-
-
-
-
-
-
-
- PreferAntialias
-
-
-
- true
-
-
- false
-
-
-
-
-
- QFrame::NoFrame
-
-
- QFrame::Plain
-
-
- 0
-
-
-
- 0
-
-
- 0
-
-
- 5
-
-
- 0
-
-
- 0
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 100
- 80
-
-
-
-
- 100
- 80
-
-
-
-
- 160
- 80
-
-
-
-
-
-
-
-
- 66
- 66
- 66
-
-
-
-
-
-
- 66
- 66
- 66
-
-
-
-
-
-
- 66
- 66
- 66
-
-
-
-
-
-
-
-
- 66
- 66
- 66
-
-
-
-
-
-
- 66
- 66
- 66
-
-
-
-
-
-
- 66
- 66
- 66
-
-
-
-
-
-
-
-
- 66
- 66
- 66
-
-
-
-
-
-
- 66
- 66
- 66
-
-
-
-
-
-
- 66
- 66
- 66
-
-
-
-
-
-
-
-
- false
- PreferAntialias
- false
-
-
-
- BlankCursor
-
-
- true
-
-
- Qt::NoFocus
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
- false
-
-
-
-
-
- Restart Klipper
-
-
-
- :/system_icons/media/btn_icons/restart_klipper.svg
-
-
-
-
- 46
- 42
-
-
-
- false
-
-
- false
-
-
- false
-
-
- 0
-
-
- 0
-
-
- false
-
-
- true
-
-
- :/system/media/btn_icons/restart_klipper.svg
-
-
- true
-
-
- bottom
-
-
-
- 255
- 255
- 255
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 100
- 80
-
-
-
-
- 100
- 80
-
-
-
-
- 80
- 80
-
-
-
- BlankCursor
-
-
- true
-
-
- Qt::NoFocus
-
-
- Qt::NoContextMenu
-
-
- false
-
-
- Reboot
-
-
-
- :/system_icons/media/btn_icons/firmware_restart.svg:/system_icons/media/btn_icons/firmware_restart.svg
-
-
- false
-
-
- false
-
-
- true
-
-
- :/system/media/btn_icons/reboot.svg
-
-
- bottom
-
-
-
- 255
- 255
- 255
-
-
-
- true
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 100
- 80
-
-
-
-
- 100
- 80
-
-
-
-
- 160
- 80
-
-
-
- BlankCursor
-
-
- true
-
-
- Qt::NoFocus
-
-
- Qt::NoContextMenu
-
-
- false
-
-
- Firmware Restart
-
-
-
- :/system_icons/media/btn_icons/firmware_restart.svg:/system_icons/media/btn_icons/firmware_restart.svg
-
-
- false
-
-
- false
-
-
- true
-
-
- :/system/media/btn_icons/restart_firmware.svg
-
-
- true
-
-
- bottom
-
-
-
- 255
- 255
- 255
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 100
- 80
-
-
-
-
- 100
- 80
-
-
-
-
- 80
- 80
-
-
-
-
-
-
-
-
-
-
-
- 13
-
-
-
- true
-
-
- Qt::ClickFocus
-
-
- false
-
-
-
-
-
- Retry
-
-
-
- :/system_icons/media/btn_icons/retry_connection.svg:/system_icons/media/btn_icons/retry_connection.svg
-
-
-
- 16
- 16
-
-
-
- false
-
-
- 0
-
-
- 0
-
-
- false
-
-
- false
-
-
- true
-
-
- bottom
-
-
- :/system/media/btn_icons/restart_printer.svg
-
-
-
- 255
- 255
- 255
-
-
-
- true
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 100
- 80
-
-
-
-
- 100
- 80
-
-
-
-
- 80
- 80
-
-
-
-
-
-
-
-
-
-
-
- 8
-
-
-
- true
-
-
- Qt::ClickFocus
-
-
- false
-
-
-
-
-
- Notifications
-
-
-
- :/system_icons/media/btn_icons/retry_connection.svg:/system_icons/media/btn_icons/retry_connection.svg
-
-
-
- 16
- 16
-
-
-
- false
-
-
- 0
-
-
- 0
-
-
- false
-
-
- false
-
-
- true
-
-
- bottom
-
-
- :/ui/media/btn_icons/notification.svg
-
-
-
- 255
- 255
- 255
-
-
-
- true
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 100
- 80
-
-
-
-
- 100
- 80
-
-
-
-
- 80
- 80
-
-
-
- BlankCursor
-
-
- true
-
-
- Qt::NoFocus
-
-
- Qt::NoContextMenu
-
-
- false
-
-
- Update page
-
-
-
- :/system_icons/media/btn_icons/firmware_restart.svg:/system_icons/media/btn_icons/firmware_restart.svg
-
-
- false
-
-
- false
-
-
- true
-
-
- :/system/media/btn_icons/update-software-icon.svg
-
-
- bottom
-
-
-
- 255
- 255
- 255
-
-
-
- true
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 100
- 80
-
-
-
-
- 100
- 80
-
-
-
-
- 80
- 80
-
-
-
- true
-
-
- Qt::NoFocus
-
-
- Qt::NoContextMenu
-
-
- false
-
-
- Wifi Settings
-
-
-
- :/system_icons/media/btn_icons/retry_connection.svg:/system_icons/media/btn_icons/retry_connection.svg
-
-
- false
-
-
- false
-
-
- true
-
-
- system_control_btn
-
-
- :/network/media/btn_icons/wifi_config.svg
-
-
- true
-
-
- bottom
-
-
-
-
-
-
-
-
- 0
- 0
- 800
- 380
-
-
-
-
- 0
- 0
-
-
-
-
- 800
- 380
-
-
-
-
- 800
- 380
-
-
-
- false
-
-
-
-
-
- QFrame::NoFrame
-
-
- QFrame::Raised
-
-
- -
-
-
- Qt::Vertical
-
-
- QSizePolicy::Minimum
-
-
-
- 775
- 70
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 800
- 380
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- Momcake
- 17
- 75
- false
- true
-
-
-
- color:white
-
-
-
-
-
- Qt::AutoText
-
-
- false
-
-
- Qt::AlignCenter
-
-
- true
-
-
- Qt::NoTextInteraction
-
-
-
-
-
-
-
-
- IconButton
- QPushButton
-
-
-
- BlocksCustomFrame
- QFrame
-
- 1
-
-
-
-
-
-
-
-
-
-
diff --git a/BlocksScreen/lib/ui/controlStackedWidget.ui b/BlocksScreen/lib/ui/controlStackedWidget.ui
deleted file mode 100644
index ea27b531..00000000
--- a/BlocksScreen/lib/ui/controlStackedWidget.ui
+++ /dev/null
@@ -1,5781 +0,0 @@
-
-
- controlStackedWidget
-
-
-
- 0
- 0
- 710
- 410
-
-
-
-
- 0
- 0
-
-
-
-
- 710
- 410
-
-
-
-
- 710
- 410
-
-
-
- StackedWidget
-
-
- 2
-
-
-
-
- 0
- 0
-
-
-
-
- 710
- 400
-
-
-
-
- 720
- 420
-
-
-
- -
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 300
- 60
-
-
-
-
- 16777215
- 60
-
-
-
-
- Momcake
- 24
- true
-
-
-
- background: transparent; color: white;
-
-
- Control
-
-
- Qt::AlignCenter
-
-
- title_text
-
-
-
-
-
- -
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 10
- 80
-
-
-
-
- 250
- 80
-
-
-
-
- Momcake
- 19
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::ContextMenuPolicy::NoContextMenu
-
-
- Qt::LayoutDirection::LeftToRight
-
-
-
-
-
- Z-Tilt
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- :/z_levelling/media/btn_icons/bed_levelling.svg
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 10
- 80
-
-
-
-
- 250
- 80
-
-
-
-
- Momcake
- 19
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::ContextMenuPolicy::NoContextMenu
-
-
- Qt::LayoutDirection::LeftToRight
-
-
-
-
-
- Temp.
-Control
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- :/temperature_related/media/btn_icons/temperature.svg
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 10
- 80
-
-
-
-
- 250
- 80
-
-
-
-
- Momcake
- 19
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::ContextMenuPolicy::NoContextMenu
-
-
- Qt::LayoutDirection::LeftToRight
-
-
-
-
-
- Nozzle
-Calibration
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- :/z_levelling/media/btn_icons/bed_levelling.svg
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 10
- 80
-
-
-
-
- 250
- 80
-
-
-
-
- Momcake
- 19
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::ContextMenuPolicy::NoContextMenu
-
-
- Qt::LayoutDirection::LeftToRight
-
-
-
-
-
- Motion
-Control
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- :/motion/media/btn_icons/axis_maintenance.svg
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 10
- 80
-
-
-
-
- 250
- 80
-
-
-
-
- Momcake
- 19
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::ContextMenuPolicy::NoContextMenu
-
-
- Qt::LayoutDirection::LeftToRight
-
-
-
-
-
- Fans
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- :/temperature_related/media/btn_icons/fan.svg
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 10
- 80
-
-
-
-
- 250
- 80
-
-
-
-
- Momcake
- 19
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::ContextMenuPolicy::NoContextMenu
-
-
- Qt::LayoutDirection::LeftToRight
-
-
-
-
-
- Swap
-Print Core
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- :/extruder_related/media/btn_icons/switch_print_core.svg
-
-
-
-
-
-
-
-
-
-
- 710
- 400
-
-
-
-
- 720
- 420
-
-
-
- -
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
- -
-
-
- true
-
-
-
- 0
- 0
-
-
-
-
- 0
- 0
-
-
-
-
- 16777215
- 60
-
-
-
-
- Momcake
- 24
-
-
-
- background: transparent; color: white;
-
-
- Motion
-
-
- Qt::AlignCenter
-
-
- title_text
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
- Momcake
- 20
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::ContextMenuPolicy::NoContextMenu
-
-
- Qt::LayoutDirection::LeftToRight
-
-
-
-
-
- Back
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- icon
-
-
- :/ui/media/btn_icons/back.svg
-
-
-
-
-
- -
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 10
- 80
-
-
-
-
- 250
- 80
-
-
-
-
- Momcake
- 19
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::ContextMenuPolicy::NoContextMenu
-
-
- Qt::LayoutDirection::LeftToRight
-
-
-
-
-
- Axis
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- :/motion/media/btn_icons/axis_maintenance.svg
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 10
- 80
-
-
-
-
- 250
- 80
-
-
-
-
- Momcake
- 19
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::ContextMenuPolicy::NoContextMenu
-
-
- Qt::LayoutDirection::LeftToRight
-
-
-
-
-
- Disable
-Steppers
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- :/motion/media/btn_icons/disable_steppers.svg
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 10
- 80
-
-
-
-
- 250
- 80
-
-
-
-
- Momcake
- 19
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::ContextMenuPolicy::NoContextMenu
-
-
- Qt::LayoutDirection::LeftToRight
-
-
-
-
-
- Extrude
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- :/extruder_related/media/btn_icons/extrude.svg
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 10
- 80
-
-
-
-
- 250
- 80
-
-
-
-
- Momcake
- 19
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::ContextMenuPolicy::NoContextMenu
-
-
- Qt::LayoutDirection::LeftToRight
-
-
-
-
-
- Auto
-Home
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- :/motion/media/btn_icons/home_all.svg
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 10
- 80
-
-
-
-
- 250
- 80
-
-
-
-
-
-
-
-
-
-
-
- 710
- 400
-
-
-
-
- 720
- 420
-
-
-
- -
-
-
- Qt::Orientation::Vertical
-
-
- QSizePolicy::Policy::Minimum
-
-
-
- 20
- 24
-
-
-
-
- -
-
-
-
-
-
- Qt::Orientation::Horizontal
-
-
- QSizePolicy::Policy::Minimum
-
-
-
- 60
- 60
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 0
- 60
-
-
-
-
- 16777215
- 60
-
-
-
-
- Momcake
- 24
-
-
-
- background: transparent; color: white;
-
-
- Extrude
-
-
- Qt::AlignCenter
-
-
- title_text
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
- Momcake
- 20
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::ContextMenuPolicy::NoContextMenu
-
-
- Qt::LayoutDirection::LeftToRight
-
-
-
-
-
- Back
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- icon
-
-
- :/ui/media/btn_icons/back.svg
-
-
-
-
-
- -
-
-
- 5
-
-
- 5
-
-
- 5
-
-
- 5
-
-
-
-
-
-
- 0
- 80
-
-
-
-
- 16777215
- 16777215
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
-
-
- 14
-
-
-
- Extrude Length (mm)
-
-
- Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
-
-
- true
-
-
-
-
- 0
- 20
- 681
- 61
-
-
-
-
- 5
-
-
- 5
-
-
- 5
-
-
- 5
-
-
- 5
-
-
-
-
-
-
- 0
- 0
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
-
-
- 16
- false
-
-
-
- 10
-
-
- true
-
-
- true
-
-
- false
-
-
- false
-
-
- true
-
-
- normal
-
-
- extrude_select_length_group
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
-
-
- 16
- false
-
-
-
- 50
-
-
- true
-
-
- false
-
-
- false
-
-
- true
-
-
- normal
-
-
- extrude_select_length_group
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
-
-
- 16
- false
-
-
-
- 100
-
-
- true
-
-
- false
-
-
- false
-
-
- true
-
-
- normal
-
-
- extrude_select_length_group
-
-
-
-
-
-
-
- -
-
-
-
- 0
- 80
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
-
-
- 14
-
-
-
- Extrude Feedrate (mm/s)
-
-
- true
-
-
-
-
- 0
- 19
- 681
- 61
-
-
-
-
- 5
-
-
- 5
-
-
- 5
-
-
- 5
-
-
- 5
-
-
-
-
-
-
- 0
- 0
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
-
-
- 16
- false
-
-
-
- 2
-
-
- true
-
-
- true
-
-
- false
-
-
- false
-
-
- true
-
-
- normal
-
-
- extrude_select_feedrate_group
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
-
-
- 16
- false
-
-
-
- 4
-
-
- true
-
-
- false
-
-
- false
-
-
- true
-
-
- normal
-
-
- extrude_select_feedrate_group
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
-
-
- 16
- false
-
-
-
- 8
-
-
- true
-
-
- false
-
-
- false
-
-
- true
-
-
- normal
-
-
- extrude_select_feedrate_group
-
-
-
-
-
-
-
- -
-
-
- 0
-
-
- 5
-
-
-
-
-
- 5
-
-
- 5
-
-
- 5
-
-
- 5
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 250
- 80
-
-
-
-
- 250
- 80
-
-
-
-
- Momcake
- 20
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::ContextMenuPolicy::NoContextMenu
-
-
- Qt::LayoutDirection::LeftToRight
-
-
-
-
-
- Retract
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- :/extruder_related/media/btn_icons/extrude.svg
-
-
-
- -
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
- Momcake
- 16
-
-
-
-
-
-
-
-
-
- Qt::AlignCenter
-
-
- :/extruder_related/media/btn_icons/nozzle.svg
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 250
- 80
-
-
-
-
- 250
- 80
-
-
-
-
- Momcake
- 20
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::ContextMenuPolicy::NoContextMenu
-
-
- Qt::LayoutDirection::LeftToRight
-
-
-
-
-
- Extrude
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- :/extruder_related/media/btn_icons/extrude.svg
-
-
-
-
-
- -
-
-
- 5
-
-
- 5
-
-
- 5
-
-
- 5
-
-
-
-
-
- true
-
-
-
- 0
- 0
-
-
-
-
- 0
- 0
-
-
-
-
- Montserrat
- 14
-
-
-
- background: transparent; color: white;
-
-
- Nozzle heating to extrude
-
-
- Qt::AlignCenter
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 710
- 400
-
-
-
-
- 720
- 420
-
-
-
-
- true
-
-
-
- 160
- 350
- 51
- 41
-
-
-
-
- Montserrat
- 14
-
-
-
- background: transparent; color: white;
-
-
- X:
-
-
-
-
- true
-
-
-
- 340
- 350
- 51
- 41
-
-
-
-
- Montserrat
- 14
-
-
-
- background: transparent; color: white;
-
-
- Y:
-
-
-
-
- true
-
-
-
- 500
- 350
- 51
- 41
-
-
-
-
- Montserrat
- 14
-
-
-
- background: transparent; color: white;
-
-
- Z:
-
-
-
-
- true
-
-
-
- 550
- 350
- 91
- 41
-
-
-
-
- Montserrat
- 14
-
-
-
- background: transparent; color: white;
-
-
- 0
-
-
-
-
- true
-
-
-
- 370
- 350
- 91
- 41
-
-
-
-
- Montserrat
- 14
-
-
-
- background: transparent; color: white;
-
-
- 0
-
-
-
-
- true
-
-
-
- 190
- 350
- 81
- 41
-
-
-
-
- Montserrat
- 14
-
-
-
- background: transparent; color: white;
-
-
- 0
-
-
-
-
-
- 10
- 23
- 691
- 81
-
-
-
- -
-
-
- Qt::Orientation::Horizontal
-
-
- QSizePolicy::Policy::Minimum
-
-
-
- 60
- 20
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 0
- 0
-
-
-
-
- 16777215
- 60
-
-
-
-
- Momcake
- 24
-
-
-
- background: transparent; color: white;
-
-
- Move Axis
-
-
- Qt::AlignCenter
-
-
- title_text
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
- Momcake
- 20
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::ContextMenuPolicy::NoContextMenu
-
-
- Qt::LayoutDirection::LeftToRight
-
-
-
-
-
- Back
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- icon
-
-
- :/ui/media/btn_icons/back.svg
-
-
-
-
-
-
-
-
- 630
- 130
- 71
- 201
-
-
-
- -
-
-
- true
-
-
-
- 1
- 1
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
-
-
-
-
- 16
- 16
-
-
-
- false
-
-
- false
-
-
- true
-
-
- icon
-
-
- :/arrow_icons/media/btn_icons/up_arrow.svg
-
-
-
- -
-
-
- true
-
-
-
- 1
- 1
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
-
-
-
-
- 16
- 16
-
-
-
- false
-
-
- false
-
-
- true
-
-
- icon
-
-
- :/arrow_icons/media/btn_icons/down_arrow.svg
-
-
-
-
-
-
-
-
- 10
- 90
- 81
- 301
-
-
-
-
- 5
-
-
- 5
-
-
- 5
-
-
- 5
-
- -
-
-
- true
-
-
-
- 1
- 1
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
-
-
-
-
- 16
- 16
-
-
-
- false
-
-
- false
-
-
- true
-
-
- icon
-
-
- :/motion/media/btn_icons/home_x.svg
-
-
-
- -
-
-
- true
-
-
-
- 1
- 1
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
-
-
-
-
- 16
- 16
-
-
-
- false
-
-
- false
-
-
- true
-
-
- icon
-
-
- :/motion/media/btn_icons/home_y.svg
-
-
-
- -
-
-
- true
-
-
-
- 1
- 1
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
-
-
-
-
- 16
- 16
-
-
-
- false
-
-
- false
-
-
- true
-
-
- icon
-
-
- :/motion/media/btn_icons/home_z.svg
-
-
-
- -
-
-
- true
-
-
-
- 1
- 1
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
-
-
-
-
- 16
- 16
-
-
-
- false
-
-
- false
-
-
- true
-
-
- icon
-
-
- :/motion/media/btn_icons/home_all.svg
-
-
-
-
-
-
-
-
- 96
- 240
- 100
- 100
-
-
-
-
- 60
- 60
-
-
-
-
- 100
- 100
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
-
-
- 14
-
-
-
- 25
-
-
- true
-
-
- true
-
-
- true
-
-
- axis_select_speed_group
-
-
-
-
-
- 205
- 240
- 100
- 100
-
-
-
-
- 60
- 60
-
-
-
-
- 100
- 100
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
-
-
- 14
-
-
-
- 50
-
-
- true
-
-
- false
-
-
- axis_select_speed_group
-
-
-
-
-
- 315
- 240
- 100
- 100
-
-
-
-
- 60
- 60
-
-
-
-
- 100
- 100
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
-
-
- 14
-
-
-
- 100
-
-
- true
-
-
- false
-
-
- axis_select_speed_group
-
-
-
-
-
- 109
- 216
- 261
- 21
-
-
-
-
- 14
-
-
-
- color:white
-
-
- Move Speed mm/s
-
-
-
-
-
- 96
- 110
- 100
- 100
-
-
-
-
- 60
- 60
-
-
-
-
- 100
- 100
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
-
-
- 14
-
-
-
- 1
-
-
- true
-
-
- true
-
-
- true
-
-
- axis_select_length_group
-
-
-
-
-
- 204
- 110
- 100
- 100
-
-
-
-
- 60
- 60
-
-
-
-
- 100
- 100
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
-
-
- 14
-
-
-
- 10
-
-
- true
-
-
- false
-
-
- axis_select_length_group
-
-
-
-
-
- 315
- 110
- 100
- 100
-
-
-
-
- 60
- 60
-
-
-
-
- 100
- 100
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
-
-
- 14
-
-
-
- 100
-
-
- true
-
-
- false
-
-
- axis_select_length_group
-
-
-
-
-
- 109
- 85
- 261
- 21
-
-
-
-
- 14
-
-
-
- color:white
-
-
- Move Length mm
-
-
-
-
-
- 440
- 128
- 196
- 204
-
-
-
-
- 0
-
-
- 5
-
-
- 0
-
-
- 5
-
- -
-
-
- true
-
-
-
- 1
- 1
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
-
-
-
-
- 16
- 16
-
-
-
- false
-
-
- false
-
-
- true
-
-
- icon
-
-
- :/arrow_icons/media/btn_icons/left_arrow.svg
-
-
-
- -
-
-
- true
-
-
-
- 1
- 1
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
-
-
-
-
- 16
- 16
-
-
-
- false
-
-
- false
-
-
- true
-
-
- icon
-
-
- :/arrow_icons/media/btn_icons/right_arrow.svg
-
-
-
- -
-
-
- true
-
-
-
- 1
- 1
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
-
-
-
-
- 60
- 60
-
-
-
- false
-
-
- false
-
-
- true
-
-
- icon
-
-
- :/arrow_icons/media/btn_icons/down_arrow.svg
-
-
-
- -
-
-
- true
-
-
-
- 1
- 1
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
-
-
-
-
- 60
- 60
-
-
-
- false
-
-
- false
-
-
- true
-
-
- icon
-
-
- :/arrow_icons/media/btn_icons/up_arrow.svg
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
- true
-
-
- icon
-
-
- :/ui/media/btn_icons/center_arrows.svg
-
-
-
-
-
-
-
-
-
- 710
- 400
-
-
-
-
- 720
- 420
-
-
-
- -
-
-
- Qt::Orientation::Vertical
-
-
- QSizePolicy::Policy::Minimum
-
-
-
- 20
- 24
-
-
-
-
- -
-
-
-
-
-
- Qt::Orientation::Horizontal
-
-
- QSizePolicy::Policy::Minimum
-
-
-
- 60
- 20
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 0
- 60
-
-
-
-
- 16777215
- 60
-
-
-
-
- Momcake
- 24
- true
-
-
-
- Qt::LayoutDirection::RightToLeft
-
-
- background: transparent; color: white;
-
-
- Temperature
-
-
- Qt::AlignCenter
-
-
- title_text
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
- Momcake
- 20
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::ContextMenuPolicy::NoContextMenu
-
-
- Qt::LayoutDirection::LeftToRight
-
-
-
-
-
- Back
-
-
- false
-
-
- true
-
-
- icon
-
-
- :/ui/media/btn_icons/back.svg
-
-
-
-
-
- -
-
-
- Qt::Orientation::Vertical
-
-
- QSizePolicy::Policy::Minimum
-
-
-
- 20
- 35
-
-
-
-
- -
-
-
- 5
-
-
- 5
-
-
- 5
-
-
- 5
-
-
- 0
-
-
-
-
-
- 5
-
-
- QLayout::SizeConstraint::SetMinimumSize
-
-
- 5
-
-
- 5
-
-
- 5
-
-
- 5
-
-
-
-
-
-
- 1
- 1
-
-
-
-
- 200
- 60
-
-
-
-
- 120
- 60
-
-
-
-
- 11
-
-
-
- false
-
-
-
-
-
- true
-
-
- :/extruder_related/media/btn_icons/nozzle.svg
-
-
- extruder_temperature_display
-
-
- secondary_display
-
-
-
- -
-
-
-
- 1
- 1
-
-
-
-
- 200
- 60
-
-
-
-
- 120
- 60
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 50
- 50
- 50
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 50
- 50
- 50
-
-
-
-
-
-
- 50
- 50
- 50
-
-
-
-
-
-
- 60
- 60
- 60
-
-
-
-
-
-
- 60
- 60
- 60
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 50
- 50
- 50
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 50
- 50
- 50
-
-
-
-
-
-
- 50
- 50
- 50
-
-
-
-
-
-
- 60
- 60
- 60
-
-
-
-
-
-
- 60
- 60
- 60
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 50
- 50
- 50
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 50
- 50
- 50
-
-
-
-
-
-
- 50
- 50
- 50
-
-
-
-
-
-
- 60
- 60
- 60
-
-
-
-
-
-
- 60
- 60
- 60
-
-
-
-
-
-
-
-
- 11
-
-
-
-
-
-
- false
-
-
- false
-
-
- true
-
-
- :/temperature_related/media/btn_icons/temperature_plate.svg
-
-
- bed_temperature_display
-
-
- secondary_display
-
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 250
- 80
-
-
-
-
- 250
- 80
-
-
-
-
- Momcake
- 19
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::ContextMenuPolicy::NoContextMenu
-
-
- Qt::LayoutDirection::LeftToRight
-
-
-
-
-
- Cooldown
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- :/temperature_related/media/btn_icons/cooldown.svg
-
-
-
- -
-
-
- Qt::Orientation::Vertical
-
-
- QSizePolicy::Policy::Minimum
-
-
-
- 20
- 50
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 250
- 80
-
-
-
-
- 250
- 80
-
-
-
-
- Momcake
- 19
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::ContextMenuPolicy::NoContextMenu
-
-
- Qt::LayoutDirection::LeftToRight
-
-
-
-
-
- Heatsoak
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- :/temperature_related/media/btn_icons/heatsoak_icon.svg
-
-
-
-
-
- -
-
-
- Qt::Orientation::Vertical
-
-
- QSizePolicy::Policy::Minimum
-
-
-
- 20
- 8
-
-
-
-
-
-
-
-
-
- 710
- 400
-
-
-
-
- 720
- 420
-
-
-
-
- true
-
-
-
- 290
- 210
- 31
- 41
-
-
-
-
- Montserrat
- 14
-
-
-
- background: transparent; color: white;
-
-
- Z
-
-
-
-
- true
-
-
-
- 340
- 210
- 31
- 41
-
-
-
-
- Montserrat
- 14
-
-
-
- background: transparent; color: white;
-
-
- 0
-
-
-
-
-
- 10
- 10
- 681
- 62
-
-
-
- -
-
-
- Qt::Orientation::Horizontal
-
-
- QSizePolicy::Policy::Minimum
-
-
-
- 60
- 20
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- Momcake
- 24
-
-
-
- background: transparent; color: white;
-
-
- Z Adjustment
-
-
- Qt::AlignCenter
-
-
- title_text
-
-
-
- -
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
- true
-
-
- :/button_borders/media/btn_icons/back.svg
-
-
- icon
-
-
-
-
-
-
-
-
- 600
- 110
- 90
- 177
-
-
-
-
- 5
-
-
- 5
-
-
- 5
-
-
- 5
-
- -
-
-
-
- 80
- 80
-
-
-
-
- 80
- 80
-
-
-
-
- Momcake
- 36
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::ContextMenuPolicy::NoContextMenu
-
-
- Qt::LayoutDirection::LeftToRight
-
-
-
-
-
- ^
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- icon
-
-
- :/arrow_icons/media/btn_icons/up_arrow.svg
-
-
-
- -
-
-
-
- 80
- 80
-
-
-
-
- 80
- 80
-
-
-
-
- Momcake
- 26
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::ContextMenuPolicy::NoContextMenu
-
-
- Qt::LayoutDirection::LeftToRight
-
-
-
-
-
- v
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- icon
-
-
- :/arrow_icons/media/btn_icons/down_arrow.svg
-
-
-
-
-
-
-
-
- 170
- 80
- 371
- 51
-
-
-
-
- 10
- 10
-
-
-
-
- Momcake
- 20
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::ContextMenuPolicy::NoContextMenu
-
-
- Qt::LayoutDirection::LeftToRight
-
-
-
-
-
- select length
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
-
-
-
-
-
-
-
-
-
- normal
-
-
-
-
-
- 20
- 320
- 671
- 71
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 10
- 0
-
-
-
-
- Momcake
- 20
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::ContextMenuPolicy::NoContextMenu
-
-
- Qt::LayoutDirection::LeftToRight
-
-
-
-
-
- Confirm
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- :/dialog/media/btn_icons/yes.svg
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 10
- 0
-
-
-
-
- Momcake
- 20
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::ContextMenuPolicy::NoContextMenu
-
-
- Qt::LayoutDirection::LeftToRight
-
-
-
-
-
- Cancel
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- :/dialog/media/btn_icons/no.svg
-
-
-
-
-
-
-
-
-
- 710
- 400
-
-
-
-
- 720
- 420
-
-
-
-
-
- 10
- 11
- 691
- 71
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- Momcake
- 24
-
-
-
- background: transparent; color: white;
-
-
- PRINTER SETTINGS
-
-
- Qt::AlignCenter
-
-
- title_text
-
-
-
- -
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
- Momcake
- 20
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::ContextMenuPolicy::NoContextMenu
-
-
- Qt::LayoutDirection::LeftToRight
-
-
-
-
-
- Back
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- icon
-
-
- :/ui/media/btn_icons/back.svg
-
-
-
-
-
-
-
-
- 10
- 90
- 691
- 301
-
-
-
-
-
-
-
- -
-
-
- Qt::Orientation::Vertical
-
-
- QSizePolicy::Policy::Minimum
-
-
-
- 20
- 24
-
-
-
-
- -
-
-
-
-
-
- Qt::Orientation::Horizontal
-
-
- QSizePolicy::Policy::Minimum
-
-
-
- 60
- 20
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- Momcake
- 24
-
-
-
- background: transparent; color: white;
-
-
- Fans
-
-
- Qt::AlignCenter
-
-
- title_text
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
- Momcake
- 20
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::ContextMenuPolicy::NoContextMenu
-
-
- Qt::LayoutDirection::LeftToRight
-
-
-
-
-
- Back
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- icon
-
-
- :/ui/media/btn_icons/back.svg
-
-
-
-
-
- -
-
-
- Qt::Orientation::Vertical
-
-
-
- 20
- 111
-
-
-
-
- -
-
-
- -
-
-
- Qt::Orientation::Vertical
-
-
-
- 20
- 111
-
-
-
-
-
-
-
-
-
- BlocksCustomButton
- QPushButton
-
-
-
- IconButton
- QPushButton
-
-
-
- GroupButton
- QPushButton
-
-
-
- DisplayButton
- QPushButton
-
-
-
- BlocksLabel
- QLabel
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/BlocksScreen/lib/ui/controlStackedWidget_ui.py b/BlocksScreen/lib/ui/controlStackedWidget_ui.py
deleted file mode 100644
index 95417c09..00000000
--- a/BlocksScreen/lib/ui/controlStackedWidget_ui.py
+++ /dev/null
@@ -1,2186 +0,0 @@
-# Form implementation generated from reading ui file 'BlocksScreen/lib/ui/controlStackedWidget.ui'
-#
-# Created by: PyQt6 UI code generator 6.7.1
-#
-# WARNING: Any manual changes made to this file will be lost when pyuic6 is
-# run again. Do not edit this file unless you know what you are doing.
-
-
-from PyQt6 import QtCore, QtGui, QtWidgets
-
-
-class Ui_controlStackedWidget(object):
- def setupUi(self, controlStackedWidget):
- controlStackedWidget.setObjectName("controlStackedWidget")
- controlStackedWidget.resize(710, 410)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(controlStackedWidget.sizePolicy().hasHeightForWidth())
- controlStackedWidget.setSizePolicy(sizePolicy)
- controlStackedWidget.setMinimumSize(QtCore.QSize(710, 410))
- controlStackedWidget.setMaximumSize(QtCore.QSize(710, 410))
- self.control_page = QtWidgets.QWidget()
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.control_page.sizePolicy().hasHeightForWidth())
- self.control_page.setSizePolicy(sizePolicy)
- self.control_page.setMinimumSize(QtCore.QSize(710, 400))
- self.control_page.setMaximumSize(QtCore.QSize(720, 420))
- self.control_page.setObjectName("control_page")
- self.verticalLayout = QtWidgets.QVBoxLayout(self.control_page)
- self.verticalLayout.setObjectName("verticalLayout")
- self.cp_header_layout = QtWidgets.QHBoxLayout()
- self.cp_header_layout.setObjectName("cp_header_layout")
- self.cp_header_title = QtWidgets.QLabel(parent=self.control_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.cp_header_title.sizePolicy().hasHeightForWidth())
- self.cp_header_title.setSizePolicy(sizePolicy)
- self.cp_header_title.setMinimumSize(QtCore.QSize(300, 60))
- self.cp_header_title.setMaximumSize(QtCore.QSize(16777215, 60))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(24)
- font.setBold(True)
- self.cp_header_title.setFont(font)
- self.cp_header_title.setStyleSheet("background: transparent; color: white;")
- self.cp_header_title.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.cp_header_title.setObjectName("cp_header_title")
- self.cp_header_layout.addWidget(self.cp_header_title)
- self.verticalLayout.addLayout(self.cp_header_layout)
- self.cp_content_layout = QtWidgets.QGridLayout()
- self.cp_content_layout.setObjectName("cp_content_layout")
- self.cp_z_tilt_btn = BlocksCustomButton(parent=self.control_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.cp_z_tilt_btn.sizePolicy().hasHeightForWidth())
- self.cp_z_tilt_btn.setSizePolicy(sizePolicy)
- self.cp_z_tilt_btn.setMinimumSize(QtCore.QSize(10, 80))
- self.cp_z_tilt_btn.setMaximumSize(QtCore.QSize(250, 80))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(19)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.cp_z_tilt_btn.setFont(font)
- self.cp_z_tilt_btn.setMouseTracking(False)
- self.cp_z_tilt_btn.setTabletTracking(True)
- self.cp_z_tilt_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.cp_z_tilt_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.cp_z_tilt_btn.setStyleSheet("")
- self.cp_z_tilt_btn.setAutoDefault(False)
- self.cp_z_tilt_btn.setFlat(True)
- self.cp_z_tilt_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/z_levelling/media/btn_icons/bed_levelling.svg"))
- self.cp_z_tilt_btn.setObjectName("cp_z_tilt_btn")
- self.cp_content_layout.addWidget(self.cp_z_tilt_btn, 1, 1, 1, 1)
- self.cp_temperature_btn = BlocksCustomButton(parent=self.control_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.cp_temperature_btn.sizePolicy().hasHeightForWidth())
- self.cp_temperature_btn.setSizePolicy(sizePolicy)
- self.cp_temperature_btn.setMinimumSize(QtCore.QSize(10, 80))
- self.cp_temperature_btn.setMaximumSize(QtCore.QSize(250, 80))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(19)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.cp_temperature_btn.setFont(font)
- self.cp_temperature_btn.setMouseTracking(False)
- self.cp_temperature_btn.setTabletTracking(True)
- self.cp_temperature_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.cp_temperature_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.cp_temperature_btn.setStyleSheet("")
- self.cp_temperature_btn.setAutoDefault(False)
- self.cp_temperature_btn.setFlat(True)
- self.cp_temperature_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/temperature_related/media/btn_icons/temperature.svg"))
- self.cp_temperature_btn.setObjectName("cp_temperature_btn")
- self.cp_content_layout.addWidget(self.cp_temperature_btn, 0, 1, 1, 1)
- self.cp_nozzles_calibration_btn = BlocksCustomButton(parent=self.control_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.cp_nozzles_calibration_btn.sizePolicy().hasHeightForWidth())
- self.cp_nozzles_calibration_btn.setSizePolicy(sizePolicy)
- self.cp_nozzles_calibration_btn.setMinimumSize(QtCore.QSize(10, 80))
- self.cp_nozzles_calibration_btn.setMaximumSize(QtCore.QSize(250, 80))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(19)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.cp_nozzles_calibration_btn.setFont(font)
- self.cp_nozzles_calibration_btn.setMouseTracking(False)
- self.cp_nozzles_calibration_btn.setTabletTracking(True)
- self.cp_nozzles_calibration_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.cp_nozzles_calibration_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.cp_nozzles_calibration_btn.setStyleSheet("")
- self.cp_nozzles_calibration_btn.setAutoDefault(False)
- self.cp_nozzles_calibration_btn.setFlat(True)
- self.cp_nozzles_calibration_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/z_levelling/media/btn_icons/bed_levelling.svg"))
- self.cp_nozzles_calibration_btn.setObjectName("cp_nozzles_calibration_btn")
- self.cp_content_layout.addWidget(self.cp_nozzles_calibration_btn, 1, 0, 1, 1)
- self.cp_motion_btn = BlocksCustomButton(parent=self.control_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.cp_motion_btn.sizePolicy().hasHeightForWidth())
- self.cp_motion_btn.setSizePolicy(sizePolicy)
- self.cp_motion_btn.setMinimumSize(QtCore.QSize(10, 80))
- self.cp_motion_btn.setMaximumSize(QtCore.QSize(250, 80))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(19)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.cp_motion_btn.setFont(font)
- self.cp_motion_btn.setMouseTracking(False)
- self.cp_motion_btn.setTabletTracking(True)
- self.cp_motion_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.cp_motion_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.cp_motion_btn.setStyleSheet("")
- self.cp_motion_btn.setAutoDefault(False)
- self.cp_motion_btn.setFlat(True)
- self.cp_motion_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/motion/media/btn_icons/axis_maintenance.svg"))
- self.cp_motion_btn.setObjectName("cp_motion_btn")
- self.cp_content_layout.addWidget(self.cp_motion_btn, 0, 0, 1, 1)
- self.cp_fans_btn = BlocksCustomButton(parent=self.control_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.cp_fans_btn.sizePolicy().hasHeightForWidth())
- self.cp_fans_btn.setSizePolicy(sizePolicy)
- self.cp_fans_btn.setMinimumSize(QtCore.QSize(10, 80))
- self.cp_fans_btn.setMaximumSize(QtCore.QSize(250, 80))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(19)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.cp_fans_btn.setFont(font)
- self.cp_fans_btn.setMouseTracking(False)
- self.cp_fans_btn.setTabletTracking(True)
- self.cp_fans_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.cp_fans_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.cp_fans_btn.setStyleSheet("")
- self.cp_fans_btn.setAutoDefault(False)
- self.cp_fans_btn.setFlat(True)
- self.cp_fans_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/temperature_related/media/btn_icons/fan.svg"))
- self.cp_fans_btn.setObjectName("cp_fans_btn")
- self.cp_content_layout.addWidget(self.cp_fans_btn, 2, 0, 1, 1)
- self.cp_switch_print_core_btn = BlocksCustomButton(parent=self.control_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.cp_switch_print_core_btn.sizePolicy().hasHeightForWidth())
- self.cp_switch_print_core_btn.setSizePolicy(sizePolicy)
- self.cp_switch_print_core_btn.setMinimumSize(QtCore.QSize(10, 80))
- self.cp_switch_print_core_btn.setMaximumSize(QtCore.QSize(250, 80))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(19)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.cp_switch_print_core_btn.setFont(font)
- self.cp_switch_print_core_btn.setMouseTracking(False)
- self.cp_switch_print_core_btn.setTabletTracking(True)
- self.cp_switch_print_core_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.cp_switch_print_core_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.cp_switch_print_core_btn.setStyleSheet("")
- self.cp_switch_print_core_btn.setAutoDefault(False)
- self.cp_switch_print_core_btn.setFlat(True)
- self.cp_switch_print_core_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/extruder_related/media/btn_icons/switch_print_core.svg"))
- self.cp_switch_print_core_btn.setObjectName("cp_switch_print_core_btn")
- self.cp_content_layout.addWidget(self.cp_switch_print_core_btn, 2, 1, 1, 1)
- self.verticalLayout.addLayout(self.cp_content_layout)
- controlStackedWidget.addWidget(self.control_page)
- self.motion_page = QtWidgets.QWidget()
- self.motion_page.setMinimumSize(QtCore.QSize(710, 400))
- self.motion_page.setMaximumSize(QtCore.QSize(720, 420))
- self.motion_page.setObjectName("motion_page")
- self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.motion_page)
- self.verticalLayout_2.setObjectName("verticalLayout_2")
- self.mp_header_layout = QtWidgets.QHBoxLayout()
- self.mp_header_layout.setObjectName("mp_header_layout")
- self.widget = QtWidgets.QWidget(parent=self.motion_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.widget.sizePolicy().hasHeightForWidth())
- self.widget.setSizePolicy(sizePolicy)
- self.widget.setMinimumSize(QtCore.QSize(60, 60))
- self.widget.setMaximumSize(QtCore.QSize(60, 60))
- self.widget.setObjectName("widget")
- self.mp_header_layout.addWidget(self.widget)
- self.mp_header_title = QtWidgets.QLabel(parent=self.motion_page)
- self.mp_header_title.setEnabled(True)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.mp_header_title.sizePolicy().hasHeightForWidth())
- self.mp_header_title.setSizePolicy(sizePolicy)
- self.mp_header_title.setMinimumSize(QtCore.QSize(0, 0))
- self.mp_header_title.setMaximumSize(QtCore.QSize(16777215, 60))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(24)
- self.mp_header_title.setFont(font)
- self.mp_header_title.setStyleSheet("background: transparent; color: white;")
- self.mp_header_title.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.mp_header_title.setObjectName("mp_header_title")
- self.mp_header_layout.addWidget(self.mp_header_title)
- self.mp_back_btn = IconButton(parent=self.motion_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.mp_back_btn.sizePolicy().hasHeightForWidth())
- self.mp_back_btn.setSizePolicy(sizePolicy)
- self.mp_back_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.mp_back_btn.setMaximumSize(QtCore.QSize(60, 60))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(20)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.mp_back_btn.setFont(font)
- self.mp_back_btn.setMouseTracking(False)
- self.mp_back_btn.setTabletTracking(True)
- self.mp_back_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.mp_back_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.mp_back_btn.setStyleSheet("")
- self.mp_back_btn.setAutoDefault(False)
- self.mp_back_btn.setFlat(True)
- self.mp_back_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/back.svg"))
- self.mp_back_btn.setObjectName("mp_back_btn")
- self.mp_header_layout.addWidget(self.mp_back_btn)
- self.verticalLayout_2.addLayout(self.mp_header_layout)
- self.cp_content_layout_2 = QtWidgets.QGridLayout()
- self.cp_content_layout_2.setObjectName("cp_content_layout_2")
- self.motion_move_axis_btn = BlocksCustomButton(parent=self.motion_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.motion_move_axis_btn.sizePolicy().hasHeightForWidth())
- self.motion_move_axis_btn.setSizePolicy(sizePolicy)
- self.motion_move_axis_btn.setMinimumSize(QtCore.QSize(10, 80))
- self.motion_move_axis_btn.setMaximumSize(QtCore.QSize(250, 80))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(19)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.motion_move_axis_btn.setFont(font)
- self.motion_move_axis_btn.setMouseTracking(False)
- self.motion_move_axis_btn.setTabletTracking(True)
- self.motion_move_axis_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.motion_move_axis_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.motion_move_axis_btn.setStyleSheet("")
- self.motion_move_axis_btn.setAutoDefault(False)
- self.motion_move_axis_btn.setFlat(True)
- self.motion_move_axis_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/motion/media/btn_icons/axis_maintenance.svg"))
- self.motion_move_axis_btn.setObjectName("motion_move_axis_btn")
- self.cp_content_layout_2.addWidget(self.motion_move_axis_btn, 1, 0, 1, 1)
- self.motion_disable_steppers_btn = BlocksCustomButton(parent=self.motion_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.motion_disable_steppers_btn.sizePolicy().hasHeightForWidth())
- self.motion_disable_steppers_btn.setSizePolicy(sizePolicy)
- self.motion_disable_steppers_btn.setMinimumSize(QtCore.QSize(10, 80))
- self.motion_disable_steppers_btn.setMaximumSize(QtCore.QSize(250, 80))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(19)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.motion_disable_steppers_btn.setFont(font)
- self.motion_disable_steppers_btn.setMouseTracking(False)
- self.motion_disable_steppers_btn.setTabletTracking(True)
- self.motion_disable_steppers_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.motion_disable_steppers_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.motion_disable_steppers_btn.setStyleSheet("")
- self.motion_disable_steppers_btn.setAutoDefault(False)
- self.motion_disable_steppers_btn.setFlat(True)
- self.motion_disable_steppers_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/motion/media/btn_icons/disable_steppers.svg"))
- self.motion_disable_steppers_btn.setObjectName("motion_disable_steppers_btn")
- self.cp_content_layout_2.addWidget(self.motion_disable_steppers_btn, 0, 1, 1, 1)
- self.motion_extrude_btn = BlocksCustomButton(parent=self.motion_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.motion_extrude_btn.sizePolicy().hasHeightForWidth())
- self.motion_extrude_btn.setSizePolicy(sizePolicy)
- self.motion_extrude_btn.setMinimumSize(QtCore.QSize(10, 80))
- self.motion_extrude_btn.setMaximumSize(QtCore.QSize(250, 80))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(19)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.motion_extrude_btn.setFont(font)
- self.motion_extrude_btn.setMouseTracking(False)
- self.motion_extrude_btn.setTabletTracking(True)
- self.motion_extrude_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.motion_extrude_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.motion_extrude_btn.setStyleSheet("")
- self.motion_extrude_btn.setAutoDefault(False)
- self.motion_extrude_btn.setFlat(True)
- self.motion_extrude_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/extruder_related/media/btn_icons/extrude.svg"))
- self.motion_extrude_btn.setObjectName("motion_extrude_btn")
- self.cp_content_layout_2.addWidget(self.motion_extrude_btn, 1, 1, 1, 1)
- self.motion_auto_home_btn = BlocksCustomButton(parent=self.motion_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.motion_auto_home_btn.sizePolicy().hasHeightForWidth())
- self.motion_auto_home_btn.setSizePolicy(sizePolicy)
- self.motion_auto_home_btn.setMinimumSize(QtCore.QSize(10, 80))
- self.motion_auto_home_btn.setMaximumSize(QtCore.QSize(250, 80))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(19)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.motion_auto_home_btn.setFont(font)
- self.motion_auto_home_btn.setMouseTracking(False)
- self.motion_auto_home_btn.setTabletTracking(True)
- self.motion_auto_home_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.motion_auto_home_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.motion_auto_home_btn.setStyleSheet("")
- self.motion_auto_home_btn.setAutoDefault(False)
- self.motion_auto_home_btn.setFlat(True)
- self.motion_auto_home_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/motion/media/btn_icons/home_all.svg"))
- self.motion_auto_home_btn.setObjectName("motion_auto_home_btn")
- self.cp_content_layout_2.addWidget(self.motion_auto_home_btn, 0, 0, 1, 1)
- self.blank = QtWidgets.QWidget(parent=self.motion_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.blank.sizePolicy().hasHeightForWidth())
- self.blank.setSizePolicy(sizePolicy)
- self.blank.setMinimumSize(QtCore.QSize(10, 80))
- self.blank.setMaximumSize(QtCore.QSize(250, 80))
- self.blank.setObjectName("blank")
- self.cp_content_layout_2.addWidget(self.blank, 2, 0, 1, 1)
- self.verticalLayout_2.addLayout(self.cp_content_layout_2)
- controlStackedWidget.addWidget(self.motion_page)
- self.extrude_page = QtWidgets.QWidget()
- self.extrude_page.setMinimumSize(QtCore.QSize(710, 400))
- self.extrude_page.setMaximumSize(QtCore.QSize(720, 420))
- self.extrude_page.setObjectName("extrude_page")
- self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.extrude_page)
- self.verticalLayout_3.setObjectName("verticalLayout_3")
- spacerItem = QtWidgets.QSpacerItem(20, 24, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- self.verticalLayout_3.addItem(spacerItem)
- self.exp_header_layout = QtWidgets.QHBoxLayout()
- self.exp_header_layout.setObjectName("exp_header_layout")
- spacerItem1 = QtWidgets.QSpacerItem(60, 60, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- self.exp_header_layout.addItem(spacerItem1)
- self.exp_title_label = QtWidgets.QLabel(parent=self.extrude_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.exp_title_label.sizePolicy().hasHeightForWidth())
- self.exp_title_label.setSizePolicy(sizePolicy)
- self.exp_title_label.setMinimumSize(QtCore.QSize(0, 60))
- self.exp_title_label.setMaximumSize(QtCore.QSize(16777215, 60))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(24)
- self.exp_title_label.setFont(font)
- self.exp_title_label.setStyleSheet("background: transparent; color: white;")
- self.exp_title_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.exp_title_label.setObjectName("exp_title_label")
- self.exp_header_layout.addWidget(self.exp_title_label)
- self.exp_back_btn = IconButton(parent=self.extrude_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.exp_back_btn.sizePolicy().hasHeightForWidth())
- self.exp_back_btn.setSizePolicy(sizePolicy)
- self.exp_back_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.exp_back_btn.setMaximumSize(QtCore.QSize(60, 60))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(20)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.exp_back_btn.setFont(font)
- self.exp_back_btn.setMouseTracking(False)
- self.exp_back_btn.setTabletTracking(True)
- self.exp_back_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.exp_back_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.exp_back_btn.setStyleSheet("")
- self.exp_back_btn.setAutoDefault(False)
- self.exp_back_btn.setFlat(True)
- self.exp_back_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/back.svg"))
- self.exp_back_btn.setObjectName("exp_back_btn")
- self.exp_header_layout.addWidget(self.exp_back_btn, 0, QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.verticalLayout_3.addLayout(self.exp_header_layout)
- self.exp_vertical_content_layout = QtWidgets.QVBoxLayout()
- self.exp_vertical_content_layout.setContentsMargins(5, 5, 5, 5)
- self.exp_vertical_content_layout.setObjectName("exp_vertical_content_layout")
- self.exp_length_group_box = QtWidgets.QGroupBox(parent=self.extrude_page)
- self.exp_length_group_box.setMinimumSize(QtCore.QSize(0, 80))
- self.exp_length_group_box.setMaximumSize(QtCore.QSize(16777215, 16777215))
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush)
- self.exp_length_group_box.setPalette(palette)
- font = QtGui.QFont()
- font.setPointSize(14)
- self.exp_length_group_box.setFont(font)
- self.exp_length_group_box.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.exp_length_group_box.setFlat(True)
- self.exp_length_group_box.setObjectName("exp_length_group_box")
- self.layoutWidget = QtWidgets.QWidget(parent=self.exp_length_group_box)
- self.layoutWidget.setGeometry(QtCore.QRect(0, 20, 681, 61))
- self.layoutWidget.setObjectName("layoutWidget")
- self.exp_length_content_layout = QtWidgets.QHBoxLayout(self.layoutWidget)
- self.exp_length_content_layout.setContentsMargins(5, 5, 5, 5)
- self.exp_length_content_layout.setSpacing(5)
- self.exp_length_content_layout.setObjectName("exp_length_content_layout")
- self.extrude_select_length_10_btn = BlocksCustomCheckButton(parent=self.layoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.extrude_select_length_10_btn.sizePolicy().hasHeightForWidth())
- self.extrude_select_length_10_btn.setSizePolicy(sizePolicy)
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.BrightText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.HighlightedText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.BrightText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.HighlightedText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.BrightText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.HighlightedText, brush)
- self.extrude_select_length_10_btn.setPalette(palette)
- font = QtGui.QFont()
- font.setPointSize(16)
- font.setBold(False)
- self.extrude_select_length_10_btn.setFont(font)
- self.extrude_select_length_10_btn.setCheckable(True)
- self.extrude_select_length_10_btn.setChecked(True)
- self.extrude_select_length_10_btn.setAutoRepeat(False)
- self.extrude_select_length_10_btn.setAutoExclusive(False)
- self.extrude_select_length_10_btn.setFlat(True)
- self.extrude_select_length_10_btn.setObjectName("extrude_select_length_10_btn")
- self.extrude_select_length_group = QtWidgets.QButtonGroup(controlStackedWidget)
- self.extrude_select_length_group.setObjectName("extrude_select_length_group")
- self.extrude_select_length_group.addButton(self.extrude_select_length_10_btn)
- self.exp_length_content_layout.addWidget(self.extrude_select_length_10_btn)
- self.extrude_select_length_50_btn = BlocksCustomCheckButton(parent=self.layoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.extrude_select_length_50_btn.sizePolicy().hasHeightForWidth())
- self.extrude_select_length_50_btn.setSizePolicy(sizePolicy)
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.BrightText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.HighlightedText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.BrightText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.HighlightedText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.BrightText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.HighlightedText, brush)
- self.extrude_select_length_50_btn.setPalette(palette)
- font = QtGui.QFont()
- font.setPointSize(16)
- font.setBold(False)
- self.extrude_select_length_50_btn.setFont(font)
- self.extrude_select_length_50_btn.setCheckable(True)
- self.extrude_select_length_50_btn.setAutoRepeat(False)
- self.extrude_select_length_50_btn.setAutoExclusive(False)
- self.extrude_select_length_50_btn.setFlat(True)
- self.extrude_select_length_50_btn.setObjectName("extrude_select_length_50_btn")
- self.extrude_select_length_group.addButton(self.extrude_select_length_50_btn)
- self.exp_length_content_layout.addWidget(self.extrude_select_length_50_btn)
- self.extrude_select_length_100_btn = BlocksCustomCheckButton(parent=self.layoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.extrude_select_length_100_btn.sizePolicy().hasHeightForWidth())
- self.extrude_select_length_100_btn.setSizePolicy(sizePolicy)
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.BrightText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.HighlightedText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.BrightText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.HighlightedText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.BrightText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.HighlightedText, brush)
- self.extrude_select_length_100_btn.setPalette(palette)
- font = QtGui.QFont()
- font.setPointSize(16)
- font.setBold(False)
- self.extrude_select_length_100_btn.setFont(font)
- self.extrude_select_length_100_btn.setCheckable(True)
- self.extrude_select_length_100_btn.setAutoRepeat(False)
- self.extrude_select_length_100_btn.setAutoExclusive(False)
- self.extrude_select_length_100_btn.setFlat(True)
- self.extrude_select_length_100_btn.setObjectName("extrude_select_length_100_btn")
- self.extrude_select_length_group.addButton(self.extrude_select_length_100_btn)
- self.exp_length_content_layout.addWidget(self.extrude_select_length_100_btn)
- self.exp_vertical_content_layout.addWidget(self.exp_length_group_box)
- self.exp_feedrate_group_box = QtWidgets.QGroupBox(parent=self.extrude_page)
- self.exp_feedrate_group_box.setMinimumSize(QtCore.QSize(0, 80))
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush)
- self.exp_feedrate_group_box.setPalette(palette)
- font = QtGui.QFont()
- font.setPointSize(14)
- self.exp_feedrate_group_box.setFont(font)
- self.exp_feedrate_group_box.setFlat(True)
- self.exp_feedrate_group_box.setObjectName("exp_feedrate_group_box")
- self.layoutWidget1 = QtWidgets.QWidget(parent=self.exp_feedrate_group_box)
- self.layoutWidget1.setGeometry(QtCore.QRect(0, 19, 681, 61))
- self.layoutWidget1.setObjectName("layoutWidget1")
- self.exp_feedrate_content_layout = QtWidgets.QHBoxLayout(self.layoutWidget1)
- self.exp_feedrate_content_layout.setContentsMargins(5, 5, 5, 5)
- self.exp_feedrate_content_layout.setSpacing(5)
- self.exp_feedrate_content_layout.setObjectName("exp_feedrate_content_layout")
- self.extrude_select_feedrate_low_btn = BlocksCustomCheckButton(parent=self.layoutWidget1)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.extrude_select_feedrate_low_btn.sizePolicy().hasHeightForWidth())
- self.extrude_select_feedrate_low_btn.setSizePolicy(sizePolicy)
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.BrightText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.HighlightedText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.BrightText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.HighlightedText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.BrightText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.HighlightedText, brush)
- self.extrude_select_feedrate_low_btn.setPalette(palette)
- font = QtGui.QFont()
- font.setPointSize(16)
- font.setBold(False)
- self.extrude_select_feedrate_low_btn.setFont(font)
- self.extrude_select_feedrate_low_btn.setCheckable(True)
- self.extrude_select_feedrate_low_btn.setChecked(True)
- self.extrude_select_feedrate_low_btn.setAutoRepeat(False)
- self.extrude_select_feedrate_low_btn.setAutoExclusive(False)
- self.extrude_select_feedrate_low_btn.setFlat(True)
- self.extrude_select_feedrate_low_btn.setObjectName("extrude_select_feedrate_low_btn")
- self.extrude_select_feedrate_group = QtWidgets.QButtonGroup(controlStackedWidget)
- self.extrude_select_feedrate_group.setObjectName("extrude_select_feedrate_group")
- self.extrude_select_feedrate_group.addButton(self.extrude_select_feedrate_low_btn)
- self.exp_feedrate_content_layout.addWidget(self.extrude_select_feedrate_low_btn)
- self.extrude_select_feedrate_middle_btn = BlocksCustomCheckButton(parent=self.layoutWidget1)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.extrude_select_feedrate_middle_btn.sizePolicy().hasHeightForWidth())
- self.extrude_select_feedrate_middle_btn.setSizePolicy(sizePolicy)
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.BrightText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.HighlightedText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.BrightText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.HighlightedText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.BrightText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.HighlightedText, brush)
- self.extrude_select_feedrate_middle_btn.setPalette(palette)
- font = QtGui.QFont()
- font.setPointSize(16)
- font.setBold(False)
- self.extrude_select_feedrate_middle_btn.setFont(font)
- self.extrude_select_feedrate_middle_btn.setCheckable(True)
- self.extrude_select_feedrate_middle_btn.setAutoRepeat(False)
- self.extrude_select_feedrate_middle_btn.setAutoExclusive(False)
- self.extrude_select_feedrate_middle_btn.setFlat(True)
- self.extrude_select_feedrate_middle_btn.setObjectName("extrude_select_feedrate_middle_btn")
- self.extrude_select_feedrate_group.addButton(self.extrude_select_feedrate_middle_btn)
- self.exp_feedrate_content_layout.addWidget(self.extrude_select_feedrate_middle_btn)
- self.extrude_select_feedrate_high_btn = BlocksCustomCheckButton(parent=self.layoutWidget1)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.extrude_select_feedrate_high_btn.sizePolicy().hasHeightForWidth())
- self.extrude_select_feedrate_high_btn.setSizePolicy(sizePolicy)
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.BrightText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.HighlightedText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.BrightText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.HighlightedText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.BrightText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.HighlightedText, brush)
- self.extrude_select_feedrate_high_btn.setPalette(palette)
- font = QtGui.QFont()
- font.setPointSize(16)
- font.setBold(False)
- self.extrude_select_feedrate_high_btn.setFont(font)
- self.extrude_select_feedrate_high_btn.setCheckable(True)
- self.extrude_select_feedrate_high_btn.setAutoRepeat(False)
- self.extrude_select_feedrate_high_btn.setAutoExclusive(False)
- self.extrude_select_feedrate_high_btn.setFlat(True)
- self.extrude_select_feedrate_high_btn.setObjectName("extrude_select_feedrate_high_btn")
- self.extrude_select_feedrate_group.addButton(self.extrude_select_feedrate_high_btn)
- self.exp_feedrate_content_layout.addWidget(self.extrude_select_feedrate_high_btn)
- self.exp_vertical_content_layout.addWidget(self.exp_feedrate_group_box)
- self.exp_movement_content_layout = QtWidgets.QVBoxLayout()
- self.exp_movement_content_layout.setContentsMargins(-1, 5, -1, -1)
- self.exp_movement_content_layout.setSpacing(0)
- self.exp_movement_content_layout.setObjectName("exp_movement_content_layout")
- self.exp_buttons_layout = QtWidgets.QHBoxLayout()
- self.exp_buttons_layout.setContentsMargins(5, 5, 5, 5)
- self.exp_buttons_layout.setObjectName("exp_buttons_layout")
- self.exp_unextrude_btn = BlocksCustomButton(parent=self.extrude_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.exp_unextrude_btn.sizePolicy().hasHeightForWidth())
- self.exp_unextrude_btn.setSizePolicy(sizePolicy)
- self.exp_unextrude_btn.setMinimumSize(QtCore.QSize(250, 80))
- self.exp_unextrude_btn.setMaximumSize(QtCore.QSize(250, 80))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(20)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.exp_unextrude_btn.setFont(font)
- self.exp_unextrude_btn.setMouseTracking(False)
- self.exp_unextrude_btn.setTabletTracking(True)
- self.exp_unextrude_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.exp_unextrude_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.exp_unextrude_btn.setStyleSheet("")
- self.exp_unextrude_btn.setAutoDefault(False)
- self.exp_unextrude_btn.setFlat(True)
- self.exp_unextrude_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/extruder_related/media/btn_icons/extrude.svg"))
- self.exp_unextrude_btn.setObjectName("exp_unextrude_btn")
- self.exp_buttons_layout.addWidget(self.exp_unextrude_btn)
- self.exp_nozzle_icon_label = BlocksLabel(parent=self.extrude_page)
- self.exp_nozzle_icon_label.setMinimumSize(QtCore.QSize(60, 60))
- self.exp_nozzle_icon_label.setMaximumSize(QtCore.QSize(60, 60))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(16)
- self.exp_nozzle_icon_label.setFont(font)
- self.exp_nozzle_icon_label.setStyleSheet("")
- self.exp_nozzle_icon_label.setText("")
- self.exp_nozzle_icon_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.exp_nozzle_icon_label.setProperty("icon_pixmap", QtGui.QPixmap(":/extruder_related/media/btn_icons/nozzle.svg"))
- self.exp_nozzle_icon_label.setObjectName("exp_nozzle_icon_label")
- self.exp_buttons_layout.addWidget(self.exp_nozzle_icon_label)
- self.exp_extrude_btn = BlocksCustomButton(parent=self.extrude_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.exp_extrude_btn.sizePolicy().hasHeightForWidth())
- self.exp_extrude_btn.setSizePolicy(sizePolicy)
- self.exp_extrude_btn.setMinimumSize(QtCore.QSize(250, 80))
- self.exp_extrude_btn.setMaximumSize(QtCore.QSize(250, 80))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(20)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.exp_extrude_btn.setFont(font)
- self.exp_extrude_btn.setMouseTracking(False)
- self.exp_extrude_btn.setTabletTracking(True)
- self.exp_extrude_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.exp_extrude_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.exp_extrude_btn.setStyleSheet("")
- self.exp_extrude_btn.setAutoDefault(False)
- self.exp_extrude_btn.setFlat(True)
- self.exp_extrude_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/extruder_related/media/btn_icons/extrude.svg"))
- self.exp_extrude_btn.setObjectName("exp_extrude_btn")
- self.exp_buttons_layout.addWidget(self.exp_extrude_btn)
- self.exp_movement_content_layout.addLayout(self.exp_buttons_layout)
- self.exp_info_layout = QtWidgets.QHBoxLayout()
- self.exp_info_layout.setContentsMargins(5, 5, 5, 5)
- self.exp_info_layout.setObjectName("exp_info_layout")
- self.exp_info_label = QtWidgets.QLabel(parent=self.extrude_page)
- self.exp_info_label.setEnabled(True)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Minimum)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.exp_info_label.sizePolicy().hasHeightForWidth())
- self.exp_info_label.setSizePolicy(sizePolicy)
- self.exp_info_label.setMinimumSize(QtCore.QSize(0, 0))
- font = QtGui.QFont()
- font.setFamily("Montserrat")
- font.setPointSize(14)
- self.exp_info_label.setFont(font)
- self.exp_info_label.setStyleSheet("background: transparent; color: white;")
- self.exp_info_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.exp_info_label.setObjectName("exp_info_label")
- self.exp_info_layout.addWidget(self.exp_info_label)
- self.exp_movement_content_layout.addLayout(self.exp_info_layout)
- self.exp_movement_content_layout.setStretch(1, 1)
- self.exp_vertical_content_layout.addLayout(self.exp_movement_content_layout)
- self.exp_vertical_content_layout.setStretch(2, 1)
- self.verticalLayout_3.addLayout(self.exp_vertical_content_layout)
- controlStackedWidget.addWidget(self.extrude_page)
- self.move_axis_page = QtWidgets.QWidget()
- self.move_axis_page.setMinimumSize(QtCore.QSize(710, 400))
- self.move_axis_page.setMaximumSize(QtCore.QSize(720, 420))
- self.move_axis_page.setObjectName("move_axis_page")
- self.mva_x_label = QtWidgets.QLabel(parent=self.move_axis_page)
- self.mva_x_label.setEnabled(True)
- self.mva_x_label.setGeometry(QtCore.QRect(160, 350, 51, 41))
- font = QtGui.QFont()
- font.setFamily("Montserrat")
- font.setPointSize(14)
- self.mva_x_label.setFont(font)
- self.mva_x_label.setStyleSheet("background: transparent; color: white;")
- self.mva_x_label.setObjectName("mva_x_label")
- self.mva_y_label = QtWidgets.QLabel(parent=self.move_axis_page)
- self.mva_y_label.setEnabled(True)
- self.mva_y_label.setGeometry(QtCore.QRect(340, 350, 51, 41))
- font = QtGui.QFont()
- font.setFamily("Montserrat")
- font.setPointSize(14)
- self.mva_y_label.setFont(font)
- self.mva_y_label.setStyleSheet("background: transparent; color: white;")
- self.mva_y_label.setObjectName("mva_y_label")
- self.mva_z_label = QtWidgets.QLabel(parent=self.move_axis_page)
- self.mva_z_label.setEnabled(True)
- self.mva_z_label.setGeometry(QtCore.QRect(500, 350, 51, 41))
- font = QtGui.QFont()
- font.setFamily("Montserrat")
- font.setPointSize(14)
- self.mva_z_label.setFont(font)
- self.mva_z_label.setStyleSheet("background: transparent; color: white;")
- self.mva_z_label.setObjectName("mva_z_label")
- self.mva_z_value_label = QtWidgets.QLabel(parent=self.move_axis_page)
- self.mva_z_value_label.setEnabled(True)
- self.mva_z_value_label.setGeometry(QtCore.QRect(550, 350, 91, 41))
- font = QtGui.QFont()
- font.setFamily("Montserrat")
- font.setPointSize(14)
- self.mva_z_value_label.setFont(font)
- self.mva_z_value_label.setStyleSheet("background: transparent; color: white;")
- self.mva_z_value_label.setObjectName("mva_z_value_label")
- self.mva_y_value_label = QtWidgets.QLabel(parent=self.move_axis_page)
- self.mva_y_value_label.setEnabled(True)
- self.mva_y_value_label.setGeometry(QtCore.QRect(370, 350, 91, 41))
- font = QtGui.QFont()
- font.setFamily("Montserrat")
- font.setPointSize(14)
- self.mva_y_value_label.setFont(font)
- self.mva_y_value_label.setStyleSheet("background: transparent; color: white;")
- self.mva_y_value_label.setObjectName("mva_y_value_label")
- self.mva_x_value_label = QtWidgets.QLabel(parent=self.move_axis_page)
- self.mva_x_value_label.setEnabled(True)
- self.mva_x_value_label.setGeometry(QtCore.QRect(190, 350, 81, 41))
- font = QtGui.QFont()
- font.setFamily("Montserrat")
- font.setPointSize(14)
- self.mva_x_value_label.setFont(font)
- self.mva_x_value_label.setStyleSheet("background: transparent; color: white;")
- self.mva_x_value_label.setObjectName("mva_x_value_label")
- self.horizontalLayoutWidget_3 = QtWidgets.QWidget(parent=self.move_axis_page)
- self.horizontalLayoutWidget_3.setGeometry(QtCore.QRect(10, 23, 691, 81))
- self.horizontalLayoutWidget_3.setObjectName("horizontalLayoutWidget_3")
- self.mva_header_layout = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_3)
- self.mva_header_layout.setContentsMargins(0, 0, 0, 0)
- self.mva_header_layout.setObjectName("mva_header_layout")
- spacerItem2 = QtWidgets.QSpacerItem(60, 20, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- self.mva_header_layout.addItem(spacerItem2)
- self.mva_title_label = QtWidgets.QLabel(parent=self.horizontalLayoutWidget_3)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.mva_title_label.sizePolicy().hasHeightForWidth())
- self.mva_title_label.setSizePolicy(sizePolicy)
- self.mva_title_label.setMinimumSize(QtCore.QSize(0, 0))
- self.mva_title_label.setMaximumSize(QtCore.QSize(16777215, 60))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(24)
- self.mva_title_label.setFont(font)
- self.mva_title_label.setStyleSheet("background: transparent; color: white;")
- self.mva_title_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.mva_title_label.setObjectName("mva_title_label")
- self.mva_header_layout.addWidget(self.mva_title_label)
- self.mva_back_btn = IconButton(parent=self.horizontalLayoutWidget_3)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.mva_back_btn.sizePolicy().hasHeightForWidth())
- self.mva_back_btn.setSizePolicy(sizePolicy)
- self.mva_back_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.mva_back_btn.setMaximumSize(QtCore.QSize(60, 60))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(20)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.mva_back_btn.setFont(font)
- self.mva_back_btn.setMouseTracking(False)
- self.mva_back_btn.setTabletTracking(True)
- self.mva_back_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.mva_back_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.mva_back_btn.setStyleSheet("")
- self.mva_back_btn.setAutoDefault(False)
- self.mva_back_btn.setFlat(True)
- self.mva_back_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/back.svg"))
- self.mva_back_btn.setObjectName("mva_back_btn")
- self.mva_header_layout.addWidget(self.mva_back_btn, 0, QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.verticalLayoutWidget_2 = QtWidgets.QWidget(parent=self.move_axis_page)
- self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(630, 130, 71, 201))
- self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2")
- self.mva_z_layout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_2)
- self.mva_z_layout.setContentsMargins(0, 0, 0, 0)
- self.mva_z_layout.setObjectName("mva_z_layout")
- self.mva_z_up = IconButton(parent=self.verticalLayoutWidget_2)
- self.mva_z_up.setEnabled(True)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.mva_z_up.sizePolicy().hasHeightForWidth())
- self.mva_z_up.setSizePolicy(sizePolicy)
- self.mva_z_up.setMinimumSize(QtCore.QSize(60, 60))
- self.mva_z_up.setMaximumSize(QtCore.QSize(60, 60))
- self.mva_z_up.setStyleSheet("")
- self.mva_z_up.setText("")
- self.mva_z_up.setIconSize(QtCore.QSize(16, 16))
- self.mva_z_up.setCheckable(False)
- self.mva_z_up.setChecked(False)
- self.mva_z_up.setFlat(True)
- self.mva_z_up.setProperty("icon_pixmap", QtGui.QPixmap(":/arrow_icons/media/btn_icons/up_arrow.svg"))
- self.mva_z_up.setObjectName("mva_z_up")
- self.mva_z_layout.addWidget(self.mva_z_up, 0, QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.mva_z_down = IconButton(parent=self.verticalLayoutWidget_2)
- self.mva_z_down.setEnabled(True)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.mva_z_down.sizePolicy().hasHeightForWidth())
- self.mva_z_down.setSizePolicy(sizePolicy)
- self.mva_z_down.setMinimumSize(QtCore.QSize(60, 60))
- self.mva_z_down.setMaximumSize(QtCore.QSize(60, 60))
- self.mva_z_down.setStyleSheet("")
- self.mva_z_down.setText("")
- self.mva_z_down.setIconSize(QtCore.QSize(16, 16))
- self.mva_z_down.setCheckable(False)
- self.mva_z_down.setChecked(False)
- self.mva_z_down.setFlat(True)
- self.mva_z_down.setProperty("icon_pixmap", QtGui.QPixmap(":/arrow_icons/media/btn_icons/down_arrow.svg"))
- self.mva_z_down.setObjectName("mva_z_down")
- self.mva_z_layout.addWidget(self.mva_z_down, 0, QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.verticalLayoutWidget_3 = QtWidgets.QWidget(parent=self.move_axis_page)
- self.verticalLayoutWidget_3.setGeometry(QtCore.QRect(10, 90, 81, 301))
- self.verticalLayoutWidget_3.setObjectName("verticalLayoutWidget_3")
- self.mva_home_axis_layout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_3)
- self.mva_home_axis_layout.setContentsMargins(5, 5, 5, 5)
- self.mva_home_axis_layout.setObjectName("mva_home_axis_layout")
- self.mva_home_x_btn = IconButton(parent=self.verticalLayoutWidget_3)
- self.mva_home_x_btn.setEnabled(True)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.mva_home_x_btn.sizePolicy().hasHeightForWidth())
- self.mva_home_x_btn.setSizePolicy(sizePolicy)
- self.mva_home_x_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.mva_home_x_btn.setMaximumSize(QtCore.QSize(60, 60))
- self.mva_home_x_btn.setStyleSheet("")
- self.mva_home_x_btn.setText("")
- self.mva_home_x_btn.setIconSize(QtCore.QSize(16, 16))
- self.mva_home_x_btn.setCheckable(False)
- self.mva_home_x_btn.setChecked(False)
- self.mva_home_x_btn.setFlat(True)
- self.mva_home_x_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/motion/media/btn_icons/home_x.svg"))
- self.mva_home_x_btn.setObjectName("mva_home_x_btn")
- self.mva_home_axis_layout.addWidget(self.mva_home_x_btn, 0, QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.mva_home_y_btn = IconButton(parent=self.verticalLayoutWidget_3)
- self.mva_home_y_btn.setEnabled(True)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.mva_home_y_btn.sizePolicy().hasHeightForWidth())
- self.mva_home_y_btn.setSizePolicy(sizePolicy)
- self.mva_home_y_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.mva_home_y_btn.setMaximumSize(QtCore.QSize(60, 60))
- self.mva_home_y_btn.setStyleSheet("")
- self.mva_home_y_btn.setText("")
- self.mva_home_y_btn.setIconSize(QtCore.QSize(16, 16))
- self.mva_home_y_btn.setCheckable(False)
- self.mva_home_y_btn.setChecked(False)
- self.mva_home_y_btn.setFlat(True)
- self.mva_home_y_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/motion/media/btn_icons/home_y.svg"))
- self.mva_home_y_btn.setObjectName("mva_home_y_btn")
- self.mva_home_axis_layout.addWidget(self.mva_home_y_btn, 0, QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.mva_home_z_btn = IconButton(parent=self.verticalLayoutWidget_3)
- self.mva_home_z_btn.setEnabled(True)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.mva_home_z_btn.sizePolicy().hasHeightForWidth())
- self.mva_home_z_btn.setSizePolicy(sizePolicy)
- self.mva_home_z_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.mva_home_z_btn.setMaximumSize(QtCore.QSize(60, 60))
- self.mva_home_z_btn.setStyleSheet("")
- self.mva_home_z_btn.setText("")
- self.mva_home_z_btn.setIconSize(QtCore.QSize(16, 16))
- self.mva_home_z_btn.setCheckable(False)
- self.mva_home_z_btn.setChecked(False)
- self.mva_home_z_btn.setFlat(True)
- self.mva_home_z_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/motion/media/btn_icons/home_z.svg"))
- self.mva_home_z_btn.setObjectName("mva_home_z_btn")
- self.mva_home_axis_layout.addWidget(self.mva_home_z_btn, 0, QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.mva_home_all_btn = IconButton(parent=self.verticalLayoutWidget_3)
- self.mva_home_all_btn.setEnabled(True)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.mva_home_all_btn.sizePolicy().hasHeightForWidth())
- self.mva_home_all_btn.setSizePolicy(sizePolicy)
- self.mva_home_all_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.mva_home_all_btn.setMaximumSize(QtCore.QSize(60, 60))
- self.mva_home_all_btn.setStyleSheet("")
- self.mva_home_all_btn.setText("")
- self.mva_home_all_btn.setIconSize(QtCore.QSize(16, 16))
- self.mva_home_all_btn.setCheckable(False)
- self.mva_home_all_btn.setChecked(False)
- self.mva_home_all_btn.setFlat(True)
- self.mva_home_all_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/motion/media/btn_icons/home_all.svg"))
- self.mva_home_all_btn.setObjectName("mva_home_all_btn")
- self.mva_home_axis_layout.addWidget(self.mva_home_all_btn, 0, QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.mva_select_speed_25_btn = BlocksCustomCheckButton(parent=self.move_axis_page)
- self.mva_select_speed_25_btn.setGeometry(QtCore.QRect(96, 240, 100, 100))
- self.mva_select_speed_25_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.mva_select_speed_25_btn.setMaximumSize(QtCore.QSize(100, 100))
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush)
- self.mva_select_speed_25_btn.setPalette(palette)
- font = QtGui.QFont()
- font.setPointSize(14)
- self.mva_select_speed_25_btn.setFont(font)
- self.mva_select_speed_25_btn.setCheckable(True)
- self.mva_select_speed_25_btn.setChecked(True)
- self.mva_select_speed_25_btn.setFlat(True)
- self.mva_select_speed_25_btn.setObjectName("mva_select_speed_25_btn")
- self.axis_select_speed_group = QtWidgets.QButtonGroup(controlStackedWidget)
- self.axis_select_speed_group.setObjectName("axis_select_speed_group")
- self.axis_select_speed_group.addButton(self.mva_select_speed_25_btn)
- self.mva_select_speed_50_btn = BlocksCustomCheckButton(parent=self.move_axis_page)
- self.mva_select_speed_50_btn.setGeometry(QtCore.QRect(205, 240, 100, 100))
- self.mva_select_speed_50_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.mva_select_speed_50_btn.setMaximumSize(QtCore.QSize(100, 100))
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush)
- self.mva_select_speed_50_btn.setPalette(palette)
- font = QtGui.QFont()
- font.setPointSize(14)
- self.mva_select_speed_50_btn.setFont(font)
- self.mva_select_speed_50_btn.setCheckable(True)
- self.mva_select_speed_50_btn.setFlat(False)
- self.mva_select_speed_50_btn.setObjectName("mva_select_speed_50_btn")
- self.axis_select_speed_group.addButton(self.mva_select_speed_50_btn)
- self.mva_select_speed_100_btn = BlocksCustomCheckButton(parent=self.move_axis_page)
- self.mva_select_speed_100_btn.setGeometry(QtCore.QRect(315, 240, 100, 100))
- self.mva_select_speed_100_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.mva_select_speed_100_btn.setMaximumSize(QtCore.QSize(100, 100))
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush)
- self.mva_select_speed_100_btn.setPalette(palette)
- font = QtGui.QFont()
- font.setPointSize(14)
- self.mva_select_speed_100_btn.setFont(font)
- self.mva_select_speed_100_btn.setCheckable(True)
- self.mva_select_speed_100_btn.setFlat(False)
- self.mva_select_speed_100_btn.setObjectName("mva_select_speed_100_btn")
- self.axis_select_speed_group.addButton(self.mva_select_speed_100_btn)
- self.label = QtWidgets.QLabel(parent=self.move_axis_page)
- self.label.setGeometry(QtCore.QRect(109, 216, 261, 21))
- font = QtGui.QFont()
- font.setPointSize(14)
- self.label.setFont(font)
- self.label.setStyleSheet("color:white")
- self.label.setObjectName("label")
- self.mva_select_length_1_btn = BlocksCustomCheckButton(parent=self.move_axis_page)
- self.mva_select_length_1_btn.setGeometry(QtCore.QRect(96, 110, 100, 100))
- self.mva_select_length_1_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.mva_select_length_1_btn.setMaximumSize(QtCore.QSize(100, 100))
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush)
- self.mva_select_length_1_btn.setPalette(palette)
- font = QtGui.QFont()
- font.setPointSize(14)
- self.mva_select_length_1_btn.setFont(font)
- self.mva_select_length_1_btn.setCheckable(True)
- self.mva_select_length_1_btn.setChecked(True)
- self.mva_select_length_1_btn.setFlat(True)
- self.mva_select_length_1_btn.setObjectName("mva_select_length_1_btn")
- self.axis_select_length_group = QtWidgets.QButtonGroup(controlStackedWidget)
- self.axis_select_length_group.setObjectName("axis_select_length_group")
- self.axis_select_length_group.addButton(self.mva_select_length_1_btn)
- self.mva_select_length_10_btn = BlocksCustomCheckButton(parent=self.move_axis_page)
- self.mva_select_length_10_btn.setGeometry(QtCore.QRect(204, 110, 100, 100))
- self.mva_select_length_10_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.mva_select_length_10_btn.setMaximumSize(QtCore.QSize(100, 100))
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush)
- self.mva_select_length_10_btn.setPalette(palette)
- font = QtGui.QFont()
- font.setPointSize(14)
- self.mva_select_length_10_btn.setFont(font)
- self.mva_select_length_10_btn.setCheckable(True)
- self.mva_select_length_10_btn.setFlat(False)
- self.mva_select_length_10_btn.setObjectName("mva_select_length_10_btn")
- self.axis_select_length_group.addButton(self.mva_select_length_10_btn)
- self.mva_select_length_100_btn = BlocksCustomCheckButton(parent=self.move_axis_page)
- self.mva_select_length_100_btn.setGeometry(QtCore.QRect(315, 110, 100, 100))
- self.mva_select_length_100_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.mva_select_length_100_btn.setMaximumSize(QtCore.QSize(100, 100))
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush)
- self.mva_select_length_100_btn.setPalette(palette)
- font = QtGui.QFont()
- font.setPointSize(14)
- self.mva_select_length_100_btn.setFont(font)
- self.mva_select_length_100_btn.setCheckable(True)
- self.mva_select_length_100_btn.setFlat(False)
- self.mva_select_length_100_btn.setObjectName("mva_select_length_100_btn")
- self.axis_select_length_group.addButton(self.mva_select_length_100_btn)
- self.label_2 = QtWidgets.QLabel(parent=self.move_axis_page)
- self.label_2.setGeometry(QtCore.QRect(109, 85, 261, 21))
- font = QtGui.QFont()
- font.setPointSize(14)
- self.label_2.setFont(font)
- self.label_2.setStyleSheet("color:white")
- self.label_2.setObjectName("label_2")
- self.verticalLayoutWidget = QtWidgets.QWidget(parent=self.move_axis_page)
- self.verticalLayoutWidget.setGeometry(QtCore.QRect(440, 128, 196, 204))
- self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
- self.gridLayout_2 = QtWidgets.QGridLayout(self.verticalLayoutWidget)
- self.gridLayout_2.setContentsMargins(0, 5, 0, 5)
- self.gridLayout_2.setObjectName("gridLayout_2")
- self.mva_left_btn = IconButton(parent=self.verticalLayoutWidget)
- self.mva_left_btn.setEnabled(True)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.mva_left_btn.sizePolicy().hasHeightForWidth())
- self.mva_left_btn.setSizePolicy(sizePolicy)
- self.mva_left_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.mva_left_btn.setMaximumSize(QtCore.QSize(60, 60))
- self.mva_left_btn.setStyleSheet("")
- self.mva_left_btn.setText("")
- self.mva_left_btn.setIconSize(QtCore.QSize(16, 16))
- self.mva_left_btn.setCheckable(False)
- self.mva_left_btn.setChecked(False)
- self.mva_left_btn.setFlat(True)
- self.mva_left_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/arrow_icons/media/btn_icons/left_arrow.svg"))
- self.mva_left_btn.setObjectName("mva_left_btn")
- self.gridLayout_2.addWidget(self.mva_left_btn, 1, 0, 1, 1)
- self.mva_right_btn = IconButton(parent=self.verticalLayoutWidget)
- self.mva_right_btn.setEnabled(True)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.mva_right_btn.sizePolicy().hasHeightForWidth())
- self.mva_right_btn.setSizePolicy(sizePolicy)
- self.mva_right_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.mva_right_btn.setMaximumSize(QtCore.QSize(60, 60))
- self.mva_right_btn.setStyleSheet("")
- self.mva_right_btn.setText("")
- self.mva_right_btn.setIconSize(QtCore.QSize(16, 16))
- self.mva_right_btn.setCheckable(False)
- self.mva_right_btn.setChecked(False)
- self.mva_right_btn.setFlat(True)
- self.mva_right_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/arrow_icons/media/btn_icons/right_arrow.svg"))
- self.mva_right_btn.setObjectName("mva_right_btn")
- self.gridLayout_2.addWidget(self.mva_right_btn, 1, 2, 1, 1)
- self.mva_down_btn = IconButton(parent=self.verticalLayoutWidget)
- self.mva_down_btn.setEnabled(True)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.mva_down_btn.sizePolicy().hasHeightForWidth())
- self.mva_down_btn.setSizePolicy(sizePolicy)
- self.mva_down_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.mva_down_btn.setMaximumSize(QtCore.QSize(60, 60))
- self.mva_down_btn.setStyleSheet("")
- self.mva_down_btn.setText("")
- self.mva_down_btn.setIconSize(QtCore.QSize(60, 60))
- self.mva_down_btn.setCheckable(False)
- self.mva_down_btn.setChecked(False)
- self.mva_down_btn.setFlat(True)
- self.mva_down_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/arrow_icons/media/btn_icons/down_arrow.svg"))
- self.mva_down_btn.setObjectName("mva_down_btn")
- self.gridLayout_2.addWidget(self.mva_down_btn, 2, 1, 1, 1)
- self.mva_up_btn = IconButton(parent=self.verticalLayoutWidget)
- self.mva_up_btn.setEnabled(True)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.mva_up_btn.sizePolicy().hasHeightForWidth())
- self.mva_up_btn.setSizePolicy(sizePolicy)
- self.mva_up_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.mva_up_btn.setMaximumSize(QtCore.QSize(60, 60))
- self.mva_up_btn.setStyleSheet("")
- self.mva_up_btn.setText("")
- self.mva_up_btn.setIconSize(QtCore.QSize(60, 60))
- self.mva_up_btn.setCheckable(False)
- self.mva_up_btn.setChecked(False)
- self.mva_up_btn.setFlat(True)
- self.mva_up_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/arrow_icons/media/btn_icons/up_arrow.svg"))
- self.mva_up_btn.setObjectName("mva_up_btn")
- self.gridLayout_2.addWidget(self.mva_up_btn, 0, 1, 1, 1)
- self.mva_middle = IconButton(parent=self.verticalLayoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.mva_middle.sizePolicy().hasHeightForWidth())
- self.mva_middle.setSizePolicy(sizePolicy)
- self.mva_middle.setMinimumSize(QtCore.QSize(60, 60))
- self.mva_middle.setMaximumSize(QtCore.QSize(60, 60))
- self.mva_middle.setText("")
- self.mva_middle.setFlat(True)
- self.mva_middle.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/center_arrows.svg"))
- self.mva_middle.setObjectName("mva_middle")
- self.gridLayout_2.addWidget(self.mva_middle, 1, 1, 1, 1)
- controlStackedWidget.addWidget(self.move_axis_page)
- self.temperature_page = QtWidgets.QWidget()
- self.temperature_page.setMinimumSize(QtCore.QSize(710, 400))
- self.temperature_page.setMaximumSize(QtCore.QSize(720, 420))
- self.temperature_page.setObjectName("temperature_page")
- self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.temperature_page)
- self.verticalLayout_4.setObjectName("verticalLayout_4")
- spacerItem3 = QtWidgets.QSpacerItem(20, 24, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- self.verticalLayout_4.addItem(spacerItem3)
- self.horizontalLayout = QtWidgets.QHBoxLayout()
- self.horizontalLayout.setObjectName("horizontalLayout")
- spacerItem4 = QtWidgets.QSpacerItem(60, 20, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- self.horizontalLayout.addItem(spacerItem4)
- self.temp_header_title = QtWidgets.QLabel(parent=self.temperature_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.temp_header_title.sizePolicy().hasHeightForWidth())
- self.temp_header_title.setSizePolicy(sizePolicy)
- self.temp_header_title.setMinimumSize(QtCore.QSize(0, 60))
- self.temp_header_title.setMaximumSize(QtCore.QSize(16777215, 60))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(24)
- font.setBold(True)
- self.temp_header_title.setFont(font)
- self.temp_header_title.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.temp_header_title.setStyleSheet("background: transparent; color: white;")
- self.temp_header_title.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.temp_header_title.setObjectName("temp_header_title")
- self.horizontalLayout.addWidget(self.temp_header_title)
- self.temp_back_button = IconButton(parent=self.temperature_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.temp_back_button.sizePolicy().hasHeightForWidth())
- self.temp_back_button.setSizePolicy(sizePolicy)
- self.temp_back_button.setMinimumSize(QtCore.QSize(60, 60))
- self.temp_back_button.setMaximumSize(QtCore.QSize(60, 60))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(20)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.temp_back_button.setFont(font)
- self.temp_back_button.setMouseTracking(False)
- self.temp_back_button.setTabletTracking(True)
- self.temp_back_button.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.temp_back_button.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.temp_back_button.setStyleSheet("")
- self.temp_back_button.setAutoDefault(False)
- self.temp_back_button.setFlat(True)
- self.temp_back_button.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/back.svg"))
- self.temp_back_button.setObjectName("temp_back_button")
- self.horizontalLayout.addWidget(self.temp_back_button)
- self.verticalLayout_4.addLayout(self.horizontalLayout)
- spacerItem5 = QtWidgets.QSpacerItem(20, 35, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- self.verticalLayout_4.addItem(spacerItem5)
- self.gridLayout = QtWidgets.QGridLayout()
- self.gridLayout.setContentsMargins(5, 5, 5, 5)
- self.gridLayout.setSpacing(0)
- self.gridLayout.setObjectName("gridLayout")
- self.tp_content_horizontal_layout = QtWidgets.QHBoxLayout()
- self.tp_content_horizontal_layout.setSizeConstraint(QtWidgets.QLayout.SizeConstraint.SetMinimumSize)
- self.tp_content_horizontal_layout.setContentsMargins(5, 5, 5, 5)
- self.tp_content_horizontal_layout.setSpacing(5)
- self.tp_content_horizontal_layout.setObjectName("tp_content_horizontal_layout")
- self.extruder_temp_display = DisplayButton(parent=self.temperature_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.extruder_temp_display.sizePolicy().hasHeightForWidth())
- self.extruder_temp_display.setSizePolicy(sizePolicy)
- self.extruder_temp_display.setMinimumSize(QtCore.QSize(200, 60))
- self.extruder_temp_display.setMaximumSize(QtCore.QSize(120, 60))
- font = QtGui.QFont()
- font.setPointSize(11)
- self.extruder_temp_display.setFont(font)
- self.extruder_temp_display.setAutoFillBackground(False)
- self.extruder_temp_display.setText("")
- self.extruder_temp_display.setFlat(True)
- self.extruder_temp_display.setProperty("icon_pixmap", QtGui.QPixmap(":/extruder_related/media/btn_icons/nozzle.svg"))
- self.extruder_temp_display.setObjectName("extruder_temp_display")
- self.tp_content_horizontal_layout.addWidget(self.extruder_temp_display)
- self.bed_temp_display = DisplayButton(parent=self.temperature_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.bed_temp_display.sizePolicy().hasHeightForWidth())
- self.bed_temp_display.setSizePolicy(sizePolicy)
- self.bed_temp_display.setMinimumSize(QtCore.QSize(200, 60))
- self.bed_temp_display.setMaximumSize(QtCore.QSize(120, 60))
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Base, brush)
- brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Window, brush)
- brush = QtGui.QBrush(QtGui.QColor(60, 60, 60))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Highlight, brush)
- brush = QtGui.QBrush(QtGui.QColor(60, 60, 60))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.HighlightedText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Base, brush)
- brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Window, brush)
- brush = QtGui.QBrush(QtGui.QColor(60, 60, 60))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Highlight, brush)
- brush = QtGui.QBrush(QtGui.QColor(60, 60, 60))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.HighlightedText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Base, brush)
- brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Window, brush)
- brush = QtGui.QBrush(QtGui.QColor(60, 60, 60))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Highlight, brush)
- brush = QtGui.QBrush(QtGui.QColor(60, 60, 60))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.HighlightedText, brush)
- self.bed_temp_display.setPalette(palette)
- font = QtGui.QFont()
- font.setPointSize(11)
- self.bed_temp_display.setFont(font)
- self.bed_temp_display.setText("")
- self.bed_temp_display.setCheckable(False)
- self.bed_temp_display.setDefault(False)
- self.bed_temp_display.setFlat(True)
- self.bed_temp_display.setProperty("icon_pixmap", QtGui.QPixmap(":/temperature_related/media/btn_icons/temperature_plate.svg"))
- self.bed_temp_display.setObjectName("bed_temp_display")
- self.tp_content_horizontal_layout.addWidget(self.bed_temp_display)
- self.gridLayout.addLayout(self.tp_content_horizontal_layout, 0, 0, 1, 2)
- self.cooldown_btn = BlocksCustomButton(parent=self.temperature_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.cooldown_btn.sizePolicy().hasHeightForWidth())
- self.cooldown_btn.setSizePolicy(sizePolicy)
- self.cooldown_btn.setMinimumSize(QtCore.QSize(250, 80))
- self.cooldown_btn.setMaximumSize(QtCore.QSize(250, 80))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(19)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.cooldown_btn.setFont(font)
- self.cooldown_btn.setMouseTracking(False)
- self.cooldown_btn.setTabletTracking(True)
- self.cooldown_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.cooldown_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.cooldown_btn.setStyleSheet("")
- self.cooldown_btn.setAutoDefault(False)
- self.cooldown_btn.setFlat(True)
- self.cooldown_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/temperature_related/media/btn_icons/cooldown.svg"))
- self.cooldown_btn.setObjectName("cooldown_btn")
- self.gridLayout.addWidget(self.cooldown_btn, 2, 1, 1, 1)
- spacerItem6 = QtWidgets.QSpacerItem(20, 50, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- self.gridLayout.addItem(spacerItem6, 1, 0, 1, 2)
- self.temperature_cooldown_btn = BlocksCustomButton(parent=self.temperature_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.temperature_cooldown_btn.sizePolicy().hasHeightForWidth())
- self.temperature_cooldown_btn.setSizePolicy(sizePolicy)
- self.temperature_cooldown_btn.setMinimumSize(QtCore.QSize(250, 80))
- self.temperature_cooldown_btn.setMaximumSize(QtCore.QSize(250, 80))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(19)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.temperature_cooldown_btn.setFont(font)
- self.temperature_cooldown_btn.setMouseTracking(False)
- self.temperature_cooldown_btn.setTabletTracking(True)
- self.temperature_cooldown_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.temperature_cooldown_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.temperature_cooldown_btn.setStyleSheet("")
- self.temperature_cooldown_btn.setAutoDefault(False)
- self.temperature_cooldown_btn.setFlat(True)
- self.temperature_cooldown_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/temperature_related/media/btn_icons/heatsoak_icon.svg"))
- self.temperature_cooldown_btn.setObjectName("temperature_cooldown_btn")
- self.gridLayout.addWidget(self.temperature_cooldown_btn, 2, 0, 1, 1)
- self.verticalLayout_4.addLayout(self.gridLayout)
- spacerItem7 = QtWidgets.QSpacerItem(20, 8, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- self.verticalLayout_4.addItem(spacerItem7)
- controlStackedWidget.addWidget(self.temperature_page)
- self.z_adjustment_page = QtWidgets.QWidget()
- self.z_adjustment_page.setMinimumSize(QtCore.QSize(710, 400))
- self.z_adjustment_page.setMaximumSize(QtCore.QSize(720, 420))
- self.z_adjustment_page.setObjectName("z_adjustment_page")
- self.z_adjust_icon = QtWidgets.QLabel(parent=self.z_adjustment_page)
- self.z_adjust_icon.setEnabled(True)
- self.z_adjust_icon.setGeometry(QtCore.QRect(290, 210, 31, 41))
- font = QtGui.QFont()
- font.setFamily("Montserrat")
- font.setPointSize(14)
- self.z_adjust_icon.setFont(font)
- self.z_adjust_icon.setStyleSheet("background: transparent; color: white;")
- self.z_adjust_icon.setObjectName("z_adjust_icon")
- self.z_adjust_offset_value = QtWidgets.QLabel(parent=self.z_adjustment_page)
- self.z_adjust_offset_value.setEnabled(True)
- self.z_adjust_offset_value.setGeometry(QtCore.QRect(340, 210, 31, 41))
- font = QtGui.QFont()
- font.setFamily("Montserrat")
- font.setPointSize(14)
- self.z_adjust_offset_value.setFont(font)
- self.z_adjust_offset_value.setStyleSheet("background: transparent; color: white;")
- self.z_adjust_offset_value.setObjectName("z_adjust_offset_value")
- self.horizontalLayoutWidget_10 = QtWidgets.QWidget(parent=self.z_adjustment_page)
- self.horizontalLayoutWidget_10.setGeometry(QtCore.QRect(10, 10, 681, 62))
- self.horizontalLayoutWidget_10.setObjectName("horizontalLayoutWidget_10")
- self.z_adjustment_header_layout = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_10)
- self.z_adjustment_header_layout.setContentsMargins(0, 0, 0, 0)
- self.z_adjustment_header_layout.setObjectName("z_adjustment_header_layout")
- spacerItem8 = QtWidgets.QSpacerItem(60, 20, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- self.z_adjustment_header_layout.addItem(spacerItem8)
- self.z_adjust_header_title = QtWidgets.QLabel(parent=self.horizontalLayoutWidget_10)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Preferred)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.z_adjust_header_title.sizePolicy().hasHeightForWidth())
- self.z_adjust_header_title.setSizePolicy(sizePolicy)
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(24)
- self.z_adjust_header_title.setFont(font)
- self.z_adjust_header_title.setStyleSheet("background: transparent; color: white;")
- self.z_adjust_header_title.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.z_adjust_header_title.setObjectName("z_adjust_header_title")
- self.z_adjustment_header_layout.addWidget(self.z_adjust_header_title)
- self.z_adjust_back_button = BlocksCustomButton(parent=self.horizontalLayoutWidget_10)
- self.z_adjust_back_button.setMinimumSize(QtCore.QSize(60, 60))
- self.z_adjust_back_button.setMaximumSize(QtCore.QSize(60, 60))
- self.z_adjust_back_button.setText("")
- self.z_adjust_back_button.setFlat(True)
- self.z_adjust_back_button.setProperty("icon_pixmap", QtGui.QPixmap(":/button_borders/media/btn_icons/back.svg"))
- self.z_adjust_back_button.setObjectName("z_adjust_back_button")
- self.z_adjustment_header_layout.addWidget(self.z_adjust_back_button)
- self.verticalLayoutWidget_8 = QtWidgets.QWidget(parent=self.z_adjustment_page)
- self.verticalLayoutWidget_8.setGeometry(QtCore.QRect(600, 110, 90, 177))
- self.verticalLayoutWidget_8.setObjectName("verticalLayoutWidget_8")
- self.z_adjust_move_buttons_layout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_8)
- self.z_adjust_move_buttons_layout.setContentsMargins(5, 5, 5, 5)
- self.z_adjust_move_buttons_layout.setObjectName("z_adjust_move_buttons_layout")
- self.z_adjust_up_btn = IconButton(parent=self.verticalLayoutWidget_8)
- self.z_adjust_up_btn.setMinimumSize(QtCore.QSize(80, 80))
- self.z_adjust_up_btn.setMaximumSize(QtCore.QSize(80, 80))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(36)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.z_adjust_up_btn.setFont(font)
- self.z_adjust_up_btn.setMouseTracking(False)
- self.z_adjust_up_btn.setTabletTracking(True)
- self.z_adjust_up_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.z_adjust_up_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.z_adjust_up_btn.setStyleSheet("")
- self.z_adjust_up_btn.setAutoDefault(False)
- self.z_adjust_up_btn.setFlat(True)
- self.z_adjust_up_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/arrow_icons/media/btn_icons/up_arrow.svg"))
- self.z_adjust_up_btn.setObjectName("z_adjust_up_btn")
- self.z_adjust_move_buttons_layout.addWidget(self.z_adjust_up_btn, 0, QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.z_adjust_down_btn = IconButton(parent=self.verticalLayoutWidget_8)
- self.z_adjust_down_btn.setMinimumSize(QtCore.QSize(80, 80))
- self.z_adjust_down_btn.setMaximumSize(QtCore.QSize(80, 80))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(26)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.z_adjust_down_btn.setFont(font)
- self.z_adjust_down_btn.setMouseTracking(False)
- self.z_adjust_down_btn.setTabletTracking(True)
- self.z_adjust_down_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.z_adjust_down_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.z_adjust_down_btn.setStyleSheet("")
- self.z_adjust_down_btn.setAutoDefault(False)
- self.z_adjust_down_btn.setFlat(True)
- self.z_adjust_down_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/arrow_icons/media/btn_icons/down_arrow.svg"))
- self.z_adjust_down_btn.setObjectName("z_adjust_down_btn")
- self.z_adjust_move_buttons_layout.addWidget(self.z_adjust_down_btn, 0, QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.z_adjust_title = BlocksCustomButton(parent=self.z_adjustment_page)
- self.z_adjust_title.setGeometry(QtCore.QRect(170, 80, 371, 51))
- self.z_adjust_title.setMinimumSize(QtCore.QSize(10, 10))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(20)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.z_adjust_title.setFont(font)
- self.z_adjust_title.setMouseTracking(False)
- self.z_adjust_title.setTabletTracking(True)
- self.z_adjust_title.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.z_adjust_title.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.z_adjust_title.setStyleSheet("")
- self.z_adjust_title.setAutoDefault(False)
- self.z_adjust_title.setFlat(True)
- self.z_adjust_title.setObjectName("z_adjust_title")
- self.horizontalLayoutWidget_11 = QtWidgets.QWidget(parent=self.z_adjustment_page)
- self.horizontalLayoutWidget_11.setGeometry(QtCore.QRect(20, 320, 671, 71))
- self.horizontalLayoutWidget_11.setObjectName("horizontalLayoutWidget_11")
- self.z_adjust_buttons_layout = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_11)
- self.z_adjust_buttons_layout.setContentsMargins(0, 0, 0, 0)
- self.z_adjust_buttons_layout.setObjectName("z_adjust_buttons_layout")
- self.z_adjust_confirm_btn = BlocksCustomButton(parent=self.horizontalLayoutWidget_11)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.z_adjust_confirm_btn.sizePolicy().hasHeightForWidth())
- self.z_adjust_confirm_btn.setSizePolicy(sizePolicy)
- self.z_adjust_confirm_btn.setMinimumSize(QtCore.QSize(10, 0))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(20)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.z_adjust_confirm_btn.setFont(font)
- self.z_adjust_confirm_btn.setMouseTracking(False)
- self.z_adjust_confirm_btn.setTabletTracking(True)
- self.z_adjust_confirm_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.z_adjust_confirm_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.z_adjust_confirm_btn.setStyleSheet("")
- self.z_adjust_confirm_btn.setAutoDefault(False)
- self.z_adjust_confirm_btn.setFlat(True)
- self.z_adjust_confirm_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/dialog/media/btn_icons/yes.svg"))
- self.z_adjust_confirm_btn.setObjectName("z_adjust_confirm_btn")
- self.z_adjust_buttons_layout.addWidget(self.z_adjust_confirm_btn)
- self.z_adjust_cancel_btn = BlocksCustomButton(parent=self.horizontalLayoutWidget_11)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.z_adjust_cancel_btn.sizePolicy().hasHeightForWidth())
- self.z_adjust_cancel_btn.setSizePolicy(sizePolicy)
- self.z_adjust_cancel_btn.setMinimumSize(QtCore.QSize(10, 0))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(20)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.z_adjust_cancel_btn.setFont(font)
- self.z_adjust_cancel_btn.setMouseTracking(False)
- self.z_adjust_cancel_btn.setTabletTracking(True)
- self.z_adjust_cancel_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.z_adjust_cancel_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.z_adjust_cancel_btn.setStyleSheet("")
- self.z_adjust_cancel_btn.setAutoDefault(False)
- self.z_adjust_cancel_btn.setFlat(True)
- self.z_adjust_cancel_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/dialog/media/btn_icons/no.svg"))
- self.z_adjust_cancel_btn.setObjectName("z_adjust_cancel_btn")
- self.z_adjust_buttons_layout.addWidget(self.z_adjust_cancel_btn)
- controlStackedWidget.addWidget(self.z_adjustment_page)
- self.printer_settings_page = QtWidgets.QWidget()
- self.printer_settings_page.setMinimumSize(QtCore.QSize(710, 400))
- self.printer_settings_page.setMaximumSize(QtCore.QSize(720, 420))
- self.printer_settings_page.setObjectName("printer_settings_page")
- self.horizontalLayoutWidget_12 = QtWidgets.QWidget(parent=self.printer_settings_page)
- self.horizontalLayoutWidget_12.setGeometry(QtCore.QRect(10, 11, 691, 71))
- self.horizontalLayoutWidget_12.setObjectName("horizontalLayoutWidget_12")
- self.printer_setting_header_layout = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_12)
- self.printer_setting_header_layout.setContentsMargins(0, 0, 0, 0)
- self.printer_setting_header_layout.setObjectName("printer_setting_header_layout")
- self.printer_settings_title_label = QtWidgets.QLabel(parent=self.horizontalLayoutWidget_12)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.printer_settings_title_label.sizePolicy().hasHeightForWidth())
- self.printer_settings_title_label.setSizePolicy(sizePolicy)
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(24)
- self.printer_settings_title_label.setFont(font)
- self.printer_settings_title_label.setStyleSheet("background: transparent; color: white;")
- self.printer_settings_title_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.printer_settings_title_label.setObjectName("printer_settings_title_label")
- self.printer_setting_header_layout.addWidget(self.printer_settings_title_label)
- self.printer_settings_back_btn = IconButton(parent=self.horizontalLayoutWidget_12)
- self.printer_settings_back_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.printer_settings_back_btn.setMaximumSize(QtCore.QSize(60, 60))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(20)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.printer_settings_back_btn.setFont(font)
- self.printer_settings_back_btn.setMouseTracking(False)
- self.printer_settings_back_btn.setTabletTracking(True)
- self.printer_settings_back_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.printer_settings_back_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.printer_settings_back_btn.setStyleSheet("")
- self.printer_settings_back_btn.setAutoDefault(False)
- self.printer_settings_back_btn.setFlat(True)
- self.printer_settings_back_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/back.svg"))
- self.printer_settings_back_btn.setObjectName("printer_settings_back_btn")
- self.printer_setting_header_layout.addWidget(self.printer_settings_back_btn)
- self.gridLayoutWidget_3 = QtWidgets.QWidget(parent=self.printer_settings_page)
- self.gridLayoutWidget_3.setGeometry(QtCore.QRect(10, 90, 691, 301))
- self.gridLayoutWidget_3.setObjectName("gridLayoutWidget_3")
- self.printer_setting_content_layout = QtWidgets.QGridLayout(self.gridLayoutWidget_3)
- self.printer_setting_content_layout.setContentsMargins(0, 0, 0, 0)
- self.printer_setting_content_layout.setObjectName("printer_setting_content_layout")
- controlStackedWidget.addWidget(self.printer_settings_page)
- self.fans_page = QtWidgets.QWidget()
- self.fans_page.setObjectName("fans_page")
- self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.fans_page)
- self.verticalLayout_5.setObjectName("verticalLayout_5")
- spacerItem9 = QtWidgets.QSpacerItem(20, 24, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- self.verticalLayout_5.addItem(spacerItem9)
- self.fans_header_layout = QtWidgets.QHBoxLayout()
- self.fans_header_layout.setObjectName("fans_header_layout")
- spacerItem10 = QtWidgets.QSpacerItem(60, 20, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- self.fans_header_layout.addItem(spacerItem10)
- self.fans_title_label = QtWidgets.QLabel(parent=self.fans_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.fans_title_label.sizePolicy().hasHeightForWidth())
- self.fans_title_label.setSizePolicy(sizePolicy)
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(24)
- self.fans_title_label.setFont(font)
- self.fans_title_label.setStyleSheet("background: transparent; color: white;")
- self.fans_title_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.fans_title_label.setObjectName("fans_title_label")
- self.fans_header_layout.addWidget(self.fans_title_label)
- self.fans_back_btn = IconButton(parent=self.fans_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.fans_back_btn.sizePolicy().hasHeightForWidth())
- self.fans_back_btn.setSizePolicy(sizePolicy)
- self.fans_back_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.fans_back_btn.setMaximumSize(QtCore.QSize(60, 60))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(20)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.fans_back_btn.setFont(font)
- self.fans_back_btn.setMouseTracking(False)
- self.fans_back_btn.setTabletTracking(True)
- self.fans_back_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.fans_back_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.fans_back_btn.setStyleSheet("")
- self.fans_back_btn.setAutoDefault(False)
- self.fans_back_btn.setFlat(True)
- self.fans_back_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/back.svg"))
- self.fans_back_btn.setObjectName("fans_back_btn")
- self.fans_header_layout.addWidget(self.fans_back_btn)
- self.verticalLayout_5.addLayout(self.fans_header_layout)
- spacerItem11 = QtWidgets.QSpacerItem(20, 111, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
- self.verticalLayout_5.addItem(spacerItem11)
- self.fans_content_layout = QtWidgets.QHBoxLayout()
- self.fans_content_layout.setObjectName("fans_content_layout")
- self.verticalLayout_5.addLayout(self.fans_content_layout)
- spacerItem12 = QtWidgets.QSpacerItem(20, 111, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
- self.verticalLayout_5.addItem(spacerItem12)
- controlStackedWidget.addWidget(self.fans_page)
-
- self.retranslateUi(controlStackedWidget)
- controlStackedWidget.setCurrentIndex(2)
- QtCore.QMetaObject.connectSlotsByName(controlStackedWidget)
-
- def retranslateUi(self, controlStackedWidget):
- _translate = QtCore.QCoreApplication.translate
- controlStackedWidget.setWindowTitle(_translate("controlStackedWidget", "StackedWidget"))
- self.cp_header_title.setText(_translate("controlStackedWidget", "Control"))
- self.cp_header_title.setProperty("class", _translate("controlStackedWidget", "title_text"))
- self.cp_z_tilt_btn.setText(_translate("controlStackedWidget", "Z-Tilt"))
- self.cp_z_tilt_btn.setProperty("class", _translate("controlStackedWidget", "menu_btn"))
- self.cp_temperature_btn.setText(_translate("controlStackedWidget", "Temp.\n"
-"Control"))
- self.cp_temperature_btn.setProperty("class", _translate("controlStackedWidget", "menu_btn"))
- self.cp_nozzles_calibration_btn.setText(_translate("controlStackedWidget", "Nozzle\n"
-"Calibration"))
- self.cp_nozzles_calibration_btn.setProperty("class", _translate("controlStackedWidget", "menu_btn"))
- self.cp_motion_btn.setText(_translate("controlStackedWidget", "Motion\n"
-"Control"))
- self.cp_motion_btn.setProperty("class", _translate("controlStackedWidget", "menu_btn"))
- self.cp_fans_btn.setText(_translate("controlStackedWidget", "Fans"))
- self.cp_fans_btn.setProperty("class", _translate("controlStackedWidget", "menu_btn"))
- self.cp_switch_print_core_btn.setText(_translate("controlStackedWidget", "Swap\n"
-"Print Core"))
- self.cp_switch_print_core_btn.setProperty("class", _translate("controlStackedWidget", "menu_btn"))
- self.mp_header_title.setText(_translate("controlStackedWidget", "Motion"))
- self.mp_header_title.setProperty("class", _translate("controlStackedWidget", "title_text"))
- self.mp_back_btn.setText(_translate("controlStackedWidget", "Back"))
- self.mp_back_btn.setProperty("class", _translate("controlStackedWidget", "menu_btn"))
- self.mp_back_btn.setProperty("button_type", _translate("controlStackedWidget", "icon"))
- self.motion_move_axis_btn.setText(_translate("controlStackedWidget", "Axis"))
- self.motion_move_axis_btn.setProperty("class", _translate("controlStackedWidget", "menu_btn"))
- self.motion_disable_steppers_btn.setText(_translate("controlStackedWidget", "Disable\n"
-"Steppers"))
- self.motion_disable_steppers_btn.setProperty("class", _translate("controlStackedWidget", "menu_btn"))
- self.motion_extrude_btn.setText(_translate("controlStackedWidget", "Extrude"))
- self.motion_extrude_btn.setProperty("class", _translate("controlStackedWidget", "menu_btn"))
- self.motion_auto_home_btn.setText(_translate("controlStackedWidget", "Auto\n"
-"Home"))
- self.motion_auto_home_btn.setProperty("class", _translate("controlStackedWidget", "menu_btn"))
- self.exp_title_label.setText(_translate("controlStackedWidget", "Extrude"))
- self.exp_title_label.setProperty("class", _translate("controlStackedWidget", "title_text"))
- self.exp_back_btn.setText(_translate("controlStackedWidget", "Back"))
- self.exp_back_btn.setProperty("class", _translate("controlStackedWidget", "menu_btn"))
- self.exp_back_btn.setProperty("button_type", _translate("controlStackedWidget", "icon"))
- self.exp_length_group_box.setTitle(_translate("controlStackedWidget", "Extrude Length (mm)"))
- self.extrude_select_length_10_btn.setText(_translate("controlStackedWidget", "10"))
- self.extrude_select_length_10_btn.setProperty("button_type", _translate("controlStackedWidget", "normal"))
- self.extrude_select_length_50_btn.setText(_translate("controlStackedWidget", "50"))
- self.extrude_select_length_50_btn.setProperty("button_type", _translate("controlStackedWidget", "normal"))
- self.extrude_select_length_100_btn.setText(_translate("controlStackedWidget", "100"))
- self.extrude_select_length_100_btn.setProperty("button_type", _translate("controlStackedWidget", "normal"))
- self.exp_feedrate_group_box.setTitle(_translate("controlStackedWidget", "Extrude Feedrate (mm/s)"))
- self.extrude_select_feedrate_low_btn.setText(_translate("controlStackedWidget", "2"))
- self.extrude_select_feedrate_low_btn.setProperty("button_type", _translate("controlStackedWidget", "normal"))
- self.extrude_select_feedrate_middle_btn.setText(_translate("controlStackedWidget", "4"))
- self.extrude_select_feedrate_middle_btn.setProperty("button_type", _translate("controlStackedWidget", "normal"))
- self.extrude_select_feedrate_high_btn.setText(_translate("controlStackedWidget", "8"))
- self.extrude_select_feedrate_high_btn.setProperty("button_type", _translate("controlStackedWidget", "normal"))
- self.exp_unextrude_btn.setText(_translate("controlStackedWidget", "Retract"))
- self.exp_unextrude_btn.setProperty("class", _translate("controlStackedWidget", "menu_btn"))
- self.exp_extrude_btn.setText(_translate("controlStackedWidget", "Extrude"))
- self.exp_extrude_btn.setProperty("class", _translate("controlStackedWidget", "menu_btn"))
- self.exp_info_label.setText(_translate("controlStackedWidget", "Nozzle heating to extrude"))
- self.mva_x_label.setText(_translate("controlStackedWidget", "X:"))
- self.mva_y_label.setText(_translate("controlStackedWidget", "Y:"))
- self.mva_z_label.setText(_translate("controlStackedWidget", "Z:"))
- self.mva_z_value_label.setText(_translate("controlStackedWidget", "0"))
- self.mva_y_value_label.setText(_translate("controlStackedWidget", "0"))
- self.mva_x_value_label.setText(_translate("controlStackedWidget", "0"))
- self.mva_title_label.setText(_translate("controlStackedWidget", "Move Axis"))
- self.mva_title_label.setProperty("class", _translate("controlStackedWidget", "title_text"))
- self.mva_back_btn.setText(_translate("controlStackedWidget", "Back"))
- self.mva_back_btn.setProperty("class", _translate("controlStackedWidget", "menu_btn"))
- self.mva_back_btn.setProperty("button_type", _translate("controlStackedWidget", "icon"))
- self.mva_z_up.setProperty("button_type", _translate("controlStackedWidget", "icon"))
- self.mva_z_down.setProperty("button_type", _translate("controlStackedWidget", "icon"))
- self.mva_home_x_btn.setProperty("button_type", _translate("controlStackedWidget", "icon"))
- self.mva_home_y_btn.setProperty("button_type", _translate("controlStackedWidget", "icon"))
- self.mva_home_z_btn.setProperty("button_type", _translate("controlStackedWidget", "icon"))
- self.mva_home_all_btn.setProperty("button_type", _translate("controlStackedWidget", "icon"))
- self.mva_select_speed_25_btn.setText(_translate("controlStackedWidget", "25"))
- self.mva_select_speed_50_btn.setText(_translate("controlStackedWidget", "50"))
- self.mva_select_speed_100_btn.setText(_translate("controlStackedWidget", "100"))
- self.label.setText(_translate("controlStackedWidget", "Move Speed mm/s"))
- self.mva_select_length_1_btn.setText(_translate("controlStackedWidget", "1"))
- self.mva_select_length_10_btn.setText(_translate("controlStackedWidget", "10"))
- self.mva_select_length_100_btn.setText(_translate("controlStackedWidget", "100"))
- self.label_2.setText(_translate("controlStackedWidget", "Move Length mm"))
- self.mva_left_btn.setProperty("button_type", _translate("controlStackedWidget", "icon"))
- self.mva_right_btn.setProperty("button_type", _translate("controlStackedWidget", "icon"))
- self.mva_down_btn.setProperty("button_type", _translate("controlStackedWidget", "icon"))
- self.mva_up_btn.setProperty("button_type", _translate("controlStackedWidget", "icon"))
- self.mva_middle.setProperty("button_type", _translate("controlStackedWidget", "icon"))
- self.temp_header_title.setText(_translate("controlStackedWidget", "Temperature"))
- self.temp_header_title.setProperty("class", _translate("controlStackedWidget", "title_text"))
- self.temp_back_button.setText(_translate("controlStackedWidget", "Back"))
- self.temp_back_button.setProperty("button_type", _translate("controlStackedWidget", "icon"))
- self.extruder_temp_display.setProperty("name", _translate("controlStackedWidget", "extruder_temperature_display"))
- self.extruder_temp_display.setProperty("button_type", _translate("controlStackedWidget", "secondary_display"))
- self.bed_temp_display.setProperty("name", _translate("controlStackedWidget", "bed_temperature_display"))
- self.bed_temp_display.setProperty("button_type", _translate("controlStackedWidget", "secondary_display"))
- self.cooldown_btn.setText(_translate("controlStackedWidget", "Cooldown"))
- self.cooldown_btn.setProperty("class", _translate("controlStackedWidget", "menu_btn"))
- self.temperature_cooldown_btn.setText(_translate("controlStackedWidget", "Heatsoak"))
- self.temperature_cooldown_btn.setProperty("class", _translate("controlStackedWidget", "menu_btn"))
- self.z_adjust_icon.setText(_translate("controlStackedWidget", "Z"))
- self.z_adjust_offset_value.setText(_translate("controlStackedWidget", "0"))
- self.z_adjust_header_title.setText(_translate("controlStackedWidget", "Z Adjustment"))
- self.z_adjust_header_title.setProperty("class", _translate("controlStackedWidget", "title_text"))
- self.z_adjust_back_button.setProperty("button_type", _translate("controlStackedWidget", "icon"))
- self.z_adjust_up_btn.setText(_translate("controlStackedWidget", "^"))
- self.z_adjust_up_btn.setProperty("class", _translate("controlStackedWidget", "menu_btn"))
- self.z_adjust_up_btn.setProperty("button_type", _translate("controlStackedWidget", "icon"))
- self.z_adjust_down_btn.setText(_translate("controlStackedWidget", "v"))
- self.z_adjust_down_btn.setProperty("class", _translate("controlStackedWidget", "menu_btn"))
- self.z_adjust_down_btn.setProperty("button_type", _translate("controlStackedWidget", "icon"))
- self.z_adjust_title.setText(_translate("controlStackedWidget", "select length"))
- self.z_adjust_title.setProperty("class", _translate("controlStackedWidget", "menu_btn"))
- self.z_adjust_title.setProperty("button_type", _translate("controlStackedWidget", "normal"))
- self.z_adjust_confirm_btn.setText(_translate("controlStackedWidget", "Confirm"))
- self.z_adjust_confirm_btn.setProperty("class", _translate("controlStackedWidget", "menu_btn"))
- self.z_adjust_cancel_btn.setText(_translate("controlStackedWidget", "Cancel"))
- self.z_adjust_cancel_btn.setProperty("class", _translate("controlStackedWidget", "menu_btn"))
- self.printer_settings_title_label.setText(_translate("controlStackedWidget", "PRINTER SETTINGS"))
- self.printer_settings_title_label.setProperty("class", _translate("controlStackedWidget", "title_text"))
- self.printer_settings_back_btn.setText(_translate("controlStackedWidget", "Back"))
- self.printer_settings_back_btn.setProperty("class", _translate("controlStackedWidget", "menu_btn"))
- self.printer_settings_back_btn.setProperty("button_type", _translate("controlStackedWidget", "icon"))
- self.fans_title_label.setText(_translate("controlStackedWidget", "Fans"))
- self.fans_title_label.setProperty("class", _translate("controlStackedWidget", "title_text"))
- self.fans_back_btn.setText(_translate("controlStackedWidget", "Back"))
- self.fans_back_btn.setProperty("class", _translate("controlStackedWidget", "menu_btn"))
- self.fans_back_btn.setProperty("button_type", _translate("controlStackedWidget", "icon"))
-from lib.utils.blocks_button import BlocksCustomButton
-from lib.utils.blocks_label import BlocksLabel
-from lib.utils.display_button import DisplayButton
-from lib.utils.check_button import BlocksCustomCheckButton
-from lib.utils.icon_button import IconButton
diff --git a/BlocksScreen/lib/ui/customKeyboard.ui b/BlocksScreen/lib/ui/customKeyboard.ui
deleted file mode 100644
index b75a0a92..00000000
--- a/BlocksScreen/lib/ui/customKeyboard.ui
+++ /dev/null
@@ -1,1683 +0,0 @@
-
-
- customNumpad
-
-
- true
-
-
-
- 0
- 0
- 800
- 480
-
-
-
-
- 0
- 0
-
-
-
-
- 800
- 480
-
-
-
- ArrowCursor
-
-
- Form
-
-
- Qt::LeftToRight
-
-
-
-
- 10
- 150
- 781
- 52
-
-
-
-
- QLayout::SetMinimumSize
-
-
- 2
-
-
- 5
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 64
- 50
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- P
-
-
- true
-
-
- left
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 64
- 50
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- I
-
-
- true
-
-
- left
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 64
- 50
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- Y
-
-
- true
-
-
- left
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 64
- 50
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- T
-
-
- true
-
-
- left
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 64
- 50
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- R
-
-
- true
-
-
- left
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 64
- 50
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- O
-
-
- true
-
-
- left
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 64
- 50
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- U
-
-
- true
-
-
- left
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 64
- 50
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- W
-
-
- true
-
-
- left
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 64
- 50
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- E
-
-
- true
-
-
- left
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 64
- 50
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- Q
-
-
- true
-
-
- left
-
-
-
-
-
-
-
-
- 50
- 220
- 701
- 52
-
-
-
-
- 64
- 0
-
-
-
-
- 2
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 64
- 50
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- A
-
-
- true
-
-
- left
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 64
- 50
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- S
-
-
- true
-
-
- left
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 64
- 50
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- D
-
-
- true
-
-
- left
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 64
- 50
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- F
-
-
- true
-
-
- left
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 64
- 50
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- G
-
-
- true
-
-
- left
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 64
- 50
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- H
-
-
- true
-
-
- left
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 64
- 50
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- J
-
-
- true
-
-
- left
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 64
- 50
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- K
-
-
- true
-
-
- left
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 64
- 50
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- L
-
-
- true
-
-
- left
-
-
-
-
-
-
-
-
- 100
- 290
- 591
- 52
-
-
-
-
- 2
-
-
- QLayout::SetMinimumSize
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 55
- 50
-
-
-
-
- 16777215
- 60
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- Z
-
-
- true
-
-
- left
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 55
- 50
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- X
-
-
- true
-
-
- left
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 55
- 50
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- C
-
-
- true
-
-
- left
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 55
- 50
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- V
-
-
- true
-
-
- left
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 55
- 50
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- B
-
-
- true
-
-
- left
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 55
- 50
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- N
-
-
- true
-
-
- left
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 55
- 50
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- M
-
-
- true
-
-
- left
-
-
-
-
-
-
-
-
- 120
- 362
- 551
- 60
-
-
-
-
- 0
- 0
-
-
-
-
- 0
- 60
-
-
-
-
- 16777215
- 60
-
-
-
- Spacing
-
-
-
-
-
- 680
- 350
- 93
- 60
-
-
-
-
- 0
- 0
-
-
-
-
- 0
- 0
-
-
-
-
- 16777215
- 16777215
-
-
-
- ⏎
-
-
- false
-
-
-
-
-
- 700
- 280
- 81
- 51
-
-
-
-
- 0
- 0
-
-
-
-
- 0
- 0
-
-
-
-
- 16777215
- 16777215
-
-
-
- ⌫
-
-
-
-
-
- 20
- 350
- 93
- 60
-
-
-
-
- 0
- 0
-
-
-
-
- 0
- 0
-
-
-
-
- 16777215
- 16777215
-
-
-
- 123
-
-
- true
-
-
-
-
-
- 10
- 280
- 81
- 51
-
-
-
-
- 0
- 0
-
-
-
-
- 0
- 0
-
-
-
-
- 16777215
- 16777215
-
-
-
- ⇧
-
-
- true
-
-
-
-
- true
-
-
-
- 720
- 20
- 60
- 60
-
-
-
-
- 1
- 1
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
-
-
-
-
- 16
- 16
-
-
-
- false
-
-
- false
-
-
- true
-
-
- icon
-
-
- :/ui/media/btn_icons/back.svg
-
-
-
-
-
- 10
- 90
- 781
- 48
-
-
-
- -
-
-
-
- 500
- 0
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 18
-
-
-
- false
-
-
- color: white;
-
-
-
- QFrame::NoFrame
-
-
- QFrame::Sunken
-
-
- 0
-
-
-
-
-
- false
-
-
- Qt::AlignBottom|Qt::AlignHCenter
-
-
- 0
-
-
- Qt::LinksAccessibleByMouse
-
-
-
- -
-
-
- Qt::Horizontal
-
-
-
-
-
-
-
-
- IconButton
- QPushButton
-
-
-
- NumpadButton
- QPushButton
-
-
-
-
-
-
-
-
-
diff --git a/BlocksScreen/lib/ui/customKeyboard_ui.py b/BlocksScreen/lib/ui/customKeyboard_ui.py
deleted file mode 100644
index 55db21ee..00000000
--- a/BlocksScreen/lib/ui/customKeyboard_ui.py
+++ /dev/null
@@ -1,816 +0,0 @@
-# Form implementation generated from reading ui file '/home/levi/main/Blocks_Screen/BlocksScreen/lib/ui/customKeyboard.ui'
-#
-# Created by: PyQt6 UI code generator 6.7.1
-#
-# WARNING: Any manual changes made to this file will be lost when pyuic6 is
-# run again. Do not edit this file unless you know what you are doing.
-
-
-from PyQt6 import QtCore, QtGui, QtWidgets
-
-
-class Ui_customNumpad(object):
- def setupUi(self, customNumpad):
- customNumpad.setObjectName("customNumpad")
- customNumpad.setEnabled(True)
- customNumpad.resize(800, 480)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(customNumpad.sizePolicy().hasHeightForWidth())
- customNumpad.setSizePolicy(sizePolicy)
- customNumpad.setMaximumSize(QtCore.QSize(800, 480))
- customNumpad.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.ArrowCursor))
- customNumpad.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.layoutWidget_2 = QtWidgets.QWidget(parent=customNumpad)
- self.layoutWidget_2.setGeometry(QtCore.QRect(10, 150, 781, 52))
- self.layoutWidget_2.setObjectName("layoutWidget_2")
- self.gridLayout_2 = QtWidgets.QGridLayout(self.layoutWidget_2)
- self.gridLayout_2.setSizeConstraint(QtWidgets.QLayout.SizeConstraint.SetMinimumSize)
- self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
- self.gridLayout_2.setHorizontalSpacing(2)
- self.gridLayout_2.setVerticalSpacing(5)
- self.gridLayout_2.setObjectName("gridLayout_2")
- self.K_p = NumpadButton(parent=self.layoutWidget_2)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_p.sizePolicy().hasHeightForWidth())
- self.K_p.setSizePolicy(sizePolicy)
- self.K_p.setMinimumSize(QtCore.QSize(64, 50))
- self.K_p.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.K_p.setFont(font)
- self.K_p.setTabletTracking(False)
- self.K_p.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.K_p.setFlat(True)
- self.K_p.setObjectName("K_p")
- self.gridLayout_2.addWidget(self.K_p, 0, 9, 1, 1, QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.K_i = NumpadButton(parent=self.layoutWidget_2)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_i.sizePolicy().hasHeightForWidth())
- self.K_i.setSizePolicy(sizePolicy)
- self.K_i.setMinimumSize(QtCore.QSize(64, 50))
- self.K_i.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.K_i.setFont(font)
- self.K_i.setTabletTracking(False)
- self.K_i.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.K_i.setFlat(True)
- self.K_i.setObjectName("K_i")
- self.gridLayout_2.addWidget(self.K_i, 0, 7, 1, 1, QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.K_y = NumpadButton(parent=self.layoutWidget_2)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_y.sizePolicy().hasHeightForWidth())
- self.K_y.setSizePolicy(sizePolicy)
- self.K_y.setMinimumSize(QtCore.QSize(64, 50))
- self.K_y.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.K_y.setFont(font)
- self.K_y.setTabletTracking(False)
- self.K_y.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.K_y.setFlat(True)
- self.K_y.setObjectName("K_y")
- self.gridLayout_2.addWidget(self.K_y, 0, 5, 1, 1, QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.K_t = NumpadButton(parent=self.layoutWidget_2)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_t.sizePolicy().hasHeightForWidth())
- self.K_t.setSizePolicy(sizePolicy)
- self.K_t.setMinimumSize(QtCore.QSize(64, 50))
- self.K_t.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.K_t.setFont(font)
- self.K_t.setTabletTracking(False)
- self.K_t.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.K_t.setFlat(True)
- self.K_t.setObjectName("K_t")
- self.gridLayout_2.addWidget(self.K_t, 0, 4, 1, 1, QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.K_r = NumpadButton(parent=self.layoutWidget_2)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_r.sizePolicy().hasHeightForWidth())
- self.K_r.setSizePolicy(sizePolicy)
- self.K_r.setMinimumSize(QtCore.QSize(64, 50))
- self.K_r.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.K_r.setFont(font)
- self.K_r.setTabletTracking(False)
- self.K_r.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.K_r.setFlat(True)
- self.K_r.setObjectName("K_r")
- self.gridLayout_2.addWidget(self.K_r, 0, 3, 1, 1, QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.K_o = NumpadButton(parent=self.layoutWidget_2)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_o.sizePolicy().hasHeightForWidth())
- self.K_o.setSizePolicy(sizePolicy)
- self.K_o.setMinimumSize(QtCore.QSize(64, 50))
- self.K_o.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.K_o.setFont(font)
- self.K_o.setTabletTracking(False)
- self.K_o.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.K_o.setFlat(True)
- self.K_o.setObjectName("K_o")
- self.gridLayout_2.addWidget(self.K_o, 0, 8, 1, 1, QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.K_u = NumpadButton(parent=self.layoutWidget_2)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_u.sizePolicy().hasHeightForWidth())
- self.K_u.setSizePolicy(sizePolicy)
- self.K_u.setMinimumSize(QtCore.QSize(64, 50))
- self.K_u.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.K_u.setFont(font)
- self.K_u.setTabletTracking(False)
- self.K_u.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.K_u.setFlat(True)
- self.K_u.setObjectName("K_u")
- self.gridLayout_2.addWidget(self.K_u, 0, 6, 1, 1, QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.K_w = NumpadButton(parent=self.layoutWidget_2)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_w.sizePolicy().hasHeightForWidth())
- self.K_w.setSizePolicy(sizePolicy)
- self.K_w.setMinimumSize(QtCore.QSize(64, 50))
- self.K_w.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.K_w.setFont(font)
- self.K_w.setTabletTracking(False)
- self.K_w.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.K_w.setFlat(True)
- self.K_w.setObjectName("K_w")
- self.gridLayout_2.addWidget(self.K_w, 0, 1, 1, 1, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.K_e = NumpadButton(parent=self.layoutWidget_2)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_e.sizePolicy().hasHeightForWidth())
- self.K_e.setSizePolicy(sizePolicy)
- self.K_e.setMinimumSize(QtCore.QSize(64, 50))
- self.K_e.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.K_e.setFont(font)
- self.K_e.setTabletTracking(False)
- self.K_e.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.K_e.setFlat(True)
- self.K_e.setObjectName("K_e")
- self.gridLayout_2.addWidget(self.K_e, 0, 2, 1, 1, QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.K_q = NumpadButton(parent=self.layoutWidget_2)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_q.sizePolicy().hasHeightForWidth())
- self.K_q.setSizePolicy(sizePolicy)
- self.K_q.setMinimumSize(QtCore.QSize(64, 50))
- self.K_q.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.K_q.setFont(font)
- self.K_q.setTabletTracking(False)
- self.K_q.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.K_q.setFlat(True)
- self.K_q.setObjectName("K_q")
- self.gridLayout_2.addWidget(self.K_q, 0, 0, 1, 1, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.layoutWidget = QtWidgets.QWidget(parent=customNumpad)
- self.layoutWidget.setGeometry(QtCore.QRect(50, 220, 701, 52))
- self.layoutWidget.setMinimumSize(QtCore.QSize(64, 0))
- self.layoutWidget.setObjectName("layoutWidget")
- self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.layoutWidget)
- self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
- self.horizontalLayout_2.setSpacing(2)
- self.horizontalLayout_2.setObjectName("horizontalLayout_2")
- self.K_a = NumpadButton(parent=self.layoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_a.sizePolicy().hasHeightForWidth())
- self.K_a.setSizePolicy(sizePolicy)
- self.K_a.setMinimumSize(QtCore.QSize(64, 50))
- self.K_a.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.K_a.setFont(font)
- self.K_a.setTabletTracking(False)
- self.K_a.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.K_a.setFlat(True)
- self.K_a.setObjectName("K_a")
- self.horizontalLayout_2.addWidget(self.K_a)
- self.K_s = NumpadButton(parent=self.layoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_s.sizePolicy().hasHeightForWidth())
- self.K_s.setSizePolicy(sizePolicy)
- self.K_s.setMinimumSize(QtCore.QSize(64, 50))
- self.K_s.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.K_s.setFont(font)
- self.K_s.setTabletTracking(False)
- self.K_s.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.K_s.setFlat(True)
- self.K_s.setObjectName("K_s")
- self.horizontalLayout_2.addWidget(self.K_s)
- self.K_d = NumpadButton(parent=self.layoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_d.sizePolicy().hasHeightForWidth())
- self.K_d.setSizePolicy(sizePolicy)
- self.K_d.setMinimumSize(QtCore.QSize(64, 50))
- self.K_d.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.K_d.setFont(font)
- self.K_d.setTabletTracking(False)
- self.K_d.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.K_d.setFlat(True)
- self.K_d.setObjectName("K_d")
- self.horizontalLayout_2.addWidget(self.K_d)
- self.K_f = NumpadButton(parent=self.layoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_f.sizePolicy().hasHeightForWidth())
- self.K_f.setSizePolicy(sizePolicy)
- self.K_f.setMinimumSize(QtCore.QSize(64, 50))
- self.K_f.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.K_f.setFont(font)
- self.K_f.setTabletTracking(False)
- self.K_f.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.K_f.setFlat(True)
- self.K_f.setObjectName("K_f")
- self.horizontalLayout_2.addWidget(self.K_f)
- self.K_g = NumpadButton(parent=self.layoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_g.sizePolicy().hasHeightForWidth())
- self.K_g.setSizePolicy(sizePolicy)
- self.K_g.setMinimumSize(QtCore.QSize(64, 50))
- self.K_g.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.K_g.setFont(font)
- self.K_g.setTabletTracking(False)
- self.K_g.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.K_g.setFlat(True)
- self.K_g.setObjectName("K_g")
- self.horizontalLayout_2.addWidget(self.K_g)
- self.K_h = NumpadButton(parent=self.layoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_h.sizePolicy().hasHeightForWidth())
- self.K_h.setSizePolicy(sizePolicy)
- self.K_h.setMinimumSize(QtCore.QSize(64, 50))
- self.K_h.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.K_h.setFont(font)
- self.K_h.setTabletTracking(False)
- self.K_h.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.K_h.setFlat(True)
- self.K_h.setObjectName("K_h")
- self.horizontalLayout_2.addWidget(self.K_h)
- self.K_j = NumpadButton(parent=self.layoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_j.sizePolicy().hasHeightForWidth())
- self.K_j.setSizePolicy(sizePolicy)
- self.K_j.setMinimumSize(QtCore.QSize(64, 50))
- self.K_j.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.K_j.setFont(font)
- self.K_j.setTabletTracking(False)
- self.K_j.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.K_j.setFlat(True)
- self.K_j.setObjectName("K_j")
- self.horizontalLayout_2.addWidget(self.K_j)
- self.K_k = NumpadButton(parent=self.layoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_k.sizePolicy().hasHeightForWidth())
- self.K_k.setSizePolicy(sizePolicy)
- self.K_k.setMinimumSize(QtCore.QSize(64, 50))
- self.K_k.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.K_k.setFont(font)
- self.K_k.setTabletTracking(False)
- self.K_k.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.K_k.setFlat(True)
- self.K_k.setObjectName("K_k")
- self.horizontalLayout_2.addWidget(self.K_k)
- self.K_l = NumpadButton(parent=self.layoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_l.sizePolicy().hasHeightForWidth())
- self.K_l.setSizePolicy(sizePolicy)
- self.K_l.setMinimumSize(QtCore.QSize(64, 50))
- self.K_l.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.K_l.setFont(font)
- self.K_l.setTabletTracking(False)
- self.K_l.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.K_l.setFlat(True)
- self.K_l.setObjectName("K_l")
- self.horizontalLayout_2.addWidget(self.K_l)
- self.layoutWidget_3 = QtWidgets.QWidget(parent=customNumpad)
- self.layoutWidget_3.setGeometry(QtCore.QRect(100, 290, 591, 52))
- self.layoutWidget_3.setObjectName("layoutWidget_3")
- self.horizontalLayout = QtWidgets.QHBoxLayout(self.layoutWidget_3)
- self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SizeConstraint.SetMinimumSize)
- self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
- self.horizontalLayout.setSpacing(2)
- self.horizontalLayout.setObjectName("horizontalLayout")
- self.K_z = NumpadButton(parent=self.layoutWidget_3)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_z.sizePolicy().hasHeightForWidth())
- self.K_z.setSizePolicy(sizePolicy)
- self.K_z.setMinimumSize(QtCore.QSize(55, 50))
- self.K_z.setMaximumSize(QtCore.QSize(16777215, 60))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.K_z.setFont(font)
- self.K_z.setTabletTracking(False)
- self.K_z.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.K_z.setFlat(True)
- self.K_z.setObjectName("K_z")
- self.horizontalLayout.addWidget(self.K_z)
- self.K_x = NumpadButton(parent=self.layoutWidget_3)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_x.sizePolicy().hasHeightForWidth())
- self.K_x.setSizePolicy(sizePolicy)
- self.K_x.setMinimumSize(QtCore.QSize(55, 50))
- self.K_x.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.K_x.setFont(font)
- self.K_x.setTabletTracking(False)
- self.K_x.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.K_x.setFlat(True)
- self.K_x.setObjectName("K_x")
- self.horizontalLayout.addWidget(self.K_x)
- self.K_c = NumpadButton(parent=self.layoutWidget_3)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_c.sizePolicy().hasHeightForWidth())
- self.K_c.setSizePolicy(sizePolicy)
- self.K_c.setMinimumSize(QtCore.QSize(55, 50))
- self.K_c.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.K_c.setFont(font)
- self.K_c.setTabletTracking(False)
- self.K_c.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.K_c.setFlat(True)
- self.K_c.setObjectName("K_c")
- self.horizontalLayout.addWidget(self.K_c)
- self.K_v = NumpadButton(parent=self.layoutWidget_3)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_v.sizePolicy().hasHeightForWidth())
- self.K_v.setSizePolicy(sizePolicy)
- self.K_v.setMinimumSize(QtCore.QSize(55, 50))
- self.K_v.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.K_v.setFont(font)
- self.K_v.setTabletTracking(False)
- self.K_v.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.K_v.setFlat(True)
- self.K_v.setObjectName("K_v")
- self.horizontalLayout.addWidget(self.K_v)
- self.K_b = NumpadButton(parent=self.layoutWidget_3)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_b.sizePolicy().hasHeightForWidth())
- self.K_b.setSizePolicy(sizePolicy)
- self.K_b.setMinimumSize(QtCore.QSize(55, 50))
- self.K_b.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.K_b.setFont(font)
- self.K_b.setTabletTracking(False)
- self.K_b.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.K_b.setFlat(True)
- self.K_b.setObjectName("K_b")
- self.horizontalLayout.addWidget(self.K_b)
- self.K_n = NumpadButton(parent=self.layoutWidget_3)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_n.sizePolicy().hasHeightForWidth())
- self.K_n.setSizePolicy(sizePolicy)
- self.K_n.setMinimumSize(QtCore.QSize(55, 50))
- self.K_n.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.K_n.setFont(font)
- self.K_n.setTabletTracking(False)
- self.K_n.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.K_n.setFlat(True)
- self.K_n.setObjectName("K_n")
- self.horizontalLayout.addWidget(self.K_n)
- self.K_m = NumpadButton(parent=self.layoutWidget_3)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_m.sizePolicy().hasHeightForWidth())
- self.K_m.setSizePolicy(sizePolicy)
- self.K_m.setMinimumSize(QtCore.QSize(55, 50))
- self.K_m.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.K_m.setFont(font)
- self.K_m.setTabletTracking(False)
- self.K_m.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.K_m.setFlat(True)
- self.K_m.setObjectName("K_m")
- self.horizontalLayout.addWidget(self.K_m)
- self.K_space = QtWidgets.QPushButton(parent=customNumpad)
- self.K_space.setGeometry(QtCore.QRect(120, 362, 551, 60))
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_space.sizePolicy().hasHeightForWidth())
- self.K_space.setSizePolicy(sizePolicy)
- self.K_space.setMinimumSize(QtCore.QSize(0, 60))
- self.K_space.setMaximumSize(QtCore.QSize(16777215, 60))
- self.K_space.setObjectName("K_space")
- self.k_Enter = QtWidgets.QPushButton(parent=customNumpad)
- self.k_Enter.setGeometry(QtCore.QRect(680, 350, 93, 60))
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.k_Enter.sizePolicy().hasHeightForWidth())
- self.k_Enter.setSizePolicy(sizePolicy)
- self.k_Enter.setMinimumSize(QtCore.QSize(0, 0))
- self.k_Enter.setMaximumSize(QtCore.QSize(16777215, 16777215))
- self.k_Enter.setAutoRepeat(False)
- self.k_Enter.setObjectName("k_Enter")
- self.k_delete = QtWidgets.QPushButton(parent=customNumpad)
- self.k_delete.setGeometry(QtCore.QRect(700, 280, 81, 51))
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.k_delete.sizePolicy().hasHeightForWidth())
- self.k_delete.setSizePolicy(sizePolicy)
- self.k_delete.setMinimumSize(QtCore.QSize(0, 0))
- self.k_delete.setMaximumSize(QtCore.QSize(16777215, 16777215))
- self.k_delete.setObjectName("k_delete")
- self.K_keychange = QtWidgets.QPushButton(parent=customNumpad)
- self.K_keychange.setGeometry(QtCore.QRect(20, 350, 93, 60))
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_keychange.sizePolicy().hasHeightForWidth())
- self.K_keychange.setSizePolicy(sizePolicy)
- self.K_keychange.setMinimumSize(QtCore.QSize(0, 0))
- self.K_keychange.setMaximumSize(QtCore.QSize(16777215, 16777215))
- self.K_keychange.setCheckable(True)
- self.K_keychange.setObjectName("K_keychange")
- self.K_shift = QtWidgets.QPushButton(parent=customNumpad)
- self.K_shift.setGeometry(QtCore.QRect(10, 280, 81, 51))
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.K_shift.sizePolicy().hasHeightForWidth())
- self.K_shift.setSizePolicy(sizePolicy)
- self.K_shift.setMinimumSize(QtCore.QSize(0, 0))
- self.K_shift.setMaximumSize(QtCore.QSize(16777215, 16777215))
- self.K_shift.setCheckable(True)
- self.K_shift.setObjectName("K_shift")
- self.numpad_back_btn = IconButton(parent=customNumpad)
- self.numpad_back_btn.setEnabled(True)
- self.numpad_back_btn.setGeometry(QtCore.QRect(720, 20, 60, 60))
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.numpad_back_btn.sizePolicy().hasHeightForWidth())
- self.numpad_back_btn.setSizePolicy(sizePolicy)
- self.numpad_back_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.numpad_back_btn.setMaximumSize(QtCore.QSize(60, 60))
- self.numpad_back_btn.setStyleSheet("")
- self.numpad_back_btn.setText("")
- self.numpad_back_btn.setIconSize(QtCore.QSize(16, 16))
- self.numpad_back_btn.setCheckable(False)
- self.numpad_back_btn.setChecked(False)
- self.numpad_back_btn.setFlat(True)
- self.numpad_back_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/back.svg"))
- self.numpad_back_btn.setObjectName("numpad_back_btn")
- self.layoutWidget1 = QtWidgets.QWidget(parent=customNumpad)
- self.layoutWidget1.setGeometry(QtCore.QRect(10, 90, 781, 48))
- self.layoutWidget1.setObjectName("layoutWidget1")
- self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.layoutWidget1)
- self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
- self.verticalLayout_2.setObjectName("verticalLayout_2")
- self.inserted_value = QtWidgets.QLabel(parent=self.layoutWidget1)
- self.inserted_value.setMinimumSize(QtCore.QSize(500, 0))
- self.inserted_value.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(18)
- self.inserted_value.setFont(font)
- self.inserted_value.setAutoFillBackground(False)
- self.inserted_value.setStyleSheet("color: white;\n"
-" ")
- self.inserted_value.setFrameShape(QtWidgets.QFrame.Shape.NoFrame)
- self.inserted_value.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
- self.inserted_value.setLineWidth(0)
- self.inserted_value.setText("")
- self.inserted_value.setScaledContents(False)
- self.inserted_value.setAlignment(QtCore.Qt.AlignmentFlag.AlignBottom|QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.inserted_value.setIndent(0)
- self.inserted_value.setTextInteractionFlags(QtCore.Qt.TextInteractionFlag.LinksAccessibleByMouse)
- self.inserted_value.setObjectName("inserted_value")
- self.verticalLayout_2.addWidget(self.inserted_value)
- self.line = QtWidgets.QFrame(parent=self.layoutWidget1)
- self.line.setFrameShape(QtWidgets.QFrame.Shape.HLine)
- self.line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
- self.line.setObjectName("line")
- self.verticalLayout_2.addWidget(self.line)
-
- self.retranslateUi(customNumpad)
- QtCore.QMetaObject.connectSlotsByName(customNumpad)
-
- def retranslateUi(self, customNumpad):
- _translate = QtCore.QCoreApplication.translate
- customNumpad.setWindowTitle(_translate("customNumpad", "Form"))
- self.K_p.setText(_translate("customNumpad", "P"))
- self.K_p.setProperty("position", _translate("customNumpad", "left"))
- self.K_i.setText(_translate("customNumpad", "I"))
- self.K_i.setProperty("position", _translate("customNumpad", "left"))
- self.K_y.setText(_translate("customNumpad", "Y"))
- self.K_y.setProperty("position", _translate("customNumpad", "left"))
- self.K_t.setText(_translate("customNumpad", "T"))
- self.K_t.setProperty("position", _translate("customNumpad", "left"))
- self.K_r.setText(_translate("customNumpad", "R"))
- self.K_r.setProperty("position", _translate("customNumpad", "left"))
- self.K_o.setText(_translate("customNumpad", "O"))
- self.K_o.setProperty("position", _translate("customNumpad", "left"))
- self.K_u.setText(_translate("customNumpad", "U"))
- self.K_u.setProperty("position", _translate("customNumpad", "left"))
- self.K_w.setText(_translate("customNumpad", "W"))
- self.K_w.setProperty("position", _translate("customNumpad", "left"))
- self.K_e.setText(_translate("customNumpad", "E"))
- self.K_e.setProperty("position", _translate("customNumpad", "left"))
- self.K_q.setText(_translate("customNumpad", "Q"))
- self.K_q.setProperty("position", _translate("customNumpad", "left"))
- self.K_a.setText(_translate("customNumpad", "A"))
- self.K_a.setProperty("position", _translate("customNumpad", "left"))
- self.K_s.setText(_translate("customNumpad", "S"))
- self.K_s.setProperty("position", _translate("customNumpad", "left"))
- self.K_d.setText(_translate("customNumpad", "D"))
- self.K_d.setProperty("position", _translate("customNumpad", "left"))
- self.K_f.setText(_translate("customNumpad", "F"))
- self.K_f.setProperty("position", _translate("customNumpad", "left"))
- self.K_g.setText(_translate("customNumpad", "G"))
- self.K_g.setProperty("position", _translate("customNumpad", "left"))
- self.K_h.setText(_translate("customNumpad", "H"))
- self.K_h.setProperty("position", _translate("customNumpad", "left"))
- self.K_j.setText(_translate("customNumpad", "J"))
- self.K_j.setProperty("position", _translate("customNumpad", "left"))
- self.K_k.setText(_translate("customNumpad", "K"))
- self.K_k.setProperty("position", _translate("customNumpad", "left"))
- self.K_l.setText(_translate("customNumpad", "L"))
- self.K_l.setProperty("position", _translate("customNumpad", "left"))
- self.K_z.setText(_translate("customNumpad", "Z"))
- self.K_z.setProperty("position", _translate("customNumpad", "left"))
- self.K_x.setText(_translate("customNumpad", "X"))
- self.K_x.setProperty("position", _translate("customNumpad", "left"))
- self.K_c.setText(_translate("customNumpad", "C"))
- self.K_c.setProperty("position", _translate("customNumpad", "left"))
- self.K_v.setText(_translate("customNumpad", "V"))
- self.K_v.setProperty("position", _translate("customNumpad", "left"))
- self.K_b.setText(_translate("customNumpad", "B"))
- self.K_b.setProperty("position", _translate("customNumpad", "left"))
- self.K_n.setText(_translate("customNumpad", "N"))
- self.K_n.setProperty("position", _translate("customNumpad", "left"))
- self.K_m.setText(_translate("customNumpad", "M"))
- self.K_m.setProperty("position", _translate("customNumpad", "left"))
- self.K_space.setText(_translate("customNumpad", "Spacing"))
- self.k_Enter.setText(_translate("customNumpad", "⏎"))
- self.k_delete.setText(_translate("customNumpad", "⌫"))
- self.K_keychange.setText(_translate("customNumpad", "123"))
- self.K_shift.setText(_translate("customNumpad", "⇧"))
- self.numpad_back_btn.setProperty("button_type", _translate("customNumpad", "icon"))
-from lib.utils.icon_button import IconButton
-from lib.utils.numpad_button import NumpadButton
diff --git a/BlocksScreen/lib/ui/customNumpad.ui b/BlocksScreen/lib/ui/customNumpad.ui
deleted file mode 100644
index 3d4e48b9..00000000
--- a/BlocksScreen/lib/ui/customNumpad.ui
+++ /dev/null
@@ -1,793 +0,0 @@
-
-
- customNumpad
-
-
- true
-
-
-
- 0
- 0
- 710
- 410
-
-
-
-
- 0
- 0
-
-
-
- Form
-
-
-
-
- 9
- 9
- 691
- 62
-
-
-
-
- QLayout::SetMaximumSize
-
- -
-
-
-
- 25
-
-
-
- background: transparent;
- color: white;
-
-
- Target Temperature
-
-
- Qt::AlignCenter
-
-
-
- -
-
-
- true
-
-
-
- 1
- 1
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
-
-
-
-
- 16
- 16
-
-
-
- false
-
-
- false
-
-
- true
-
-
- icon
-
-
-
- :/ui/media/btn_icons/back.svg
-
-
-
-
-
-
-
-
- 9
- 72
- 691
- 61
-
-
-
- -
-
-
-
- 500
- 0
-
-
-
-
- 16777215
- 50
-
-
-
-
- Modern
- 18
-
-
-
- false
-
-
- color: white;
-
-
-
- QFrame::NoFrame
-
-
- QFrame::Sunken
-
-
- 0
-
-
- TextLabel
-
-
- false
-
-
- Qt::AlignBottom|Qt::AlignHCenter
-
-
- 0
-
-
- Qt::LinksAccessibleByMouse
-
-
-
- -
-
-
- Qt::Horizontal
-
-
-
-
-
-
-
-
- 120
- 141
- 464
- 261
-
-
-
-
- QLayout::SetMaximumSize
-
-
- 6
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 150
- 63
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- 6
-
-
- true
-
-
- right
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 150
- 63
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::LeftToRight
-
-
- 9
-
-
- true
-
-
- right
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 150
- 63
-
-
-
-
- 150
- 16777215
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- 8
-
-
- true
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 150
- 63
-
-
-
-
- 150
- 16777215
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- 2
-
-
- true
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 150
- 63
-
-
-
-
- 150
- 16777215
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- 0
-
-
- true
-
-
- down
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 150
- 63
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- 3
-
-
- true
-
-
- right
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 150
- 63
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- 4
-
-
- true
-
-
- left
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 150
- 63
-
-
-
-
- 150
- 16777215
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- 5
-
-
- true
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 150
- 63
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- 1
-
-
- true
-
-
- left
-
-
-
- -
-
-
- true
-
-
-
- 1
- 1
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
-
-
-
-
- 16
- 16
-
-
-
- false
-
-
- false
-
-
- true
-
-
- icon
-
-
-
- :/dialog/media/btn_icons/yes.svg
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 150
- 63
-
-
-
-
- Modern
- 29
- 50
- false
- false
- false
- false
- PreferDefault
-
-
-
- false
-
-
- Qt::RightToLeft
-
-
- 7
-
-
- true
-
-
- left
-
-
-
- -
-
-
- true
-
-
-
- 1
- 1
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
-
-
-
-
- 16
- 16
-
-
-
- false
-
-
- false
-
-
- true
-
-
- icon
-
-
-
- :/dialog/media/btn_icons/no.svg
-
-
-
-
-
-
-
-
- IconButton
- QPushButton
-
-
-
- NumpadButton
- QPushButton
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/BlocksScreen/lib/ui/customNumpad_ui.py b/BlocksScreen/lib/ui/customNumpad_ui.py
deleted file mode 100644
index fb64444e..00000000
--- a/BlocksScreen/lib/ui/customNumpad_ui.py
+++ /dev/null
@@ -1,472 +0,0 @@
-# Form implementation generated from reading ui file '/home/bugo/github/BlocksScreen/BlocksScreen/lib/ui/customNumpad.ui'
-#
-# Created by: PyQt6 UI code generator 6.4.2
-#
-# WARNING: Any manual changes made to this file will be lost when pyuic6 is
-# run again. Do not edit this file unless you know what you are doing.
-
-
-from PyQt6 import QtCore, QtGui, QtWidgets
-
-
-class Ui_customNumpad(object):
- def setupUi(self, customNumpad):
- customNumpad.setObjectName("customNumpad")
- customNumpad.setEnabled(True)
- customNumpad.resize(710, 410)
- sizePolicy = QtWidgets.QSizePolicy(
- QtWidgets.QSizePolicy.Policy.Preferred,
- QtWidgets.QSizePolicy.Policy.Preferred,
- )
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(customNumpad.sizePolicy().hasHeightForWidth())
- customNumpad.setSizePolicy(sizePolicy)
- self.layoutWidget = QtWidgets.QWidget(parent=customNumpad)
- self.layoutWidget.setGeometry(QtCore.QRect(9, 9, 691, 62))
- self.layoutWidget.setObjectName("layoutWidget")
- self.gridLayout = QtWidgets.QGridLayout(self.layoutWidget)
- self.gridLayout.setSizeConstraint(
- QtWidgets.QLayout.SizeConstraint.SetMaximumSize
- )
- self.gridLayout.setContentsMargins(0, 0, 0, 0)
- self.gridLayout.setObjectName("gridLayout")
- self.numpad_title = QtWidgets.QLabel(parent=self.layoutWidget)
- font = QtGui.QFont()
- font.setPointSize(25)
- self.numpad_title.setFont(font)
- self.numpad_title.setStyleSheet(
- "background: transparent;\n"
- " color: white;"
- )
- self.numpad_title.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.numpad_title.setObjectName("numpad_title")
- self.gridLayout.addWidget(self.numpad_title, 0, 0, 1, 1)
- self.numpad_back_btn = IconButton(parent=self.layoutWidget)
- self.numpad_back_btn.setEnabled(True)
- sizePolicy = QtWidgets.QSizePolicy(
- QtWidgets.QSizePolicy.Policy.MinimumExpanding,
- QtWidgets.QSizePolicy.Policy.MinimumExpanding,
- )
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(
- self.numpad_back_btn.sizePolicy().hasHeightForWidth()
- )
- self.numpad_back_btn.setSizePolicy(sizePolicy)
- self.numpad_back_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.numpad_back_btn.setMaximumSize(QtCore.QSize(60, 60))
- self.numpad_back_btn.setStyleSheet("")
- self.numpad_back_btn.setText("")
- self.numpad_back_btn.setIconSize(QtCore.QSize(16, 16))
- self.numpad_back_btn.setCheckable(False)
- self.numpad_back_btn.setChecked(False)
- self.numpad_back_btn.setFlat(True)
- self.numpad_back_btn.setProperty(
- "icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/back.svg")
- )
- self.numpad_back_btn.setObjectName("numpad_back_btn")
- self.gridLayout.addWidget(self.numpad_back_btn, 0, 1, 1, 1)
- self.gridLayout.setColumnStretch(0, 2)
- self.layoutWidget1 = QtWidgets.QWidget(parent=customNumpad)
- self.layoutWidget1.setGeometry(QtCore.QRect(9, 72, 691, 61))
- self.layoutWidget1.setObjectName("layoutWidget1")
- self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.layoutWidget1)
- self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
- self.verticalLayout_2.setObjectName("verticalLayout_2")
- self.inserted_value = QtWidgets.QLabel(parent=self.layoutWidget1)
- self.inserted_value.setMinimumSize(QtCore.QSize(500, 0))
- self.inserted_value.setMaximumSize(QtCore.QSize(16777215, 50))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(18)
- self.inserted_value.setFont(font)
- self.inserted_value.setAutoFillBackground(False)
- self.inserted_value.setStyleSheet(
- "color: white;\n "
- )
- self.inserted_value.setFrameShape(QtWidgets.QFrame.Shape.NoFrame)
- self.inserted_value.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
- self.inserted_value.setLineWidth(0)
- self.inserted_value.setScaledContents(False)
- self.inserted_value.setAlignment(
- QtCore.Qt.AlignmentFlag.AlignBottom | QtCore.Qt.AlignmentFlag.AlignHCenter
- )
- self.inserted_value.setIndent(0)
- self.inserted_value.setTextInteractionFlags(
- QtCore.Qt.TextInteractionFlag.LinksAccessibleByMouse
- )
- self.inserted_value.setObjectName("inserted_value")
- self.verticalLayout_2.addWidget(
- self.inserted_value,
- 0,
- QtCore.Qt.AlignmentFlag.AlignHCenter | QtCore.Qt.AlignmentFlag.AlignBottom,
- )
- self.line = QtWidgets.QFrame(parent=self.layoutWidget1)
- self.line.setFrameShape(QtWidgets.QFrame.Shape.HLine)
- self.line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
- self.line.setObjectName("line")
- self.verticalLayout_2.addWidget(self.line)
- self.gridLayoutWidget = QtWidgets.QWidget(parent=customNumpad)
- self.gridLayoutWidget.setGeometry(QtCore.QRect(120, 141, 464, 261))
- self.gridLayoutWidget.setObjectName("gridLayoutWidget")
- self.gridLayout_2 = QtWidgets.QGridLayout(self.gridLayoutWidget)
- self.gridLayout_2.setSizeConstraint(
- QtWidgets.QLayout.SizeConstraint.SetMaximumSize
- )
- self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
- self.gridLayout_2.setSpacing(6)
- self.gridLayout_2.setObjectName("gridLayout_2")
- self.numpad_6 = NumpadButton(parent=self.gridLayoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(
- QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed
- )
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.numpad_6.sizePolicy().hasHeightForWidth())
- self.numpad_6.setSizePolicy(sizePolicy)
- self.numpad_6.setMinimumSize(QtCore.QSize(150, 63))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.numpad_6.setFont(font)
- self.numpad_6.setTabletTracking(False)
- self.numpad_6.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.numpad_6.setFlat(True)
- self.numpad_6.setObjectName("numpad_6")
- self.gridLayout_2.addWidget(
- self.numpad_6, 1, 2, 1, 1, QtCore.Qt.AlignmentFlag.AlignRight
- )
- self.numpad_9 = NumpadButton(parent=self.gridLayoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(
- QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed
- )
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.numpad_9.sizePolicy().hasHeightForWidth())
- self.numpad_9.setSizePolicy(sizePolicy)
- self.numpad_9.setMinimumSize(QtCore.QSize(150, 63))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.numpad_9.setFont(font)
- self.numpad_9.setTabletTracking(False)
- self.numpad_9.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.numpad_9.setFlat(True)
- self.numpad_9.setObjectName("numpad_9")
- self.gridLayout_2.addWidget(
- self.numpad_9, 0, 2, 1, 1, QtCore.Qt.AlignmentFlag.AlignLeft
- )
- self.numpad_8 = NumpadButton(parent=self.gridLayoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(
- QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed
- )
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.numpad_8.sizePolicy().hasHeightForWidth())
- self.numpad_8.setSizePolicy(sizePolicy)
- self.numpad_8.setMinimumSize(QtCore.QSize(150, 63))
- self.numpad_8.setMaximumSize(QtCore.QSize(150, 16777215))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.numpad_8.setFont(font)
- self.numpad_8.setTabletTracking(False)
- self.numpad_8.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.numpad_8.setFlat(True)
- self.numpad_8.setObjectName("numpad_8")
- self.gridLayout_2.addWidget(
- self.numpad_8, 0, 1, 1, 1, QtCore.Qt.AlignmentFlag.AlignHCenter
- )
- self.numpad_2 = NumpadButton(parent=self.gridLayoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(
- QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed
- )
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.numpad_2.sizePolicy().hasHeightForWidth())
- self.numpad_2.setSizePolicy(sizePolicy)
- self.numpad_2.setMinimumSize(QtCore.QSize(150, 63))
- self.numpad_2.setMaximumSize(QtCore.QSize(150, 16777215))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.numpad_2.setFont(font)
- self.numpad_2.setTabletTracking(False)
- self.numpad_2.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.numpad_2.setFlat(True)
- self.numpad_2.setObjectName("numpad_2")
- self.gridLayout_2.addWidget(
- self.numpad_2, 2, 1, 1, 1, QtCore.Qt.AlignmentFlag.AlignHCenter
- )
- self.numpad_0 = NumpadButton(parent=self.gridLayoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(
- QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed
- )
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.numpad_0.sizePolicy().hasHeightForWidth())
- self.numpad_0.setSizePolicy(sizePolicy)
- self.numpad_0.setMinimumSize(QtCore.QSize(150, 63))
- self.numpad_0.setMaximumSize(QtCore.QSize(150, 16777215))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.numpad_0.setFont(font)
- self.numpad_0.setTabletTracking(False)
- self.numpad_0.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.numpad_0.setFlat(True)
- self.numpad_0.setObjectName("numpad_0")
- self.gridLayout_2.addWidget(
- self.numpad_0, 3, 1, 1, 1, QtCore.Qt.AlignmentFlag.AlignHCenter
- )
- self.numpad_3 = NumpadButton(parent=self.gridLayoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(
- QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed
- )
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.numpad_3.sizePolicy().hasHeightForWidth())
- self.numpad_3.setSizePolicy(sizePolicy)
- self.numpad_3.setMinimumSize(QtCore.QSize(150, 63))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.numpad_3.setFont(font)
- self.numpad_3.setTabletTracking(False)
- self.numpad_3.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.numpad_3.setFlat(True)
- self.numpad_3.setObjectName("numpad_3")
- self.gridLayout_2.addWidget(
- self.numpad_3, 2, 2, 1, 1, QtCore.Qt.AlignmentFlag.AlignRight
- )
- self.numpad_4 = NumpadButton(parent=self.gridLayoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(
- QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed
- )
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.numpad_4.sizePolicy().hasHeightForWidth())
- self.numpad_4.setSizePolicy(sizePolicy)
- self.numpad_4.setMinimumSize(QtCore.QSize(150, 63))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.numpad_4.setFont(font)
- self.numpad_4.setTabletTracking(False)
- self.numpad_4.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.numpad_4.setFlat(True)
- self.numpad_4.setObjectName("numpad_4")
- self.gridLayout_2.addWidget(
- self.numpad_4, 1, 0, 1, 1, QtCore.Qt.AlignmentFlag.AlignRight
- )
- self.numpad_5 = NumpadButton(parent=self.gridLayoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(
- QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed
- )
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.numpad_5.sizePolicy().hasHeightForWidth())
- self.numpad_5.setSizePolicy(sizePolicy)
- self.numpad_5.setMinimumSize(QtCore.QSize(150, 63))
- self.numpad_5.setMaximumSize(QtCore.QSize(150, 16777215))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.numpad_5.setFont(font)
- self.numpad_5.setTabletTracking(False)
- self.numpad_5.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.numpad_5.setFlat(True)
- self.numpad_5.setObjectName("numpad_5")
- self.gridLayout_2.addWidget(
- self.numpad_5, 1, 1, 1, 1, QtCore.Qt.AlignmentFlag.AlignHCenter
- )
- self.numpad_1 = NumpadButton(parent=self.gridLayoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(
- QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed
- )
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.numpad_1.sizePolicy().hasHeightForWidth())
- self.numpad_1.setSizePolicy(sizePolicy)
- self.numpad_1.setMinimumSize(QtCore.QSize(150, 63))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.numpad_1.setFont(font)
- self.numpad_1.setTabletTracking(False)
- self.numpad_1.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.numpad_1.setFlat(True)
- self.numpad_1.setObjectName("numpad_1")
- self.gridLayout_2.addWidget(
- self.numpad_1, 2, 0, 1, 1, QtCore.Qt.AlignmentFlag.AlignRight
- )
- self.numpad_enter = IconButton(parent=self.gridLayoutWidget)
- self.numpad_enter.setEnabled(True)
- sizePolicy = QtWidgets.QSizePolicy(
- QtWidgets.QSizePolicy.Policy.MinimumExpanding,
- QtWidgets.QSizePolicy.Policy.MinimumExpanding,
- )
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.numpad_enter.sizePolicy().hasHeightForWidth())
- self.numpad_enter.setSizePolicy(sizePolicy)
- self.numpad_enter.setMinimumSize(QtCore.QSize(60, 60))
- self.numpad_enter.setMaximumSize(QtCore.QSize(60, 60))
- self.numpad_enter.setStyleSheet("")
- self.numpad_enter.setText("")
- self.numpad_enter.setIconSize(QtCore.QSize(16, 16))
- self.numpad_enter.setCheckable(False)
- self.numpad_enter.setChecked(False)
- self.numpad_enter.setFlat(True)
- self.numpad_enter.setProperty(
- "icon_pixmap",
- QtGui.QPixmap(
- ":/dialog/media/btn_icons/yes.svg"
- ),
- )
- self.numpad_enter.setObjectName("numpad_enter")
- self.gridLayout_2.addWidget(
- self.numpad_enter, 3, 0, 1, 1, QtCore.Qt.AlignmentFlag.AlignHCenter
- )
- self.numpad_7 = NumpadButton(parent=self.gridLayoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(
- QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed
- )
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.numpad_7.sizePolicy().hasHeightForWidth())
- self.numpad_7.setSizePolicy(sizePolicy)
- self.numpad_7.setMinimumSize(QtCore.QSize(150, 63))
- font = QtGui.QFont()
- font.setFamily("Modern")
- font.setPointSize(29)
- font.setBold(False)
- font.setItalic(False)
- font.setUnderline(False)
- font.setWeight(50)
- font.setStrikeOut(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
- self.numpad_7.setFont(font)
- self.numpad_7.setTabletTracking(False)
- self.numpad_7.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.numpad_7.setFlat(True)
- self.numpad_7.setObjectName("numpad_7")
- self.gridLayout_2.addWidget(self.numpad_7, 0, 0, 1, 1)
- self.numpad_clear = IconButton(parent=self.gridLayoutWidget)
- self.numpad_clear.setEnabled(True)
- sizePolicy = QtWidgets.QSizePolicy(
- QtWidgets.QSizePolicy.Policy.MinimumExpanding,
- QtWidgets.QSizePolicy.Policy.MinimumExpanding,
- )
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.numpad_clear.sizePolicy().hasHeightForWidth())
- self.numpad_clear.setSizePolicy(sizePolicy)
- self.numpad_clear.setMinimumSize(QtCore.QSize(60, 60))
- self.numpad_clear.setMaximumSize(QtCore.QSize(60, 60))
- self.numpad_clear.setStyleSheet("")
- self.numpad_clear.setText("")
- self.numpad_clear.setIconSize(QtCore.QSize(16, 16))
- self.numpad_clear.setCheckable(False)
- self.numpad_clear.setChecked(False)
- self.numpad_clear.setFlat(True)
- self.numpad_clear.setProperty(
- "icon_pixmap",
- QtGui.QPixmap(
- ":/dialog/media/btn_icons/no.svg"
- ),
- )
- self.numpad_clear.setObjectName("numpad_clear")
- self.gridLayout_2.addWidget(
- self.numpad_clear, 3, 2, 1, 1, QtCore.Qt.AlignmentFlag.AlignHCenter
- )
-
- self.retranslateUi(customNumpad)
- QtCore.QMetaObject.connectSlotsByName(customNumpad)
-
- def retranslateUi(self, customNumpad):
- _translate = QtCore.QCoreApplication.translate
- customNumpad.setWindowTitle(_translate("customNumpad", "Form"))
- self.numpad_title.setText(_translate("customNumpad", "Target Temperature"))
- self.numpad_back_btn.setProperty(
- "button_type", _translate("customNumpad", "icon")
- )
- self.inserted_value.setText(_translate("customNumpad", "TextLabel"))
- self.numpad_6.setText(_translate("customNumpad", "6"))
- self.numpad_6.setProperty("position", _translate("customNumpad", "right"))
- self.numpad_9.setText(_translate("customNumpad", "9"))
- self.numpad_9.setProperty("position", _translate("customNumpad", "right"))
- self.numpad_8.setText(_translate("customNumpad", "8"))
- self.numpad_2.setText(_translate("customNumpad", "2"))
- self.numpad_0.setText(_translate("customNumpad", "0"))
- self.numpad_0.setProperty("position", _translate("customNumpad", "down"))
- self.numpad_3.setText(_translate("customNumpad", "3"))
- self.numpad_3.setProperty("position", _translate("customNumpad", "right"))
- self.numpad_4.setText(_translate("customNumpad", "4"))
- self.numpad_4.setProperty("position", _translate("customNumpad", "left"))
- self.numpad_5.setText(_translate("customNumpad", "5"))
- self.numpad_1.setText(_translate("customNumpad", "1"))
- self.numpad_1.setProperty("position", _translate("customNumpad", "left"))
- self.numpad_enter.setProperty("button_type", _translate("customNumpad", "icon"))
- self.numpad_7.setText(_translate("customNumpad", "7"))
- self.numpad_7.setProperty("position", _translate("customNumpad", "left"))
- self.numpad_clear.setProperty("button_type", _translate("customNumpad", "icon"))
-
-
-from lib.utils.icon_button import IconButton
-from lib.utils.numpad_button import NumpadButton
diff --git a/BlocksScreen/lib/ui/fansPage.ui b/BlocksScreen/lib/ui/fansPage.ui
deleted file mode 100644
index f77b1652..00000000
--- a/BlocksScreen/lib/ui/fansPage.ui
+++ /dev/null
@@ -1,204 +0,0 @@
-
-
- fansPage
-
-
-
- 0
- 0
- 710
- 410
-
-
-
-
- 710
- 410
-
-
-
-
- 720
- 420
-
-
-
- Form
-
-
-
-
- 10
- 10
- 691
- 71
-
-
-
- -
-
-
-
- 24
-
-
-
- background: transparent; color: white;
-
-
- Fans
-
-
-
- -
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
- true
-
-
- icon
-
-
- :/button_borders/media/btn_icons/back.svg
-
-
-
-
-
-
-
-
- 10
- 90
- 691
- 301
-
-
-
-
- 5
-
-
- 5
-
-
- 5
-
-
- 5
-
- -
-
-
- 5
-
-
- 5
-
-
- 5
-
-
- 5
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 200
- 60
-
-
-
-
- 200
- 60
-
-
-
-
-
-
- true
-
-
- display
-
-
- :/temperatures/media/btn_icons/fan.svg
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 200
- 60
-
-
-
-
- 200
- 60
-
-
-
-
-
-
- true
-
-
- display
-
-
- :/temperatures/media/btn_icons/blower.svg
-
-
-
-
-
-
-
-
-
-
- BlocksCustomButton
- QPushButton
-
-
-
-
-
-
-
-
-
diff --git a/BlocksScreen/lib/ui/fansPage_ui.py b/BlocksScreen/lib/ui/fansPage_ui.py
deleted file mode 100644
index b4f09669..00000000
--- a/BlocksScreen/lib/ui/fansPage_ui.py
+++ /dev/null
@@ -1,87 +0,0 @@
-# Form implementation generated from reading ui file '/home/bugo/github/Blocks_Screen/BlocksScreen/lib/ui/fansPage.ui'
-#
-# Created by: PyQt6 UI code generator 6.4.2
-#
-# WARNING: Any manual changes made to this file will be lost when pyuic6 is
-# run again. Do not edit this file unless you know what you are doing.
-
-
-from PyQt6 import QtCore, QtGui, QtWidgets
-
-
-class Ui_fansPage(object):
- def setupUi(self, fansPage):
- fansPage.setObjectName("fansPage")
- fansPage.resize(710, 410)
- fansPage.setMinimumSize(QtCore.QSize(710, 410))
- fansPage.setMaximumSize(QtCore.QSize(720, 420))
- self.horizontalLayoutWidget = QtWidgets.QWidget(parent=fansPage)
- self.horizontalLayoutWidget.setGeometry(QtCore.QRect(10, 10, 691, 71))
- self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
- self.fp_header_layout = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget)
- self.fp_header_layout.setContentsMargins(0, 0, 0, 0)
- self.fp_header_layout.setObjectName("fp_header_layout")
- self.fp_header_title = QtWidgets.QLabel(parent=self.horizontalLayoutWidget)
- font = QtGui.QFont()
- font.setPointSize(24)
- self.fp_header_title.setFont(font)
- self.fp_header_title.setStyleSheet("background: transparent; color: white;")
- self.fp_header_title.setObjectName("fp_header_title")
- self.fp_header_layout.addWidget(self.fp_header_title)
- self.fp_header_back_btn = BlocksCustomButton(parent=self.horizontalLayoutWidget)
- self.fp_header_back_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.fp_header_back_btn.setMaximumSize(QtCore.QSize(60, 60))
- self.fp_header_back_btn.setText("")
- self.fp_header_back_btn.setFlat(True)
- self.fp_header_back_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/button_borders/media/btn_icons/back.svg"))
- self.fp_header_back_btn.setObjectName("fp_header_back_btn")
- self.fp_header_layout.addWidget(self.fp_header_back_btn)
- self.verticalLayoutWidget = QtWidgets.QWidget(parent=fansPage)
- self.verticalLayoutWidget.setGeometry(QtCore.QRect(10, 90, 691, 301))
- self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
- self.fp_content_vertical_layout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
- self.fp_content_vertical_layout.setContentsMargins(5, 5, 5, 5)
- self.fp_content_vertical_layout.setObjectName("fp_content_vertical_layout")
- self.fp_content_horizonta_layout = QtWidgets.QHBoxLayout()
- self.fp_content_horizonta_layout.setContentsMargins(5, 5, 5, 5)
- self.fp_content_horizonta_layout.setObjectName("fp_content_horizonta_layout")
- self.part_cooling_fan_display = BlocksCustomButton(parent=self.verticalLayoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.part_cooling_fan_display.sizePolicy().hasHeightForWidth())
- self.part_cooling_fan_display.setSizePolicy(sizePolicy)
- self.part_cooling_fan_display.setMinimumSize(QtCore.QSize(200, 60))
- self.part_cooling_fan_display.setMaximumSize(QtCore.QSize(200, 60))
- self.part_cooling_fan_display.setText("")
- self.part_cooling_fan_display.setFlat(True)
- self.part_cooling_fan_display.setProperty("icon_pixmap", QtGui.QPixmap(":/temperatures/media/btn_icons/fan.svg"))
- self.part_cooling_fan_display.setObjectName("part_cooling_fan_display")
- self.fp_content_horizonta_layout.addWidget(self.part_cooling_fan_display)
- self.auxiliary_fan_display = BlocksCustomButton(parent=self.verticalLayoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.auxiliary_fan_display.sizePolicy().hasHeightForWidth())
- self.auxiliary_fan_display.setSizePolicy(sizePolicy)
- self.auxiliary_fan_display.setMinimumSize(QtCore.QSize(200, 60))
- self.auxiliary_fan_display.setMaximumSize(QtCore.QSize(200, 60))
- self.auxiliary_fan_display.setText("")
- self.auxiliary_fan_display.setFlat(True)
- self.auxiliary_fan_display.setProperty("icon_pixmap", QtGui.QPixmap(":/temperatures/media/btn_icons/blower.svg"))
- self.auxiliary_fan_display.setObjectName("auxiliary_fan_display")
- self.fp_content_horizonta_layout.addWidget(self.auxiliary_fan_display)
- self.fp_content_vertical_layout.addLayout(self.fp_content_horizonta_layout)
-
- self.retranslateUi(fansPage)
- QtCore.QMetaObject.connectSlotsByName(fansPage)
-
- def retranslateUi(self, fansPage):
- _translate = QtCore.QCoreApplication.translate
- fansPage.setWindowTitle(_translate("fansPage", "Form"))
- self.fp_header_title.setText(_translate("fansPage", "Fans"))
- self.fp_header_back_btn.setProperty("button_type", _translate("fansPage", "icon"))
- self.part_cooling_fan_display.setProperty("button_type", _translate("fansPage", "display"))
- self.auxiliary_fan_display.setProperty("button_type", _translate("fansPage", "display"))
-from utils.blocks_button import BlocksCustomButton
-
diff --git a/BlocksScreen/lib/ui/filamentSensorsPage.ui b/BlocksScreen/lib/ui/filamentSensorsPage.ui
deleted file mode 100644
index a36ded5c..00000000
--- a/BlocksScreen/lib/ui/filamentSensorsPage.ui
+++ /dev/null
@@ -1,177 +0,0 @@
-
-
- filament_sensors_page
-
-
-
- 0
- 0
- 710
- 410
-
-
-
-
- 0
- 0
-
-
-
-
- 710
- 410
-
-
-
-
- 720
- 420
-
-
-
- Form
-
-
-
-
- 10
- 10
- 691
- 71
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 300
- 60
-
-
-
-
- 16777215
- 60
-
-
-
-
- 24
-
-
-
- background: transparent; color: white;
-
-
- Filament Sensors
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
- true
-
-
- icon
-
-
- :/ui/media/btn_icons/back.svg
-
-
-
-
-
-
-
-
- 10
- 90
- 691
- 302
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 650
- 300
-
-
-
-
- 700
- 300
-
-
-
- Qt::LeftToRight
-
-
- QListWidget{background-color: transparent;}
-
-QLabel{
-color: #ffffff;
-}
-
-
- false
-
-
- QAbstractItemView::NoSelection
-
-
-
-
-
-
-
-
- BlocksCustomButton
- QPushButton
-
-
-
-
-
-
-
-
-
-
diff --git a/BlocksScreen/lib/ui/filamentSensorsPage_ui.py b/BlocksScreen/lib/ui/filamentSensorsPage_ui.py
deleted file mode 100644
index f09b6694..00000000
--- a/BlocksScreen/lib/ui/filamentSensorsPage_ui.py
+++ /dev/null
@@ -1,89 +0,0 @@
-# Form implementation generated from reading ui file 'Blocks_Screen/BlocksScreen/lib/ui/filamentSensorsPage.ui'
-#
-# Created by: PyQt6 UI code generator 6.4.2
-#
-# WARNING: Any manual changes made to this file will be lost when pyuic6 is
-# run again. Do not edit this file unless you know what you are doing.
-
-
-from PyQt6 import QtCore, QtGui, QtWidgets
-
-
-class Ui_filament_sensors_page(object):
- def setupUi(self, filament_sensors_page):
- filament_sensors_page.setObjectName("filament_sensors_page")
- filament_sensors_page.resize(710, 410)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(filament_sensors_page.sizePolicy().hasHeightForWidth())
- filament_sensors_page.setSizePolicy(sizePolicy)
- filament_sensors_page.setMinimumSize(QtCore.QSize(710, 410))
- filament_sensors_page.setMaximumSize(QtCore.QSize(720, 420))
- self.horizontalLayoutWidget = QtWidgets.QWidget(parent=filament_sensors_page)
- self.horizontalLayoutWidget.setGeometry(QtCore.QRect(10, 10, 691, 71))
- self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
- self.fs_header_layout = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget)
- self.fs_header_layout.setContentsMargins(0, 0, 0, 0)
- self.fs_header_layout.setObjectName("fs_header_layout")
- self.fs_page_title = QtWidgets.QLabel(parent=self.horizontalLayoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.fs_page_title.sizePolicy().hasHeightForWidth())
- self.fs_page_title.setSizePolicy(sizePolicy)
- self.fs_page_title.setMinimumSize(QtCore.QSize(300, 60))
- self.fs_page_title.setMaximumSize(QtCore.QSize(16777215, 60))
- font = QtGui.QFont()
- font.setPointSize(24)
- self.fs_page_title.setFont(font)
- self.fs_page_title.setStyleSheet("background: transparent; color: white;")
- self.fs_page_title.setObjectName("fs_page_title")
- self.fs_header_layout.addWidget(self.fs_page_title, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.fs_back_button = BlocksCustomButton(parent=self.horizontalLayoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.fs_back_button.sizePolicy().hasHeightForWidth())
- self.fs_back_button.setSizePolicy(sizePolicy)
- self.fs_back_button.setMinimumSize(QtCore.QSize(60, 60))
- self.fs_back_button.setMaximumSize(QtCore.QSize(60, 60))
- self.fs_back_button.setText("")
- self.fs_back_button.setFlat(True)
- self.fs_back_button.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/back.svg"))
- self.fs_back_button.setObjectName("fs_back_button")
- self.fs_header_layout.addWidget(self.fs_back_button, 0, QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.verticalLayoutWidget = QtWidgets.QWidget(parent=filament_sensors_page)
- self.verticalLayoutWidget.setGeometry(QtCore.QRect(10, 90, 691, 302))
- self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
- self.fs_content_layout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
- self.fs_content_layout.setContentsMargins(0, 0, 0, 0)
- self.fs_content_layout.setObjectName("fs_content_layout")
- self.fs_sensors_list = QtWidgets.QListWidget(parent=self.verticalLayoutWidget)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.fs_sensors_list.sizePolicy().hasHeightForWidth())
- self.fs_sensors_list.setSizePolicy(sizePolicy)
- self.fs_sensors_list.setMinimumSize(QtCore.QSize(650, 300))
- self.fs_sensors_list.setMaximumSize(QtCore.QSize(700, 300))
- self.fs_sensors_list.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.fs_sensors_list.setStyleSheet("QListWidget{background-color: transparent;}\n"
-"\n"
-"QLabel{\n"
-"color: #ffffff;\n"
-"}")
- self.fs_sensors_list.setProperty("showDropIndicator", False)
- self.fs_sensors_list.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.NoSelection)
- self.fs_sensors_list.setObjectName("fs_sensors_list")
- self.fs_content_layout.addWidget(self.fs_sensors_list, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter)
-
- self.retranslateUi(filament_sensors_page)
- QtCore.QMetaObject.connectSlotsByName(filament_sensors_page)
-
- def retranslateUi(self, filament_sensors_page):
- _translate = QtCore.QCoreApplication.translate
- filament_sensors_page.setWindowTitle(_translate("filament_sensors_page", "Form"))
- self.fs_page_title.setText(_translate("filament_sensors_page", "Filament Sensors"))
- self.fs_back_button.setProperty("button_type", _translate("filament_sensors_page", "icon"))
-from lib.utils.blocks_button import BlocksCustomButton
diff --git a/BlocksScreen/lib/ui/filamentStackedWidget.ui b/BlocksScreen/lib/ui/filamentStackedWidget.ui
deleted file mode 100644
index c418ca80..00000000
--- a/BlocksScreen/lib/ui/filamentStackedWidget.ui
+++ /dev/null
@@ -1,1591 +0,0 @@
-
-
- filamentStackedWidget
-
-
-
- 0
- 0
- 710
- 411
-
-
-
-
- 1
- 1
-
-
-
-
- 710
- 410
-
-
-
-
- 720
- 420
-
-
-
- StackedWidget
-
-
- Qt::LeftToRight
-
-
- 0
-
-
-
-
- 0
- 0
-
-
-
-
- 710
- 400
-
-
-
-
- 720
- 420
-
-
-
- -
-
-
- Qt::Vertical
-
-
- QSizePolicy::Minimum
-
-
-
- 20
- 24
-
-
-
-
- -
-
-
-
-
-
- Qt::Horizontal
-
-
- QSizePolicy::Minimum
-
-
-
- 60
- 0
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 0
- 60
-
-
-
-
- 16777215
- 60
-
-
-
-
- Momcake
- 24
-
-
-
- Qt::RightToLeft
-
-
- background: transparent; color: white;
-
-
- Filament Control
-
-
- Qt::AlignCenter
-
-
- title_text
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
- Momcake
- 20
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
-
-
-
- Back
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- icon
-
-
- :/ui/media/btn_icons/back.svg
-
-
-
-
-
- -
-
-
- Qt::Vertical
-
-
-
- 20
- 40
-
-
-
-
- -
-
-
-
-
-
-
-
-
- Qt::Vertical
-
-
-
- 20
- 40
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 600
- 80
-
-
-
-
- 600
- 80
-
-
-
- QFrame::StyledPanel
-
-
- QFrame::Raised
-
-
-
-
- 10
- 20
- 231
- 41
-
-
-
-
- 0
- 0
-
-
-
-
- 280
- 60
-
-
-
-
- 15
-
-
-
- background: transparent; color: white;
-
-
- Loaded Filament Type
-
-
-
-
-
- 260
- 10
- 321
- 60
-
-
-
-
- 0
- 60
-
-
-
-
- 16777215
- 60
-
-
-
-
- 13
-
-
-
- color:white
-
-
- ...
-
-
- Qt::AlignCenter
-
-
-
-
-
- 240
- 10
- 3
- 61
-
-
-
- color:white
-
-
- Qt::Vertical
-
-
-
-
- -
-
-
- Qt::Vertical
-
-
-
- 20
- 40
-
-
-
-
- -
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 250
- 80
-
-
-
-
- 250
- 80
-
-
-
-
- Momcake
- 19
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
-
-
-
- Load
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- normal
-
-
- :/filament_related/media/btn_icons/load_filament.svg
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 250
- 80
-
-
-
-
- 250
- 80
-
-
-
-
- Momcake
- 19
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
-
-
-
- Unload
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- normal
-
-
- :/filament_related/media/btn_icons/unload_filament.svg
-
-
-
-
-
-
-
-
-
- -
-
-
- Qt::Vertical
-
-
- QSizePolicy::Minimum
-
-
-
- 20
- 26
-
-
-
-
- -
-
-
- Qt::Vertical
-
-
-
- 20
- 40
-
-
-
-
-
-
-
-
-
- 1
- 1
-
-
-
-
- 710
- 400
-
-
-
-
- 720
- 420
-
-
-
-
- 1
- 1
-
-
-
- -
-
-
- Qt::Vertical
-
-
- QSizePolicy::Minimum
-
-
-
- 20
- 24
-
-
-
-
- -
-
-
-
-
-
- Qt::Horizontal
-
-
- QSizePolicy::Maximum
-
-
-
- 60
- 20
-
-
-
-
- -
-
-
-
- 0
- 60
-
-
-
-
- Momcake
- 24
-
-
-
- background: transparent; color: white;
-
-
- Load Filament
-
-
- Qt::AlignCenter
-
-
- title_text
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
- Momcake
- 20
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
-
-
-
- Back
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- icon
-
-
- :/ui/media/btn_icons/back.svg
-
-
-
-
-
- -
-
-
- Qt::Vertical
-
-
-
- 20
- 40
-
-
-
-
- -
-
-
- 5
-
-
- 5
-
-
- 5
-
-
- 5
-
-
- 6
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 200
- 80
-
-
-
-
- 200
- 80
-
-
-
-
- Momcake
- 19
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
-
-
-
- NYLON
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- normal
-
-
- :/filament_related/media/topbar/nylon_filament_topbar.svg
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 200
- 80
-
-
-
-
- 200
- 80
-
-
-
-
- Momcake
- 19
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
-
-
-
- PETG
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- normal
-
-
- :/filament_related/media/topbar/petg_filament_topbar.svg
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 200
- 80
-
-
-
-
- 200
- 80
-
-
-
-
- Momcake
- 19
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
-
-
-
- ABS
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- normal
-
-
- :/filament_related/media/topbar/abs_filament_topbar.svg
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 200
- 80
-
-
-
-
- 200
- 80
-
-
-
-
- Momcake
- 19
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
-
-
-
- PLA
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- normal
-
-
- :/filament_related/media/topbar/pla_filament_topbar.svg
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 200
- 80
-
-
-
-
- 200
- 80
-
-
-
-
- Momcake
- 19
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
-
-
-
- HIPS
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- normal
-
-
- :/filament_related/media/topbar/hips_filament_topbar.svg
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 200
- 80
-
-
-
-
- 200
- 80
-
-
-
-
- Momcake
- 19
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
-
-
-
- TPU
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- normal
-
-
- :/filament_related/media/topbar/tpu_filament_topbar.svg
-
-
-
-
-
- -
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 200
- 70
-
-
-
-
- 250
- 60
-
-
-
-
- MS Shell Dlg 2
- 15
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
-
-
-
- Custom
-Filament
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- normal
-
-
-
-
-
- -
-
-
- Qt::Vertical
-
-
-
- 20
- 40
-
-
-
-
-
-
-
-
-
- 710
- 400
-
-
-
-
- 720
- 420
-
-
-
-
-
- 9
- 9
- 691
- 71
-
-
-
-
- 6
-
- -
-
-
-
- 1
- 1
-
-
-
-
- 500
- 60
-
-
-
-
- 500
- 60
-
-
-
-
- Momcake
- 24
-
-
-
- Qt::RightToLeft
-
-
- background: transparent; color: white;
-
-
- Custom Filament Settings
-
-
- Qt::AlignCenter
-
-
- title_text
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
- Momcake
- 20
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
-
-
-
- Back
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- :/button_borders/media/btn_icons/back.svg
-
-
-
-
-
-
-
-
- 10
- 120
- 691
- 234
-
-
-
-
- 5
-
-
- 5
-
-
- 5
-
-
- 5
-
- -
-
-
- 5
-
-
- 5
-
-
- 5
-
-
- 5
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 200
- 60
-
-
-
-
- 200
- 60
-
-
-
-
- 12
-
-
-
- background: transparent; color: white;
-
-
- Filament Temperature:
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 200
- 60
-
-
-
-
- 200
- 60
-
-
-
-
-
-
- true
-
-
- display
-
-
-
-
-
-
-
-
- -
-
-
- 5
-
-
- 5
-
-
- 5
-
-
- 5
-
-
-
-
-
-
- 200
- 60
-
-
-
-
- 200
- 60
-
-
-
-
- 12
-
-
-
- background: transparent; color: white;
-
-
- Filament Name
-
-
-
- -
-
-
-
- 200
- 60
-
-
-
-
- 200
- 60
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
- true
-
-
- icon
-
-
-
-
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 200
- 70
-
-
-
-
- 200
- 70
-
-
-
-
- Momcake
- 19
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
-
-
-
- Load
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- normal
-
-
-
-
-
-
-
-
-
- BlocksCustomButton
- QPushButton
-
-
-
- IconButton
- QPushButton
-
-
-
- BlocksCustomFrame
- QFrame
-
- 1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/BlocksScreen/lib/ui/filamentStackedWidget_ui.py b/BlocksScreen/lib/ui/filamentStackedWidget_ui.py
deleted file mode 100644
index 8ec597b2..00000000
--- a/BlocksScreen/lib/ui/filamentStackedWidget_ui.py
+++ /dev/null
@@ -1,638 +0,0 @@
-# Form implementation generated from reading ui file 'filamentStackedWidget.ui'
-#
-# Created by: PyQt6 UI code generator 6.10.0
-#
-# WARNING: Any manual changes made to this file will be lost when pyuic6 is
-# run again. Do not edit this file unless you know what you are doing.
-
-
-from PyQt6 import QtCore, QtGui, QtWidgets
-
-
-class Ui_filamentStackedWidget(object):
- def setupUi(self, filamentStackedWidget):
- filamentStackedWidget.setObjectName("filamentStackedWidget")
- filamentStackedWidget.resize(710, 411)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(filamentStackedWidget.sizePolicy().hasHeightForWidth())
- filamentStackedWidget.setSizePolicy(sizePolicy)
- filamentStackedWidget.setMinimumSize(QtCore.QSize(710, 410))
- filamentStackedWidget.setMaximumSize(QtCore.QSize(720, 420))
- filamentStackedWidget.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.filament_control_page = QtWidgets.QWidget()
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.filament_control_page.sizePolicy().hasHeightForWidth())
- self.filament_control_page.setSizePolicy(sizePolicy)
- self.filament_control_page.setMinimumSize(QtCore.QSize(710, 400))
- self.filament_control_page.setMaximumSize(QtCore.QSize(720, 420))
- self.filament_control_page.setObjectName("filament_control_page")
- self.verticalLayout = QtWidgets.QVBoxLayout(self.filament_control_page)
- self.verticalLayout.setObjectName("verticalLayout")
- spacerItem = QtWidgets.QSpacerItem(20, 24, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- self.verticalLayout.addItem(spacerItem)
- self.filament_page_header_layout = QtWidgets.QHBoxLayout()
- self.filament_page_header_layout.setObjectName("filament_page_header_layout")
- self.spacerItem1 = QtWidgets.QSpacerItem(60, 0, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- self.filament_page_header_layout.addItem(self.spacerItem1)
- self.filament_page_header_title = QtWidgets.QLabel(parent=self.filament_control_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Maximum)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.filament_page_header_title.sizePolicy().hasHeightForWidth())
- self.filament_page_header_title.setSizePolicy(sizePolicy)
- self.filament_page_header_title.setMinimumSize(QtCore.QSize(0, 60))
- self.filament_page_header_title.setMaximumSize(QtCore.QSize(16777215, 60))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(24)
- self.filament_page_header_title.setFont(font)
- self.filament_page_header_title.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.filament_page_header_title.setStyleSheet("background: transparent; color: white;")
- self.filament_page_header_title.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.filament_page_header_title.setObjectName("filament_page_header_title")
- self.filament_page_header_layout.addWidget(self.filament_page_header_title, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.main_back_button = IconButton(parent=self.filament_control_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.main_back_button.sizePolicy().hasHeightForWidth())
- self.main_back_button.setSizePolicy(sizePolicy)
- self.main_back_button.setMinimumSize(QtCore.QSize(60, 60))
- self.main_back_button.setMaximumSize(QtCore.QSize(60, 60))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(20)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.main_back_button.setFont(font)
- self.main_back_button.setMouseTracking(False)
- self.main_back_button.setTabletTracking(True)
- self.main_back_button.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.main_back_button.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.main_back_button.setStyleSheet("")
- self.main_back_button.setAutoDefault(False)
- self.main_back_button.setFlat(True)
- self.main_back_button.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/back.svg"))
- self.main_back_button.setObjectName("main_back_button")
- self.filament_page_header_layout.addWidget(self.main_back_button)
- self.verticalLayout.addLayout(self.filament_page_header_layout)
- spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
- self.verticalLayout.addItem(spacerItem2)
- self.verticalLayout_4 = QtWidgets.QVBoxLayout()
- self.verticalLayout_4.setObjectName("verticalLayout_4")
- self.verticalLayout_3 = QtWidgets.QVBoxLayout()
- self.verticalLayout_3.setObjectName("verticalLayout_3")
- spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
- self.verticalLayout_3.addItem(spacerItem3)
- self.frame_7 = BlocksCustomFrame(parent=self.filament_control_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.frame_7.sizePolicy().hasHeightForWidth())
- self.frame_7.setSizePolicy(sizePolicy)
- self.frame_7.setMinimumSize(QtCore.QSize(600, 80))
- self.frame_7.setMaximumSize(QtCore.QSize(600, 80))
- self.frame_7.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
- self.frame_7.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
- self.frame_7.setObjectName("frame_7")
- self.filament_page_info_title_6 = QtWidgets.QLabel(parent=self.frame_7)
- self.filament_page_info_title_6.setGeometry(QtCore.QRect(10, 20, 231, 41))
- self.filament_page_info_title_6.setMinimumSize(QtCore.QSize(0, 0))
- self.filament_page_info_title_6.setMaximumSize(QtCore.QSize(280, 60))
- font = QtGui.QFont()
- font.setPointSize(15)
- self.filament_page_info_title_6.setFont(font)
- self.filament_page_info_title_6.setStyleSheet("background: transparent; color: white;")
- self.filament_page_info_title_6.setObjectName("filament_page_info_title_6")
- self.label_2 = QtWidgets.QLabel(parent=self.frame_7)
- self.label_2.setGeometry(QtCore.QRect(260, 10, 321, 60))
- self.label_2.setMinimumSize(QtCore.QSize(0, 60))
- self.label_2.setMaximumSize(QtCore.QSize(16777215, 60))
- font = QtGui.QFont()
- font.setPointSize(13)
- self.label_2.setFont(font)
- self.label_2.setStyleSheet("color:white")
- self.label_2.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.label_2.setObjectName("label_2")
- self.line_2 = QtWidgets.QFrame(parent=self.frame_7)
- self.line_2.setGeometry(QtCore.QRect(240, 10, 3, 61))
- self.line_2.setStyleSheet("color:white")
- self.line_2.setFrameShape(QtWidgets.QFrame.Shape.VLine)
- self.line_2.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
- self.line_2.setObjectName("line_2")
- self.verticalLayout_3.addWidget(self.frame_7, 0, QtCore.Qt.AlignmentFlag.AlignHCenter)
- spacerItem4 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
- self.verticalLayout_3.addItem(spacerItem4)
- self.horizontalLayout = QtWidgets.QHBoxLayout()
- self.horizontalLayout.setObjectName("horizontalLayout")
- self.filament_page_load_btn = BlocksCustomButton(parent=self.filament_control_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.filament_page_load_btn.sizePolicy().hasHeightForWidth())
- self.filament_page_load_btn.setSizePolicy(sizePolicy)
- self.filament_page_load_btn.setMinimumSize(QtCore.QSize(250, 80))
- self.filament_page_load_btn.setMaximumSize(QtCore.QSize(250, 80))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(19)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.filament_page_load_btn.setFont(font)
- self.filament_page_load_btn.setMouseTracking(False)
- self.filament_page_load_btn.setTabletTracking(True)
- self.filament_page_load_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.filament_page_load_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.filament_page_load_btn.setStyleSheet("")
- self.filament_page_load_btn.setAutoDefault(False)
- self.filament_page_load_btn.setFlat(True)
- self.filament_page_load_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/filament_related/media/btn_icons/load_filament.svg"))
- self.filament_page_load_btn.setObjectName("filament_page_load_btn")
- self.horizontalLayout.addWidget(self.filament_page_load_btn)
- self.filament_page_unload_btn = BlocksCustomButton(parent=self.filament_control_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.filament_page_unload_btn.sizePolicy().hasHeightForWidth())
- self.filament_page_unload_btn.setSizePolicy(sizePolicy)
- self.filament_page_unload_btn.setMinimumSize(QtCore.QSize(250, 80))
- self.filament_page_unload_btn.setMaximumSize(QtCore.QSize(250, 80))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(19)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.filament_page_unload_btn.setFont(font)
- self.filament_page_unload_btn.setMouseTracking(False)
- self.filament_page_unload_btn.setTabletTracking(True)
- self.filament_page_unload_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.filament_page_unload_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.filament_page_unload_btn.setStyleSheet("")
- self.filament_page_unload_btn.setAutoDefault(False)
- self.filament_page_unload_btn.setFlat(True)
- self.filament_page_unload_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/filament_related/media/btn_icons/unload_filament.svg"))
- self.filament_page_unload_btn.setObjectName("filament_page_unload_btn")
- self.horizontalLayout.addWidget(self.filament_page_unload_btn)
- self.verticalLayout_3.addLayout(self.horizontalLayout)
- self.verticalLayout_4.addLayout(self.verticalLayout_3)
- self.verticalLayout.addLayout(self.verticalLayout_4)
- spacerItem5 = QtWidgets.QSpacerItem(20, 26, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- self.verticalLayout.addItem(spacerItem5)
- spacerItem6 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
- self.verticalLayout.addItem(spacerItem6)
- filamentStackedWidget.addWidget(self.filament_control_page)
- self.load_page = QtWidgets.QWidget()
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.load_page.sizePolicy().hasHeightForWidth())
- self.load_page.setSizePolicy(sizePolicy)
- self.load_page.setMinimumSize(QtCore.QSize(710, 400))
- self.load_page.setMaximumSize(QtCore.QSize(720, 420))
- self.load_page.setSizeIncrement(QtCore.QSize(1, 1))
- self.load_page.setObjectName("load_page")
- self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.load_page)
- self.verticalLayout_2.setObjectName("verticalLayout_2")
- spacerItem7 = QtWidgets.QSpacerItem(20, 24, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- self.verticalLayout_2.addItem(spacerItem7)
- self.load_page_header_layout = QtWidgets.QHBoxLayout()
- self.load_page_header_layout.setObjectName("load_page_header_layout")
- spacerItem8 = QtWidgets.QSpacerItem(60, 20, QtWidgets.QSizePolicy.Policy.Maximum, QtWidgets.QSizePolicy.Policy.Minimum)
- self.load_page_header_layout.addItem(spacerItem8)
- self.load_header_page_title = QtWidgets.QLabel(parent=self.load_page)
- self.load_header_page_title.setMinimumSize(QtCore.QSize(0, 60))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(24)
- self.load_header_page_title.setFont(font)
- self.load_header_page_title.setStyleSheet("background: transparent; color: white;")
- self.load_header_page_title.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.load_header_page_title.setObjectName("load_header_page_title")
- self.load_page_header_layout.addWidget(self.load_header_page_title)
- self.load_header_back_button = IconButton(parent=self.load_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.load_header_back_button.sizePolicy().hasHeightForWidth())
- self.load_header_back_button.setSizePolicy(sizePolicy)
- self.load_header_back_button.setMinimumSize(QtCore.QSize(60, 60))
- self.load_header_back_button.setMaximumSize(QtCore.QSize(60, 60))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(20)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.load_header_back_button.setFont(font)
- self.load_header_back_button.setMouseTracking(False)
- self.load_header_back_button.setTabletTracking(True)
- self.load_header_back_button.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.load_header_back_button.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.load_header_back_button.setStyleSheet("")
- self.load_header_back_button.setAutoDefault(False)
- self.load_header_back_button.setFlat(True)
- self.load_header_back_button.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/back.svg"))
- self.load_header_back_button.setObjectName("load_header_back_button")
- self.load_page_header_layout.addWidget(self.load_header_back_button)
- self.verticalLayout_2.addLayout(self.load_page_header_layout)
- spacerItem9 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
- self.verticalLayout_2.addItem(spacerItem9)
- self.load_page_content_layout = QtWidgets.QGridLayout()
- self.load_page_content_layout.setContentsMargins(5, 5, 5, 5)
- self.load_page_content_layout.setHorizontalSpacing(6)
- self.load_page_content_layout.setObjectName("load_page_content_layout")
- self.load_nylon_btn = BlocksCustomButton(parent=self.load_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.load_nylon_btn.sizePolicy().hasHeightForWidth())
- self.load_nylon_btn.setSizePolicy(sizePolicy)
- self.load_nylon_btn.setMinimumSize(QtCore.QSize(200, 80))
- self.load_nylon_btn.setMaximumSize(QtCore.QSize(200, 80))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(19)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.load_nylon_btn.setFont(font)
- self.load_nylon_btn.setMouseTracking(False)
- self.load_nylon_btn.setTabletTracking(True)
- self.load_nylon_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.load_nylon_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.load_nylon_btn.setStyleSheet("")
- self.load_nylon_btn.setAutoDefault(False)
- self.load_nylon_btn.setFlat(True)
- self.load_nylon_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/filament_related/media/topbar/nylon_filament_topbar.svg"))
- self.load_nylon_btn.setObjectName("load_nylon_btn")
- self.load_page_content_layout.addWidget(self.load_nylon_btn, 2, 0, 1, 1)
- self.load_petg_btn = BlocksCustomButton(parent=self.load_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.load_petg_btn.sizePolicy().hasHeightForWidth())
- self.load_petg_btn.setSizePolicy(sizePolicy)
- self.load_petg_btn.setMinimumSize(QtCore.QSize(200, 80))
- self.load_petg_btn.setMaximumSize(QtCore.QSize(200, 80))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(19)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.load_petg_btn.setFont(font)
- self.load_petg_btn.setMouseTracking(False)
- self.load_petg_btn.setTabletTracking(True)
- self.load_petg_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.load_petg_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.load_petg_btn.setStyleSheet("")
- self.load_petg_btn.setAutoDefault(False)
- self.load_petg_btn.setFlat(True)
- self.load_petg_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/filament_related/media/topbar/petg_filament_topbar.svg"))
- self.load_petg_btn.setObjectName("load_petg_btn")
- self.load_page_content_layout.addWidget(self.load_petg_btn, 0, 1, 1, 1)
- self.load_abs_btn = BlocksCustomButton(parent=self.load_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.load_abs_btn.sizePolicy().hasHeightForWidth())
- self.load_abs_btn.setSizePolicy(sizePolicy)
- self.load_abs_btn.setMinimumSize(QtCore.QSize(200, 80))
- self.load_abs_btn.setMaximumSize(QtCore.QSize(200, 80))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(19)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.load_abs_btn.setFont(font)
- self.load_abs_btn.setMouseTracking(False)
- self.load_abs_btn.setTabletTracking(True)
- self.load_abs_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.load_abs_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.load_abs_btn.setStyleSheet("")
- self.load_abs_btn.setAutoDefault(False)
- self.load_abs_btn.setFlat(True)
- self.load_abs_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/filament_related/media/topbar/abs_filament_topbar.svg"))
- self.load_abs_btn.setObjectName("load_abs_btn")
- self.load_page_content_layout.addWidget(self.load_abs_btn, 1, 0, 1, 1)
- self.load_pla_btn = BlocksCustomButton(parent=self.load_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.load_pla_btn.sizePolicy().hasHeightForWidth())
- self.load_pla_btn.setSizePolicy(sizePolicy)
- self.load_pla_btn.setMinimumSize(QtCore.QSize(200, 80))
- self.load_pla_btn.setMaximumSize(QtCore.QSize(200, 80))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(19)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.load_pla_btn.setFont(font)
- self.load_pla_btn.setMouseTracking(False)
- self.load_pla_btn.setTabletTracking(True)
- self.load_pla_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.load_pla_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.load_pla_btn.setStyleSheet("")
- self.load_pla_btn.setAutoDefault(False)
- self.load_pla_btn.setFlat(True)
- self.load_pla_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/filament_related/media/topbar/pla_filament_topbar.svg"))
- self.load_pla_btn.setObjectName("load_pla_btn")
- self.load_page_content_layout.addWidget(self.load_pla_btn, 0, 0, 1, 1)
- self.load_hips_btn = BlocksCustomButton(parent=self.load_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.load_hips_btn.sizePolicy().hasHeightForWidth())
- self.load_hips_btn.setSizePolicy(sizePolicy)
- self.load_hips_btn.setMinimumSize(QtCore.QSize(200, 80))
- self.load_hips_btn.setMaximumSize(QtCore.QSize(200, 80))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(19)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.load_hips_btn.setFont(font)
- self.load_hips_btn.setMouseTracking(False)
- self.load_hips_btn.setTabletTracking(True)
- self.load_hips_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.load_hips_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.load_hips_btn.setStyleSheet("")
- self.load_hips_btn.setAutoDefault(False)
- self.load_hips_btn.setFlat(True)
- self.load_hips_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/filament_related/media/topbar/hips_filament_topbar.svg"))
- self.load_hips_btn.setObjectName("load_hips_btn")
- self.load_page_content_layout.addWidget(self.load_hips_btn, 1, 1, 1, 1)
- self.load_tpu_btn = BlocksCustomButton(parent=self.load_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.load_tpu_btn.sizePolicy().hasHeightForWidth())
- self.load_tpu_btn.setSizePolicy(sizePolicy)
- self.load_tpu_btn.setMinimumSize(QtCore.QSize(200, 80))
- self.load_tpu_btn.setMaximumSize(QtCore.QSize(200, 80))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(19)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.load_tpu_btn.setFont(font)
- self.load_tpu_btn.setMouseTracking(False)
- self.load_tpu_btn.setTabletTracking(True)
- self.load_tpu_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.load_tpu_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.load_tpu_btn.setStyleSheet("")
- self.load_tpu_btn.setAutoDefault(False)
- self.load_tpu_btn.setFlat(True)
- self.load_tpu_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/filament_related/media/topbar/tpu_filament_topbar.svg"))
- self.load_tpu_btn.setObjectName("load_tpu_btn")
- self.load_page_content_layout.addWidget(self.load_tpu_btn, 2, 1, 1, 1)
- self.verticalLayout_2.addLayout(self.load_page_content_layout)
- self.load_page_footer_layout = QtWidgets.QHBoxLayout()
- self.load_page_footer_layout.setObjectName("load_page_footer_layout")
- self.load_custom_btn = BlocksCustomButton(parent=self.load_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.load_custom_btn.sizePolicy().hasHeightForWidth())
- self.load_custom_btn.setSizePolicy(sizePolicy)
- self.load_custom_btn.setMinimumSize(QtCore.QSize(200, 70))
- self.load_custom_btn.setMaximumSize(QtCore.QSize(250, 60))
- font = QtGui.QFont()
- font.setFamily("MS Shell Dlg 2")
- font.setPointSize(15)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.load_custom_btn.setFont(font)
- self.load_custom_btn.setMouseTracking(False)
- self.load_custom_btn.setTabletTracking(True)
- self.load_custom_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.load_custom_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.load_custom_btn.setStyleSheet("")
- self.load_custom_btn.setAutoDefault(False)
- self.load_custom_btn.setFlat(True)
- self.load_custom_btn.setObjectName("load_custom_btn")
- self.load_page_footer_layout.addWidget(self.load_custom_btn)
- self.verticalLayout_2.addLayout(self.load_page_footer_layout)
- spacerItem10 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
- self.verticalLayout_2.addItem(spacerItem10)
- filamentStackedWidget.addWidget(self.load_page)
- self.custom_filament_page = QtWidgets.QWidget()
- self.custom_filament_page.setMinimumSize(QtCore.QSize(710, 400))
- self.custom_filament_page.setMaximumSize(QtCore.QSize(720, 420))
- self.custom_filament_page.setObjectName("custom_filament_page")
- self.horizontalLayoutWidget_4 = QtWidgets.QWidget(parent=self.custom_filament_page)
- self.horizontalLayoutWidget_4.setGeometry(QtCore.QRect(9, 9, 691, 71))
- self.horizontalLayoutWidget_4.setObjectName("horizontalLayoutWidget_4")
- self.cfil_page_header_layout = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_4)
- self.cfil_page_header_layout.setContentsMargins(0, 0, 0, 0)
- self.cfil_page_header_layout.setSpacing(6)
- self.cfil_page_header_layout.setObjectName("cfil_page_header_layout")
- self.custom_filament_page_header_title = QtWidgets.QLabel(parent=self.horizontalLayoutWidget_4)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.custom_filament_page_header_title.sizePolicy().hasHeightForWidth())
- self.custom_filament_page_header_title.setSizePolicy(sizePolicy)
- self.custom_filament_page_header_title.setMinimumSize(QtCore.QSize(500, 60))
- self.custom_filament_page_header_title.setMaximumSize(QtCore.QSize(500, 60))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(24)
- self.custom_filament_page_header_title.setFont(font)
- self.custom_filament_page_header_title.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.custom_filament_page_header_title.setStyleSheet("background: transparent; color: white;")
- self.custom_filament_page_header_title.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.custom_filament_page_header_title.setObjectName("custom_filament_page_header_title")
- self.cfil_page_header_layout.addWidget(self.custom_filament_page_header_title, 0, QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.custom_filament_header_back_btn = IconButton(parent=self.horizontalLayoutWidget_4)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.custom_filament_header_back_btn.sizePolicy().hasHeightForWidth())
- self.custom_filament_header_back_btn.setSizePolicy(sizePolicy)
- self.custom_filament_header_back_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.custom_filament_header_back_btn.setMaximumSize(QtCore.QSize(60, 60))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(20)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.custom_filament_header_back_btn.setFont(font)
- self.custom_filament_header_back_btn.setMouseTracking(False)
- self.custom_filament_header_back_btn.setTabletTracking(True)
- self.custom_filament_header_back_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.custom_filament_header_back_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.custom_filament_header_back_btn.setStyleSheet("")
- self.custom_filament_header_back_btn.setAutoDefault(False)
- self.custom_filament_header_back_btn.setFlat(True)
- self.custom_filament_header_back_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/button_borders/media/btn_icons/back.svg"))
- self.custom_filament_header_back_btn.setObjectName("custom_filament_header_back_btn")
- self.cfil_page_header_layout.addWidget(self.custom_filament_header_back_btn, 0, QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.cfil_page_header_layout.setStretch(0, 1)
- self.verticalLayoutWidget_2 = QtWidgets.QWidget(parent=self.custom_filament_page)
- self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(10, 120, 691, 234))
- self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2")
- self.cfil_page_content_layout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_2)
- self.cfil_page_content_layout.setContentsMargins(5, 5, 5, 5)
- self.cfil_page_content_layout.setObjectName("cfil_page_content_layout")
- self.cfil_temp_settings_layout = QtWidgets.QHBoxLayout()
- self.cfil_temp_settings_layout.setContentsMargins(5, 5, 5, 5)
- self.cfil_temp_settings_layout.setObjectName("cfil_temp_settings_layout")
- self.custom_filament_temperature_settings_title = QtWidgets.QLabel(parent=self.verticalLayoutWidget_2)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.custom_filament_temperature_settings_title.sizePolicy().hasHeightForWidth())
- self.custom_filament_temperature_settings_title.setSizePolicy(sizePolicy)
- self.custom_filament_temperature_settings_title.setMinimumSize(QtCore.QSize(200, 60))
- self.custom_filament_temperature_settings_title.setMaximumSize(QtCore.QSize(200, 60))
- font = QtGui.QFont()
- font.setPointSize(12)
- self.custom_filament_temperature_settings_title.setFont(font)
- self.custom_filament_temperature_settings_title.setStyleSheet("background: transparent; color: white;")
- self.custom_filament_temperature_settings_title.setObjectName("custom_filament_temperature_settings_title")
- self.cfil_temp_settings_layout.addWidget(self.custom_filament_temperature_settings_title)
- self.cfil_temp_settings_display_button = BlocksCustomButton(parent=self.verticalLayoutWidget_2)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.cfil_temp_settings_display_button.sizePolicy().hasHeightForWidth())
- self.cfil_temp_settings_display_button.setSizePolicy(sizePolicy)
- self.cfil_temp_settings_display_button.setMinimumSize(QtCore.QSize(200, 60))
- self.cfil_temp_settings_display_button.setMaximumSize(QtCore.QSize(200, 60))
- self.cfil_temp_settings_display_button.setText("")
- self.cfil_temp_settings_display_button.setFlat(True)
- self.cfil_temp_settings_display_button.setObjectName("cfil_temp_settings_display_button")
- self.cfil_temp_settings_layout.addWidget(self.cfil_temp_settings_display_button, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.cfil_temp_settings_layout.setStretch(1, 1)
- self.cfil_page_content_layout.addLayout(self.cfil_temp_settings_layout)
- self.cfil_name_settings_layout = QtWidgets.QHBoxLayout()
- self.cfil_name_settings_layout.setContentsMargins(5, 5, 5, 5)
- self.cfil_name_settings_layout.setObjectName("cfil_name_settings_layout")
- self.cfil_name_settings_title = QtWidgets.QLabel(parent=self.verticalLayoutWidget_2)
- self.cfil_name_settings_title.setMinimumSize(QtCore.QSize(200, 60))
- self.cfil_name_settings_title.setMaximumSize(QtCore.QSize(200, 60))
- font = QtGui.QFont()
- font.setPointSize(12)
- self.cfil_name_settings_title.setFont(font)
- self.cfil_name_settings_title.setStyleSheet("background: transparent; color: white;")
- self.cfil_name_settings_title.setObjectName("cfil_name_settings_title")
- self.cfil_name_settings_layout.addWidget(self.cfil_name_settings_title, 0, QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.cfil_name_input = QtWidgets.QLineEdit(parent=self.verticalLayoutWidget_2)
- self.cfil_name_input.setMinimumSize(QtCore.QSize(200, 60))
- self.cfil_name_input.setMaximumSize(QtCore.QSize(200, 60))
- self.cfil_name_input.setObjectName("cfil_name_input")
- self.cfil_name_settings_layout.addWidget(self.cfil_name_input, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.cfil_name_save_btn = BlocksCustomButton(parent=self.verticalLayoutWidget_2)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.cfil_name_save_btn.sizePolicy().hasHeightForWidth())
- self.cfil_name_save_btn.setSizePolicy(sizePolicy)
- self.cfil_name_save_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.cfil_name_save_btn.setMaximumSize(QtCore.QSize(60, 60))
- self.cfil_name_save_btn.setText("")
- self.cfil_name_save_btn.setFlat(True)
- self.cfil_name_save_btn.setObjectName("cfil_name_save_btn")
- self.cfil_name_settings_layout.addWidget(self.cfil_name_save_btn, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.cfil_name_settings_layout.setStretch(1, 1)
- self.cfil_page_content_layout.addLayout(self.cfil_name_settings_layout)
- self.cfil_load_btn = BlocksCustomButton(parent=self.verticalLayoutWidget_2)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.cfil_load_btn.sizePolicy().hasHeightForWidth())
- self.cfil_load_btn.setSizePolicy(sizePolicy)
- self.cfil_load_btn.setMinimumSize(QtCore.QSize(200, 70))
- self.cfil_load_btn.setMaximumSize(QtCore.QSize(200, 70))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(19)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.cfil_load_btn.setFont(font)
- self.cfil_load_btn.setMouseTracking(False)
- self.cfil_load_btn.setTabletTracking(True)
- self.cfil_load_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.cfil_load_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.cfil_load_btn.setStyleSheet("")
- self.cfil_load_btn.setAutoDefault(False)
- self.cfil_load_btn.setFlat(True)
- self.cfil_load_btn.setObjectName("cfil_load_btn")
- self.cfil_page_content_layout.addWidget(self.cfil_load_btn, 0, QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.cfil_page_content_layout.setStretch(2, 1)
- filamentStackedWidget.addWidget(self.custom_filament_page)
-
- self.retranslateUi(filamentStackedWidget)
- filamentStackedWidget.setCurrentIndex(0)
- QtCore.QMetaObject.connectSlotsByName(filamentStackedWidget)
-
- def retranslateUi(self, filamentStackedWidget):
- _translate = QtCore.QCoreApplication.translate
- filamentStackedWidget.setWindowTitle(_translate("filamentStackedWidget", "StackedWidget"))
- self.filament_page_header_title.setText(_translate("filamentStackedWidget", "Filament Control"))
- self.filament_page_header_title.setProperty("class", _translate("filamentStackedWidget", "title_text"))
- self.main_back_button.setText(_translate("filamentStackedWidget", "Back"))
- self.main_back_button.setProperty("class", _translate("filamentStackedWidget", "menu_btn"))
- self.main_back_button.setProperty("button_type", _translate("filamentStackedWidget", "icon"))
- self.filament_page_info_title_6.setText(_translate("filamentStackedWidget", "Loaded Filament Type"))
- self.label_2.setText(_translate("filamentStackedWidget", "..."))
- self.filament_page_load_btn.setText(_translate("filamentStackedWidget", "Load"))
- self.filament_page_load_btn.setProperty("class", _translate("filamentStackedWidget", "menu_btn"))
- self.filament_page_load_btn.setProperty("button_type", _translate("filamentStackedWidget", "normal"))
- self.filament_page_unload_btn.setText(_translate("filamentStackedWidget", "Unload"))
- self.filament_page_unload_btn.setProperty("class", _translate("filamentStackedWidget", "menu_btn"))
- self.filament_page_unload_btn.setProperty("button_type", _translate("filamentStackedWidget", "normal"))
- self.load_header_page_title.setText(_translate("filamentStackedWidget", "Load Filament"))
- self.load_header_page_title.setProperty("class", _translate("filamentStackedWidget", "title_text"))
- self.load_header_back_button.setText(_translate("filamentStackedWidget", "Back"))
- self.load_header_back_button.setProperty("class", _translate("filamentStackedWidget", "menu_btn"))
- self.load_header_back_button.setProperty("button_type", _translate("filamentStackedWidget", "icon"))
- self.load_nylon_btn.setText(_translate("filamentStackedWidget", "NYLON"))
- self.load_nylon_btn.setProperty("class", _translate("filamentStackedWidget", "menu_btn"))
- self.load_nylon_btn.setProperty("button_type", _translate("filamentStackedWidget", "normal"))
- self.load_petg_btn.setText(_translate("filamentStackedWidget", "PETG"))
- self.load_petg_btn.setProperty("class", _translate("filamentStackedWidget", "menu_btn"))
- self.load_petg_btn.setProperty("button_type", _translate("filamentStackedWidget", "normal"))
- self.load_abs_btn.setText(_translate("filamentStackedWidget", "ABS"))
- self.load_abs_btn.setProperty("class", _translate("filamentStackedWidget", "menu_btn"))
- self.load_abs_btn.setProperty("button_type", _translate("filamentStackedWidget", "normal"))
- self.load_pla_btn.setText(_translate("filamentStackedWidget", "PLA"))
- self.load_pla_btn.setProperty("class", _translate("filamentStackedWidget", "menu_btn"))
- self.load_pla_btn.setProperty("button_type", _translate("filamentStackedWidget", "normal"))
- self.load_hips_btn.setText(_translate("filamentStackedWidget", "HIPS"))
- self.load_hips_btn.setProperty("class", _translate("filamentStackedWidget", "menu_btn"))
- self.load_hips_btn.setProperty("button_type", _translate("filamentStackedWidget", "normal"))
- self.load_tpu_btn.setText(_translate("filamentStackedWidget", "TPU"))
- self.load_tpu_btn.setProperty("class", _translate("filamentStackedWidget", "menu_btn"))
- self.load_tpu_btn.setProperty("button_type", _translate("filamentStackedWidget", "normal"))
- self.load_custom_btn.setText(_translate("filamentStackedWidget", "Custom\n"
-"Filament"))
- self.load_custom_btn.setProperty("class", _translate("filamentStackedWidget", "menu_btn"))
- self.load_custom_btn.setProperty("button_type", _translate("filamentStackedWidget", "normal"))
- self.custom_filament_page_header_title.setText(_translate("filamentStackedWidget", "Custom Filament Settings"))
- self.custom_filament_page_header_title.setProperty("class", _translate("filamentStackedWidget", "title_text"))
- self.custom_filament_header_back_btn.setText(_translate("filamentStackedWidget", "Back"))
- self.custom_filament_header_back_btn.setProperty("class", _translate("filamentStackedWidget", "menu_btn"))
- self.custom_filament_temperature_settings_title.setText(_translate("filamentStackedWidget", "Filament Temperature:"))
- self.cfil_temp_settings_display_button.setProperty("button_type", _translate("filamentStackedWidget", "display"))
- self.cfil_name_settings_title.setText(_translate("filamentStackedWidget", "Filament Name"))
- self.cfil_name_save_btn.setProperty("button_type", _translate("filamentStackedWidget", "icon"))
- self.cfil_load_btn.setText(_translate("filamentStackedWidget", "Load"))
- self.cfil_load_btn.setProperty("class", _translate("filamentStackedWidget", "menu_btn"))
- self.cfil_load_btn.setProperty("button_type", _translate("filamentStackedWidget", "normal"))
-from lib.utils.blocks_button import BlocksCustomButton
-from lib.utils.blocks_frame import BlocksCustomFrame
-from lib.utils.icon_button import IconButton
-
-
-if __name__ == "__main__":
- import sys
- app = QtWidgets.QApplication(sys.argv)
- filamentStackedWidget = QtWidgets.QStackedWidget()
- ui = Ui_filamentStackedWidget()
- ui.setupUi(filamentStackedWidget)
- filamentStackedWidget.show()
- sys.exit(app.exec())
diff --git a/BlocksScreen/lib/ui/mainWindow.ui b/BlocksScreen/lib/ui/mainWindow.ui
deleted file mode 100644
index 451677f2..00000000
--- a/BlocksScreen/lib/ui/mainWindow.ui
+++ /dev/null
@@ -1,807 +0,0 @@
-
-
- MainWindow
-
-
-
- 0
- 0
- 800
- 480
-
-
-
-
- 1
- 1
-
-
-
-
- 800
- 480
-
-
-
-
- 1024
- 600
-
-
-
-
- 1
- 1
-
-
-
-
- 800
- 480
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
-
- BlankCursor
-
-
- true
-
-
- MainWindow
-
-
-
- :/background/logoblocks.png:/background/logoblocks.png
-
-
- Qt::LeftToRight
-
-
- MainWindow > {
- url(:/font/media/fonts for text/Momcake-Thin.ttf);
-}
-
-
- false
-
-
-
-
- 1
- 1
-
-
-
-
- 800
- 480
-
-
-
-
- 1024
- 600
-
-
-
-
- 1
- 1
-
-
-
-
- 800
- 480
-
-
-
- BlankCursor
-
-
- Qt::LeftToRight
-
-
- #main_widget{background-image: url(:/background/media/1st_background.png);}
-
-
-
-
- true
-
-
-
- 0
- 60
- 800
- 420
-
-
-
-
- 1
- 1
-
-
-
-
- 800
- 400
-
-
-
-
- 1024
- 720
-
-
-
-
- 800
- 400
-
-
-
- BlankCursor
-
-
- Qt::RightToLeft
-
-
- false
-
-
- #main_content_widget{
-background-image: url(:/background/media/1st_background.png);
-}
-QTabBar::tab{
- min-width: 80px;
- max-width: 80px;
- min-height: 100px;
- max-height: 100px;
- background: transparent;
-}
-
-
-
-
- QTabWidget::West
-
-
- QTabWidget::Rounded
-
-
- 3
-
-
-
- 60
- 60
-
-
-
- Qt::ElideLeft
-
-
- false
-
-
- true
-
-
- false
-
-
- false
-
-
-
-
- 1
- 1
-
-
-
-
- 720
- 420
-
-
-
-
- 1024
- 720
-
-
-
-
- 1024
- 420
-
-
-
- BlankCursor
-
-
-
- :/icons/media/main_menu/ICON_home.png
- :/icons/media/main_menu/ICON_home_pressed.png
- :/icons/media/main_menu/ICON_home_blocked.png:/icons/media/main_menu/ICON_home.png
-
-
-
-
-
-
-
-
- 1
- 1
-
-
-
-
- 720
- 420
-
-
-
-
- 1024
- 720
-
-
-
-
- 1024
- 420
-
-
-
- BlankCursor
-
-
-
- :/icons/media/main_menu/ICON_filament.png
- :/icons/media/main_menu/ICON_filament_pressed.png
- :/icons/media/main_menu/ICON_filamente_blocked.png:/icons/media/main_menu/ICON_filament.png
-
-
-
-
-
-
-
-
- 1
- 1
-
-
-
-
- 720
- 420
-
-
-
-
- 1024
- 720
-
-
-
-
- 720
- 420
-
-
-
- BlankCursor
-
-
-
- :/icons/media/main_menu/ICON_control.png
- :/icons/media/main_menu/ICON_control_pressed.png
- :/icons/media/main_menu/ICON_control_blocked.png:/icons/media/main_menu/ICON_control.png
-
-
-
-
-
-
-
-
- 1
- 1
-
-
-
-
- 720
- 420
-
-
-
-
- 1024
- 720
-
-
-
-
- 1024
- 420
-
-
-
- BlankCursor
-
-
-
- :/icons/media/main_menu/ICON_utilities.png
- :/icons/media/main_menu/ICON_utilities_pressed.png
- :/icons/media/main_menu/ICON_utilities_blocked.png:/icons/media/main_menu/ICON_utilities.png
-
-
-
-
-
-
-
-
- true
-
-
-
- 0
- 0
- 800
- 60
-
-
-
-
- 2
- 1
-
-
-
-
- 800
- 60
-
-
-
-
- 1024
- 80
-
-
-
-
- 1
- 1
-
-
-
-
- 800
- 60
-
-
-
-
- PreferAntialias
-
-
-
- BlankCursor
-
-
- Qt::LeftToRight
-
-
- QWidget {
- background-color: rgb(50,50,50);
- color:rgb(255,255,255);
- border-color : rgb(60,60,60);
- selection-background-color: rgb(60,60,60);
- gridline-color:rgb(60,60,60);
- selection-color:rgb(60,60,60);
-}
-
-QGroupBox{
- background-color: rgb(50,50,50);
- border: none;
- border-color : rgb(60,60,60);
- selection-background-color: rgb(60,60,60);
- gridline-color:rgb(60,60,60);
- selection-color:rgb(60,60,60);
-
-}
-
-QFrame > *{
- background-color: rgb(50, 50, 50);
- selection-background-color: rgb(60, 60, 60);
- gridline-color: rgb(60, 60, 60);
- color: rgb(255, 255, 255);
- selection-color: rgb(60, 60, 60);
- border-bottom-color: rgb(60, 60, 60);
-
-}
-
-
-QPushButton:pressed{
- border: none;
- background: transparent;
-}
-
-
-
-
-
- Qt::AlignJustify|Qt::AlignVCenter
-
-
- true
-
-
- false
-
-
-
- 10
-
-
- QLayout::SetMinimumSize
-
-
- 5
-
-
- 0
-
-
- 5
-
-
- 0
-
- -
-
-
-
- 1
- 1
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
-
- 60
- 60
-
-
-
- true
-
-
- :/ui/media/btn_icons/notification.svg
-
-
- icon_text
-
-
-
- -
-
-
-
- 140
- 60
-
-
-
-
- 160
- 60
-
-
-
- extruder
-
-
- true
-
-
- secondary_display
-
-
- :/extruder_related/media/btn_icons/nozzle_topbar.svg
-
-
- extruder_temperature_display
-
-
-
- -
-
-
-
- 140
- 60
-
-
-
-
- 160
- 60
-
-
-
- bed
-
-
- true
-
-
- secondary_display
-
-
- :/temperature_related/media/btn_icons/temperature_plate.svg
-
-
-
- -
-
-
-
- 140
- 60
-
-
-
-
- 160
- 60
-
-
-
- chamber
-
-
- true
-
-
- :/top_bar_icons/media/topbar/chamber_temp_topbar.svg
-
-
- dual
-
-
- display_secondary
-
-
- :/temperature_related/media/btn_icons/humidity.svg
-
-
-
- -
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
- Filament
-
-
- true
-
-
- :/filament_related/media/btn_icons/load_filament.svg
-
-
- icon_text
-
-
-
- -
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
- nozzle
-
-
- true
-
-
- icon_text
-
-
- :/temperature_related/media/btn_icons/standart_temperature.svg
-
-
-
- -
-
-
- true
-
-
-
- 1
- 1
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
-
-
-
-
- 16
- 16
-
-
-
- false
-
-
- false
-
-
- true
-
-
- icon
-
-
- :/network/media/btn_icons/network/3bar_wifi.svg
-
-
-
-
-
-
-
-
-
- IconButton
- QPushButton
-
-
-
- DisplayButton
- QPushButton
-
-
-
- NotificationQTabWidget
- QTabWidget
- lib.utils.blocks_tabwidget
- 1
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/BlocksScreen/lib/ui/mainWindow_ui.py b/BlocksScreen/lib/ui/mainWindow_ui.py
deleted file mode 100644
index e467dacf..00000000
--- a/BlocksScreen/lib/ui/mainWindow_ui.py
+++ /dev/null
@@ -1,325 +0,0 @@
-# Form implementation generated from reading ui file 'BlocksScreen/lib/ui/mainWindow.ui'
-#
-# Created by: PyQt6 UI code generator 6.10.0
-#
-# WARNING: Any manual changes made to this file will be lost when pyuic6 is
-# run again. Do not edit this file unless you know what you are doing.
-
-
-from PyQt6 import QtCore, QtGui, QtWidgets
-
-
-class Ui_MainWindow(object):
- def setupUi(self, MainWindow):
- MainWindow.setObjectName("MainWindow")
- MainWindow.resize(800, 480)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
- MainWindow.setSizePolicy(sizePolicy)
- MainWindow.setMinimumSize(QtCore.QSize(800, 480))
- MainWindow.setMaximumSize(QtCore.QSize(1024, 600))
- MainWindow.setSizeIncrement(QtCore.QSize(1, 1))
- MainWindow.setBaseSize(QtCore.QSize(800, 480))
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush)
- MainWindow.setPalette(palette)
- MainWindow.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor))
- MainWindow.setTabletTracking(True)
- icon = QtGui.QIcon.fromTheme("applications-other")
- MainWindow.setWindowIcon(icon)
- MainWindow.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- MainWindow.setStyleSheet("MainWindow > {\n"
-" url(:/font/media/fonts for text/Momcake-Thin.ttf);\n"
-"}")
- MainWindow.setAnimated(False)
- self.main_widget = QtWidgets.QWidget(parent=MainWindow)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.main_widget.sizePolicy().hasHeightForWidth())
- self.main_widget.setSizePolicy(sizePolicy)
- self.main_widget.setMinimumSize(QtCore.QSize(800, 480))
- self.main_widget.setMaximumSize(QtCore.QSize(1024, 600))
- self.main_widget.setSizeIncrement(QtCore.QSize(1, 1))
- self.main_widget.setBaseSize(QtCore.QSize(800, 480))
- self.main_widget.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor))
- self.main_widget.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.main_widget.setStyleSheet("#main_widget{background-image: url(:/background/media/1st_background.png);}\n"
-"")
- self.main_widget.setObjectName("main_widget")
- self.main_content_widget = NotificationQTabWidget(parent=self.main_widget)
- self.main_content_widget.setEnabled(True)
- self.main_content_widget.setGeometry(QtCore.QRect(0, 60, 800, 420))
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.main_content_widget.sizePolicy().hasHeightForWidth())
- self.main_content_widget.setSizePolicy(sizePolicy)
- self.main_content_widget.setMinimumSize(QtCore.QSize(800, 400))
- self.main_content_widget.setMaximumSize(QtCore.QSize(1024, 720))
- self.main_content_widget.setBaseSize(QtCore.QSize(800, 400))
- self.main_content_widget.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor))
- self.main_content_widget.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.main_content_widget.setAutoFillBackground(False)
- self.main_content_widget.setStyleSheet("#main_content_widget{\n"
-"background-image: url(:/background/media/1st_background.png);\n"
-"}\n"
-"QTabBar::tab{\n"
-" min-width: 80px;\n"
-" max-width: 80px;\n"
-" min-height: 100px;\n"
-" max-height: 100px;\n"
-" background: transparent;\n"
-"}\n"
-"\n"
-"")
- self.main_content_widget.setTabPosition(QtWidgets.QTabWidget.TabPosition.West)
- self.main_content_widget.setTabShape(QtWidgets.QTabWidget.TabShape.Rounded)
- self.main_content_widget.setIconSize(QtCore.QSize(60, 60))
- self.main_content_widget.setElideMode(QtCore.Qt.TextElideMode.ElideLeft)
- self.main_content_widget.setUsesScrollButtons(False)
- self.main_content_widget.setDocumentMode(True)
- self.main_content_widget.setTabsClosable(False)
- self.main_content_widget.setMovable(False)
- self.main_content_widget.setObjectName("main_content_widget")
- self.printTab = QtWidgets.QWidget()
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.printTab.sizePolicy().hasHeightForWidth())
- self.printTab.setSizePolicy(sizePolicy)
- self.printTab.setMinimumSize(QtCore.QSize(720, 420))
- self.printTab.setMaximumSize(QtCore.QSize(1024, 720))
- self.printTab.setBaseSize(QtCore.QSize(1024, 420))
- self.printTab.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor))
- self.printTab.setObjectName("printTab")
- icon = QtGui.QIcon()
- icon.addPixmap(QtGui.QPixmap(":/icons/media/main_menu/ICON_home.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
- icon.addPixmap(QtGui.QPixmap(":/icons/media/main_menu/ICON_home_pressed.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.On)
- icon.addPixmap(QtGui.QPixmap(":/icons/media/main_menu/ICON_home_blocked.png"), QtGui.QIcon.Mode.Disabled, QtGui.QIcon.State.On)
- self.main_content_widget.addTab(self.printTab, icon, "")
- self.filamentTab = QtWidgets.QWidget()
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.filamentTab.sizePolicy().hasHeightForWidth())
- self.filamentTab.setSizePolicy(sizePolicy)
- self.filamentTab.setMinimumSize(QtCore.QSize(720, 420))
- self.filamentTab.setMaximumSize(QtCore.QSize(1024, 720))
- self.filamentTab.setBaseSize(QtCore.QSize(1024, 420))
- self.filamentTab.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor))
- self.filamentTab.setObjectName("filamentTab")
- icon1 = QtGui.QIcon()
- icon1.addPixmap(QtGui.QPixmap(":/icons/media/main_menu/ICON_filament.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
- icon1.addPixmap(QtGui.QPixmap(":/icons/media/main_menu/ICON_filament_pressed.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.On)
- icon1.addPixmap(QtGui.QPixmap(":/icons/media/main_menu/ICON_filamente_blocked.png"), QtGui.QIcon.Mode.Disabled, QtGui.QIcon.State.On)
- self.main_content_widget.addTab(self.filamentTab, icon1, "")
- self.controlTab = QtWidgets.QWidget()
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.controlTab.sizePolicy().hasHeightForWidth())
- self.controlTab.setSizePolicy(sizePolicy)
- self.controlTab.setMinimumSize(QtCore.QSize(720, 420))
- self.controlTab.setMaximumSize(QtCore.QSize(1024, 720))
- self.controlTab.setBaseSize(QtCore.QSize(720, 420))
- self.controlTab.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor))
- self.controlTab.setObjectName("controlTab")
- icon2 = QtGui.QIcon()
- icon2.addPixmap(QtGui.QPixmap(":/icons/media/main_menu/ICON_control.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
- icon2.addPixmap(QtGui.QPixmap(":/icons/media/main_menu/ICON_control_pressed.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.On)
- icon2.addPixmap(QtGui.QPixmap(":/icons/media/main_menu/ICON_control_blocked.png"), QtGui.QIcon.Mode.Disabled, QtGui.QIcon.State.On)
- self.main_content_widget.addTab(self.controlTab, icon2, "")
- self.utilitiesTab = QtWidgets.QWidget()
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.utilitiesTab.sizePolicy().hasHeightForWidth())
- self.utilitiesTab.setSizePolicy(sizePolicy)
- self.utilitiesTab.setMinimumSize(QtCore.QSize(720, 420))
- self.utilitiesTab.setMaximumSize(QtCore.QSize(1024, 720))
- self.utilitiesTab.setBaseSize(QtCore.QSize(1024, 420))
- self.utilitiesTab.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor))
- self.utilitiesTab.setObjectName("utilitiesTab")
- icon3 = QtGui.QIcon()
- icon3.addPixmap(QtGui.QPixmap(":/icons/media/main_menu/ICON_utilities.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
- icon3.addPixmap(QtGui.QPixmap(":/icons/media/main_menu/ICON_utilities_pressed.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.On)
- icon3.addPixmap(QtGui.QPixmap(":/icons/media/main_menu/ICON_utilities_blocked.png"), QtGui.QIcon.Mode.Disabled, QtGui.QIcon.State.On)
- self.main_content_widget.addTab(self.utilitiesTab, icon3, "")
- self.main_header_layout = QtWidgets.QGroupBox(parent=self.main_widget)
- self.main_header_layout.setEnabled(True)
- self.main_header_layout.setGeometry(QtCore.QRect(0, 0, 800, 60))
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(2)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.main_header_layout.sizePolicy().hasHeightForWidth())
- self.main_header_layout.setSizePolicy(sizePolicy)
- self.main_header_layout.setMinimumSize(QtCore.QSize(800, 60))
- self.main_header_layout.setMaximumSize(QtCore.QSize(1024, 80))
- self.main_header_layout.setSizeIncrement(QtCore.QSize(1, 1))
- self.main_header_layout.setBaseSize(QtCore.QSize(800, 60))
- font = QtGui.QFont()
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.main_header_layout.setFont(font)
- self.main_header_layout.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor))
- self.main_header_layout.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.main_header_layout.setStyleSheet("QWidget {\n"
-" background-color: rgb(50,50,50);\n"
-" color:rgb(255,255,255);\n"
-" border-color : rgb(60,60,60);\n"
-" selection-background-color: rgb(60,60,60);\n"
-" gridline-color:rgb(60,60,60);\n"
-" selection-color:rgb(60,60,60);\n"
-"}\n"
-"\n"
-"QGroupBox{\n"
-" background-color: rgb(50,50,50);\n"
-" border: none; \n"
-" border-color : rgb(60,60,60);\n"
-" selection-background-color: rgb(60,60,60);\n"
-" gridline-color:rgb(60,60,60);\n"
-" selection-color:rgb(60,60,60);\n"
-" \n"
-"}\n"
-"\n"
-"QFrame > *{\n"
-" background-color: rgb(50, 50, 50);\n"
-" selection-background-color: rgb(60, 60, 60);\n"
-" gridline-color: rgb(60, 60, 60);\n"
-" color: rgb(255, 255, 255); \n"
-" selection-color: rgb(60, 60, 60);\n"
-" border-bottom-color: rgb(60, 60, 60);\n"
-" \n"
-"}\n"
-"\n"
-"\n"
-"QPushButton:pressed{\n"
-" border: none;\n"
-" background: transparent;\n"
-"}")
- self.main_header_layout.setTitle("")
- self.main_header_layout.setAlignment(QtCore.Qt.AlignmentFlag.AlignJustify|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.main_header_layout.setFlat(True)
- self.main_header_layout.setCheckable(False)
- self.main_header_layout.setObjectName("main_header_layout")
- self.header_main_layout = QtWidgets.QHBoxLayout(self.main_header_layout)
- self.header_main_layout.setSizeConstraint(QtWidgets.QLayout.SizeConstraint.SetMinimumSize)
- self.header_main_layout.setContentsMargins(5, 0, 5, 0)
- self.header_main_layout.setSpacing(10)
- self.header_main_layout.setObjectName("header_main_layout")
- self.notification_btn = IconButton(parent=self.main_header_layout)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.notification_btn.sizePolicy().hasHeightForWidth())
- self.notification_btn.setSizePolicy(sizePolicy)
- self.notification_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.notification_btn.setMaximumSize(QtCore.QSize(60, 60))
- self.notification_btn.setText("")
- self.notification_btn.setIconSize(QtCore.QSize(60, 60))
- self.notification_btn.setFlat(True)
- self.notification_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/notification.svg"))
- self.notification_btn.setObjectName("notification_btn")
- self.header_main_layout.addWidget(self.notification_btn, 0, QtCore.Qt.AlignmentFlag.AlignLeft)
- self.extruder_temp_display = DisplayButton(parent=self.main_header_layout)
- self.extruder_temp_display.setMinimumSize(QtCore.QSize(140, 60))
- self.extruder_temp_display.setMaximumSize(QtCore.QSize(160, 60))
- self.extruder_temp_display.setFlat(True)
- self.extruder_temp_display.setProperty("icon_pixmap", QtGui.QPixmap(":/extruder_related/media/btn_icons/nozzle_topbar.svg"))
- self.extruder_temp_display.setObjectName("extruder_temp_display")
- self.header_main_layout.addWidget(self.extruder_temp_display, 0, QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.bed_temp_display = DisplayButton(parent=self.main_header_layout)
- self.bed_temp_display.setMinimumSize(QtCore.QSize(140, 60))
- self.bed_temp_display.setMaximumSize(QtCore.QSize(160, 60))
- self.bed_temp_display.setFlat(True)
- self.bed_temp_display.setProperty("icon_pixmap", QtGui.QPixmap(":/temperature_related/media/btn_icons/temperature_plate.svg"))
- self.bed_temp_display.setObjectName("bed_temp_display")
- self.header_main_layout.addWidget(self.bed_temp_display, 0, QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.chamber_temp_display = DisplayButton(parent=self.main_header_layout)
- self.chamber_temp_display.setMinimumSize(QtCore.QSize(140, 60))
- self.chamber_temp_display.setMaximumSize(QtCore.QSize(160, 60))
- self.chamber_temp_display.setFlat(True)
- self.chamber_temp_display.setProperty("icon_pixmap", QtGui.QPixmap(":/top_bar_icons/media/topbar/chamber_temp_topbar.svg"))
- self.chamber_temp_display.setProperty("secondary_pixmap", QtGui.QPixmap(":/temperature_related/media/btn_icons/humidity.svg"))
- self.chamber_temp_display.setObjectName("chamber_temp_display")
- self.header_main_layout.addWidget(self.chamber_temp_display, 0, QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.filament_type_icon = IconButton(parent=self.main_header_layout)
- self.filament_type_icon.setMinimumSize(QtCore.QSize(60, 60))
- self.filament_type_icon.setMaximumSize(QtCore.QSize(60, 60))
- self.filament_type_icon.setFlat(True)
- self.filament_type_icon.setProperty("icon_pixmap", QtGui.QPixmap(":/filament_related/media/btn_icons/load_filament.svg"))
- self.filament_type_icon.setObjectName("filament_type_icon")
- self.header_main_layout.addWidget(self.filament_type_icon, 0, QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.nozzle_size_icon = IconButton(parent=self.main_header_layout)
- self.nozzle_size_icon.setMinimumSize(QtCore.QSize(60, 60))
- self.nozzle_size_icon.setMaximumSize(QtCore.QSize(60, 60))
- self.nozzle_size_icon.setFlat(True)
- self.nozzle_size_icon.setProperty("icon_pixmap", QtGui.QPixmap(":/temperature_related/media/btn_icons/standart_temperature.svg"))
- self.nozzle_size_icon.setObjectName("nozzle_size_icon")
- self.header_main_layout.addWidget(self.nozzle_size_icon, 0, QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.wifi_button = IconButton(parent=self.main_header_layout)
- self.wifi_button.setEnabled(True)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.wifi_button.sizePolicy().hasHeightForWidth())
- self.wifi_button.setSizePolicy(sizePolicy)
- self.wifi_button.setMinimumSize(QtCore.QSize(60, 60))
- self.wifi_button.setMaximumSize(QtCore.QSize(60, 60))
- self.wifi_button.setStyleSheet("")
- self.wifi_button.setText("")
- self.wifi_button.setIconSize(QtCore.QSize(16, 16))
- self.wifi_button.setCheckable(False)
- self.wifi_button.setChecked(False)
- self.wifi_button.setFlat(True)
- self.wifi_button.setProperty("icon_pixmap", QtGui.QPixmap(":/network/media/btn_icons/network/3bar_wifi.svg"))
- self.wifi_button.setObjectName("wifi_button")
- self.header_main_layout.addWidget(self.wifi_button, 0, QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTop)
- self.header_main_layout.setStretch(1, 1)
- self.header_main_layout.setStretch(2, 1)
- self.header_main_layout.setStretch(3, 1)
- MainWindow.setCentralWidget(self.main_widget)
-
- self.retranslateUi(MainWindow)
- self.main_content_widget.setCurrentIndex(3)
- QtCore.QMetaObject.connectSlotsByName(MainWindow)
-
- def retranslateUi(self, MainWindow):
- _translate = QtCore.QCoreApplication.translate
- MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
- self.notification_btn.setProperty("button_type", _translate("MainWindow", "icon_text"))
- self.extruder_temp_display.setText(_translate("MainWindow", "extruder"))
- self.extruder_temp_display.setProperty("button_type", _translate("MainWindow", "secondary_display"))
- self.extruder_temp_display.setProperty("name", _translate("MainWindow", "extruder_temperature_display"))
- self.bed_temp_display.setText(_translate("MainWindow", "bed"))
- self.bed_temp_display.setProperty("button_type", _translate("MainWindow", "secondary_display"))
- self.chamber_temp_display.setText(_translate("MainWindow", "chamber"))
- self.chamber_temp_display.setProperty("display_format", _translate("MainWindow", "dual"))
- self.chamber_temp_display.setProperty("button_type", _translate("MainWindow", "display_secondary"))
- self.filament_type_icon.setText(_translate("MainWindow", "Filament"))
- self.filament_type_icon.setProperty("button_type", _translate("MainWindow", "icon_text"))
- self.nozzle_size_icon.setText(_translate("MainWindow", "nozzle"))
- self.nozzle_size_icon.setProperty("button_type", _translate("MainWindow", "icon_text"))
- self.wifi_button.setProperty("button_type", _translate("MainWindow", "icon"))
-from lib.utils.blocks_tabwidget import NotificationQTabWidget
-from lib.utils.display_button import DisplayButton
-from lib.utils.icon_button import IconButton
diff --git a/BlocksScreen/lib/ui/mainWindow_v2.ui b/BlocksScreen/lib/ui/mainWindow_v2.ui
deleted file mode 100644
index e85b5159..00000000
--- a/BlocksScreen/lib/ui/mainWindow_v2.ui
+++ /dev/null
@@ -1,981 +0,0 @@
-
-
- MainWindow
-
-
-
- 0
- 0
- 800
- 480
-
-
-
-
- 1
- 1
-
-
-
-
- 800
- 480
-
-
-
-
- 1024
- 600
-
-
-
-
- 1
- 1
-
-
-
-
- 800
- 480
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
-
- BlankCursor
-
-
- true
-
-
- MainWindow
-
-
-
- :/background/logoblocks.png:/background/logoblocks.png
-
-
- Qt::LeftToRight
-
-
- MainWindow > {
- url(:/font/media/fonts for text/Momcake-Thin.ttf);
-}
-
-
- false
-
-
-
-
- 1
- 1
-
-
-
-
- 800
- 480
-
-
-
-
- 1024
- 600
-
-
-
-
- 1
- 1
-
-
-
-
- 800
- 480
-
-
-
- BlankCursor
-
-
- Qt::LeftToRight
-
-
- #main_widget{background-image: url(:/background/media/1st_background.png);}
-
-
-
-
- true
-
-
-
- 0
- 0
- 800
- 481
-
-
-
-
- 1
- 1
-
-
-
-
- 800
- 400
-
-
-
-
- 1024
- 720
-
-
-
-
- 800
- 400
-
-
-
- BlankCursor
-
-
- Qt::RightToLeft
-
-
- false
-
-
- #main_content_widget{
-background-image: url(:/background/media/1st_background.png);
-}
-QTabBar::tab{
- min-width: 80px;
- max-width: 80px;
- min-height: 100px;
- max-height: 100px;
- background: transparent;
-}
-
-
-
-
- QTabWidget::West
-
-
- QTabWidget::Rounded
-
-
- 0
-
-
-
- 60
- 60
-
-
-
- Qt::ElideNone
-
-
- false
-
-
- true
-
-
- false
-
-
- false
-
-
-
-
- 1
- 1
-
-
-
-
- 720
- 420
-
-
-
-
- 1024
- 720
-
-
-
-
- 1024
- 420
-
-
-
- BlankCursor
-
-
-
- :/icons/media/main_menu/ICON_home.png
- :/icons/media/main_menu/ICON_home_pressed.png
- :/icons/media/main_menu/ICON_home_blocked.png:/icons/media/main_menu/ICON_home.png
-
-
-
-
-
-
-
- 260
- 50
- 80
- 60
-
-
-
-
- 1
- 1
-
-
-
-
- 60
- 60
-
-
-
-
- 90
- 90
-
-
-
-
- 1
- 1
-
-
-
-
- 60
- 60
-
-
-
- QFrame::StyledPanel
-
-
- QFrame::Plain
-
-
- 0
-
-
- Qt::ScrollBarAlwaysOff
-
-
- Qt::ScrollBarAlwaysOff
-
-
- QAbstractScrollArea::AdjustToContents
-
-
- QPainter::Antialiasing|QPainter::SmoothPixmapTransform
-
-
- QGraphicsView::SmartViewportUpdate
-
-
-
-
-
- 500
- 120
- 60
- 60
-
-
-
-
- 1
- 1
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
-
- 60
- 60
-
-
-
- false
-
-
- :/temperatures/media/btn_icons/nozzle.svg
-
-
- icon_text
-
-
-
-
-
- 430
- 60
- 60
- 60
-
-
-
-
- 1
- 1
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
-
- 16
- 16
-
-
-
- false
-
-
- :/filament/media/btn_icons/material top bar.svg
-
-
- filament_type_display
-
-
- icon_text
-
-
-
-
- true
-
-
-
- 360
- 50
- 60
- 60
-
-
-
-
- 1
- 1
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
-
-
-
-
- 16
- 16
-
-
-
- false
-
-
- false
-
-
- false
-
-
- icon
-
-
- :/wifi_icons/media/btn_icons/3fullWIFI.svg
-
-
-
-
-
- 510
- 50
- 120
- 60
-
-
-
-
- 1
- 1
-
-
-
-
- 60
- 30
-
-
-
-
- 120
- 60
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 50
- 50
- 50
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 50
- 50
- 50
-
-
-
-
-
-
- 50
- 50
- 50
-
-
-
-
-
-
- 60
- 60
- 60
-
-
-
-
-
-
- 60
- 60
- 60
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 50
- 50
- 50
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 50
- 50
- 50
-
-
-
-
-
-
- 50
- 50
- 50
-
-
-
-
-
-
- 60
- 60
- 60
-
-
-
-
-
-
- 60
- 60
- 60
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 50
- 50
- 50
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 50
- 50
- 50
-
-
-
-
-
-
- 50
- 50
- 50
-
-
-
-
-
-
- 60
- 60
- 60
-
-
-
-
-
-
- 60
- 60
- 60
-
-
-
-
-
-
-
-
-
-
- false
-
-
- false
-
-
- false
-
-
- :/temperatures/media/btn_icons/BED temp.svg
-
-
- bed_temperature_display
-
-
- secondary_display
-
-
-
-
-
- 130
- 50
- 120
- 60
-
-
-
-
- 1
- 1
-
-
-
-
- 60
- 30
-
-
-
-
- 120
- 60
-
-
-
- false
-
-
-
-
-
- false
-
-
- :/temperatures/media/btn_icons/nozzle.svg
-
-
- extruder_temperature_display
-
-
- secondary_display
-
-
-
-
-
-
- 1
- 1
-
-
-
-
- 720
- 420
-
-
-
-
- 1024
- 720
-
-
-
-
- 1024
- 420
-
-
-
- BlankCursor
-
-
-
- :/icons/media/main_menu/ICON_filament.png
- :/icons/media/main_menu/ICON_filament_pressed.png
- :/icons/media/main_menu/ICON_filamente_blocked.png:/icons/media/main_menu/ICON_filament.png
-
-
-
-
-
-
-
-
- 1
- 1
-
-
-
-
- 720
- 420
-
-
-
-
- 1024
- 720
-
-
-
-
- 720
- 420
-
-
-
- BlankCursor
-
-
-
- :/icons/media/main_menu/ICON_control.png
- :/icons/media/main_menu/ICON_control_pressed.png
- :/icons/media/main_menu/ICON_control_blocked.png:/icons/media/main_menu/ICON_control.png
-
-
-
-
-
-
-
-
- 1
- 1
-
-
-
-
- 720
- 420
-
-
-
-
- 1024
- 720
-
-
-
-
- 1024
- 420
-
-
-
- BlankCursor
-
-
-
- :/icons/media/main_menu/ICON_utilities.png
- :/icons/media/main_menu/ICON_utilities_pressed.png
- :/icons/media/main_menu/ICON_utilities_blocked.png:/icons/media/main_menu/ICON_utilities.png
-
-
-
-
-
-
-
-
- :/wifi_icons/media/btn_icons/wifi_settings.svg
-
-
-
- Page
-
-
-
-
-
-
-
- BlocksCustomButton
- QPushButton
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/BlocksScreen/lib/ui/mainWindow_v2_ui.py b/BlocksScreen/lib/ui/mainWindow_v2_ui.py
deleted file mode 100644
index bf757330..00000000
--- a/BlocksScreen/lib/ui/mainWindow_v2_ui.py
+++ /dev/null
@@ -1,360 +0,0 @@
-# Form implementation generated from reading ui file '/home/bugo/github/Blocks_Screen/BlocksScreen/lib/ui/mainWindow_v2.ui'
-#
-# Created by: PyQt6 UI code generator 6.4.2
-#
-# WARNING: Any manual changes made to this file will be lost when pyuic6 is
-# run again. Do not edit this file unless you know what you are doing.
-
-
-from PyQt6 import QtCore, QtGui, QtWidgets
-
-
-class Ui_MainWindow(object):
- def setupUi(self, MainWindow):
- MainWindow.setObjectName("MainWindow")
- MainWindow.resize(800, 480)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
- MainWindow.setSizePolicy(sizePolicy)
- MainWindow.setMinimumSize(QtCore.QSize(800, 480))
- MainWindow.setMaximumSize(QtCore.QSize(1024, 600))
- MainWindow.setSizeIncrement(QtCore.QSize(1, 1))
- MainWindow.setBaseSize(QtCore.QSize(800, 480))
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush)
- MainWindow.setPalette(palette)
- MainWindow.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor))
- MainWindow.setTabletTracking(True)
- icon = QtGui.QIcon.fromTheme("applications-other")
- MainWindow.setWindowIcon(icon)
- MainWindow.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- MainWindow.setStyleSheet("MainWindow > {\n"
-" url(:/font/media/fonts for text/Momcake-Thin.ttf);\n"
-"}")
- MainWindow.setAnimated(False)
- self.main_widget = QtWidgets.QWidget(parent=MainWindow)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.main_widget.sizePolicy().hasHeightForWidth())
- self.main_widget.setSizePolicy(sizePolicy)
- self.main_widget.setMinimumSize(QtCore.QSize(800, 480))
- self.main_widget.setMaximumSize(QtCore.QSize(1024, 600))
- self.main_widget.setSizeIncrement(QtCore.QSize(1, 1))
- self.main_widget.setBaseSize(QtCore.QSize(800, 480))
- self.main_widget.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor))
- self.main_widget.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.main_widget.setStyleSheet("#main_widget{background-image: url(:/background/media/1st_background.png);}\n"
-"")
- self.main_widget.setObjectName("main_widget")
- self.main_content_widget = QtWidgets.QTabWidget(parent=self.main_widget)
- self.main_content_widget.setEnabled(True)
- self.main_content_widget.setGeometry(QtCore.QRect(0, 0, 800, 481))
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.main_content_widget.sizePolicy().hasHeightForWidth())
- self.main_content_widget.setSizePolicy(sizePolicy)
- self.main_content_widget.setMinimumSize(QtCore.QSize(800, 400))
- self.main_content_widget.setMaximumSize(QtCore.QSize(1024, 720))
- self.main_content_widget.setBaseSize(QtCore.QSize(800, 400))
- self.main_content_widget.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor))
- self.main_content_widget.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.main_content_widget.setAutoFillBackground(False)
- self.main_content_widget.setStyleSheet("#main_content_widget{\n"
-"background-image: url(:/background/media/1st_background.png);\n"
-"}\n"
-"QTabBar::tab{\n"
-" min-width: 80px;\n"
-" max-width: 80px;\n"
-" min-height: 100px;\n"
-" max-height: 100px;\n"
-" background: transparent;\n"
-"}\n"
-"\n"
-"")
- self.main_content_widget.setTabPosition(QtWidgets.QTabWidget.TabPosition.West)
- self.main_content_widget.setTabShape(QtWidgets.QTabWidget.TabShape.Rounded)
- self.main_content_widget.setIconSize(QtCore.QSize(60, 60))
- self.main_content_widget.setElideMode(QtCore.Qt.TextElideMode.ElideNone)
- self.main_content_widget.setUsesScrollButtons(False)
- self.main_content_widget.setDocumentMode(True)
- self.main_content_widget.setTabsClosable(False)
- self.main_content_widget.setMovable(False)
- self.main_content_widget.setObjectName("main_content_widget")
- self.printTab = QtWidgets.QWidget()
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.printTab.sizePolicy().hasHeightForWidth())
- self.printTab.setSizePolicy(sizePolicy)
- self.printTab.setMinimumSize(QtCore.QSize(720, 420))
- self.printTab.setMaximumSize(QtCore.QSize(1024, 720))
- self.printTab.setBaseSize(QtCore.QSize(1024, 420))
- self.printTab.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor))
- self.printTab.setObjectName("printTab")
- self.header_image_logo = QtWidgets.QGraphicsView(parent=self.printTab)
- self.header_image_logo.setGeometry(QtCore.QRect(260, 50, 80, 60))
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.header_image_logo.sizePolicy().hasHeightForWidth())
- self.header_image_logo.setSizePolicy(sizePolicy)
- self.header_image_logo.setMinimumSize(QtCore.QSize(60, 60))
- self.header_image_logo.setMaximumSize(QtCore.QSize(90, 90))
- self.header_image_logo.setSizeIncrement(QtCore.QSize(1, 1))
- self.header_image_logo.setBaseSize(QtCore.QSize(60, 60))
- self.header_image_logo.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
- self.header_image_logo.setFrameShadow(QtWidgets.QFrame.Shadow.Plain)
- self.header_image_logo.setLineWidth(0)
- self.header_image_logo.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff)
- self.header_image_logo.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff)
- self.header_image_logo.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.SizeAdjustPolicy.AdjustToContents)
- self.header_image_logo.setRenderHints(QtGui.QPainter.RenderHint.Antialiasing|QtGui.QPainter.RenderHint.SmoothPixmapTransform)
- self.header_image_logo.setViewportUpdateMode(QtWidgets.QGraphicsView.ViewportUpdateMode.SmartViewportUpdate)
- self.header_image_logo.setObjectName("header_image_logo")
- self.nozzle_size_icon = BlocksCustomButton(parent=self.printTab)
- self.nozzle_size_icon.setGeometry(QtCore.QRect(500, 120, 60, 60))
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.nozzle_size_icon.sizePolicy().hasHeightForWidth())
- self.nozzle_size_icon.setSizePolicy(sizePolicy)
- self.nozzle_size_icon.setMinimumSize(QtCore.QSize(60, 60))
- self.nozzle_size_icon.setMaximumSize(QtCore.QSize(60, 60))
- self.nozzle_size_icon.setText("")
- self.nozzle_size_icon.setIconSize(QtCore.QSize(60, 60))
- self.nozzle_size_icon.setFlat(False)
- self.nozzle_size_icon.setProperty("icon_pixmap", QtGui.QPixmap(":/temperatures/media/btn_icons/nozzle.svg"))
- self.nozzle_size_icon.setObjectName("nozzle_size_icon")
- self.filament_type_icon = BlocksCustomButton(parent=self.printTab)
- self.filament_type_icon.setGeometry(QtCore.QRect(430, 60, 60, 60))
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.filament_type_icon.sizePolicy().hasHeightForWidth())
- self.filament_type_icon.setSizePolicy(sizePolicy)
- self.filament_type_icon.setMinimumSize(QtCore.QSize(60, 60))
- self.filament_type_icon.setMaximumSize(QtCore.QSize(60, 60))
- self.filament_type_icon.setText("")
- self.filament_type_icon.setIconSize(QtCore.QSize(16, 16))
- self.filament_type_icon.setFlat(False)
- self.filament_type_icon.setProperty("icon_pixmap", QtGui.QPixmap(":/filament/media/btn_icons/material top bar.svg"))
- self.filament_type_icon.setObjectName("filament_type_icon")
- self.wifi_button = BlocksCustomButton(parent=self.printTab)
- self.wifi_button.setEnabled(True)
- self.wifi_button.setGeometry(QtCore.QRect(360, 50, 60, 60))
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.wifi_button.sizePolicy().hasHeightForWidth())
- self.wifi_button.setSizePolicy(sizePolicy)
- self.wifi_button.setMinimumSize(QtCore.QSize(60, 60))
- self.wifi_button.setMaximumSize(QtCore.QSize(60, 60))
- self.wifi_button.setStyleSheet("")
- self.wifi_button.setText("")
- self.wifi_button.setIconSize(QtCore.QSize(16, 16))
- self.wifi_button.setCheckable(False)
- self.wifi_button.setChecked(False)
- self.wifi_button.setFlat(False)
- self.wifi_button.setProperty("icon_pixmap", QtGui.QPixmap(":/wifi_icons/media/btn_icons/3fullWIFI.svg"))
- self.wifi_button.setObjectName("wifi_button")
- self.bed_temp_display = BlocksCustomButton(parent=self.printTab)
- self.bed_temp_display.setGeometry(QtCore.QRect(510, 50, 120, 60))
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.bed_temp_display.sizePolicy().hasHeightForWidth())
- self.bed_temp_display.setSizePolicy(sizePolicy)
- self.bed_temp_display.setMinimumSize(QtCore.QSize(60, 30))
- self.bed_temp_display.setMaximumSize(QtCore.QSize(120, 60))
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Base, brush)
- brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Window, brush)
- brush = QtGui.QBrush(QtGui.QColor(60, 60, 60))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Highlight, brush)
- brush = QtGui.QBrush(QtGui.QColor(60, 60, 60))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.HighlightedText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Base, brush)
- brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Window, brush)
- brush = QtGui.QBrush(QtGui.QColor(60, 60, 60))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Highlight, brush)
- brush = QtGui.QBrush(QtGui.QColor(60, 60, 60))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.HighlightedText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Base, brush)
- brush = QtGui.QBrush(QtGui.QColor(50, 50, 50))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Window, brush)
- brush = QtGui.QBrush(QtGui.QColor(60, 60, 60))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Highlight, brush)
- brush = QtGui.QBrush(QtGui.QColor(60, 60, 60))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.HighlightedText, brush)
- self.bed_temp_display.setPalette(palette)
- self.bed_temp_display.setText("")
- self.bed_temp_display.setCheckable(False)
- self.bed_temp_display.setDefault(False)
- self.bed_temp_display.setFlat(False)
- self.bed_temp_display.setProperty("icon_pixmap", QtGui.QPixmap(":/temperatures/media/btn_icons/BED temp.svg"))
- self.bed_temp_display.setObjectName("bed_temp_display")
- self.extruder_temp_display = BlocksCustomButton(parent=self.printTab)
- self.extruder_temp_display.setGeometry(QtCore.QRect(130, 50, 120, 60))
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.extruder_temp_display.sizePolicy().hasHeightForWidth())
- self.extruder_temp_display.setSizePolicy(sizePolicy)
- self.extruder_temp_display.setMinimumSize(QtCore.QSize(60, 30))
- self.extruder_temp_display.setMaximumSize(QtCore.QSize(120, 60))
- self.extruder_temp_display.setAutoFillBackground(False)
- self.extruder_temp_display.setText("")
- self.extruder_temp_display.setFlat(False)
- self.extruder_temp_display.setProperty("icon_pixmap", QtGui.QPixmap(":/temperatures/media/btn_icons/nozzle.svg"))
- self.extruder_temp_display.setObjectName("extruder_temp_display")
- icon = QtGui.QIcon()
- icon.addPixmap(QtGui.QPixmap(":/icons/media/main_menu/ICON_home.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
- icon.addPixmap(QtGui.QPixmap(":/icons/media/main_menu/ICON_home_pressed.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.On)
- icon.addPixmap(QtGui.QPixmap(":/icons/media/main_menu/ICON_home_blocked.png"), QtGui.QIcon.Mode.Disabled, QtGui.QIcon.State.On)
- self.main_content_widget.addTab(self.printTab, icon, "")
- self.filamentTab = QtWidgets.QWidget()
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.filamentTab.sizePolicy().hasHeightForWidth())
- self.filamentTab.setSizePolicy(sizePolicy)
- self.filamentTab.setMinimumSize(QtCore.QSize(720, 420))
- self.filamentTab.setMaximumSize(QtCore.QSize(1024, 720))
- self.filamentTab.setBaseSize(QtCore.QSize(1024, 420))
- self.filamentTab.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor))
- self.filamentTab.setObjectName("filamentTab")
- icon1 = QtGui.QIcon()
- icon1.addPixmap(QtGui.QPixmap(":/icons/media/main_menu/ICON_filament.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
- icon1.addPixmap(QtGui.QPixmap(":/icons/media/main_menu/ICON_filament_pressed.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.On)
- icon1.addPixmap(QtGui.QPixmap(":/icons/media/main_menu/ICON_filamente_blocked.png"), QtGui.QIcon.Mode.Disabled, QtGui.QIcon.State.On)
- self.main_content_widget.addTab(self.filamentTab, icon1, "")
- self.controlTab = QtWidgets.QWidget()
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.controlTab.sizePolicy().hasHeightForWidth())
- self.controlTab.setSizePolicy(sizePolicy)
- self.controlTab.setMinimumSize(QtCore.QSize(720, 420))
- self.controlTab.setMaximumSize(QtCore.QSize(1024, 720))
- self.controlTab.setBaseSize(QtCore.QSize(720, 420))
- self.controlTab.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor))
- self.controlTab.setObjectName("controlTab")
- icon2 = QtGui.QIcon()
- icon2.addPixmap(QtGui.QPixmap(":/icons/media/main_menu/ICON_control.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
- icon2.addPixmap(QtGui.QPixmap(":/icons/media/main_menu/ICON_control_pressed.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.On)
- icon2.addPixmap(QtGui.QPixmap(":/icons/media/main_menu/ICON_control_blocked.png"), QtGui.QIcon.Mode.Disabled, QtGui.QIcon.State.On)
- self.main_content_widget.addTab(self.controlTab, icon2, "")
- self.utilitiesTab = QtWidgets.QWidget()
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.utilitiesTab.sizePolicy().hasHeightForWidth())
- self.utilitiesTab.setSizePolicy(sizePolicy)
- self.utilitiesTab.setMinimumSize(QtCore.QSize(720, 420))
- self.utilitiesTab.setMaximumSize(QtCore.QSize(1024, 720))
- self.utilitiesTab.setBaseSize(QtCore.QSize(1024, 420))
- self.utilitiesTab.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor))
- self.utilitiesTab.setObjectName("utilitiesTab")
- icon3 = QtGui.QIcon()
- icon3.addPixmap(QtGui.QPixmap(":/icons/media/main_menu/ICON_utilities.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
- icon3.addPixmap(QtGui.QPixmap(":/icons/media/main_menu/ICON_utilities_pressed.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.On)
- icon3.addPixmap(QtGui.QPixmap(":/icons/media/main_menu/ICON_utilities_blocked.png"), QtGui.QIcon.Mode.Disabled, QtGui.QIcon.State.On)
- self.main_content_widget.addTab(self.utilitiesTab, icon3, "")
- self.wifiTab = QtWidgets.QWidget()
- self.wifiTab.setObjectName("wifiTab")
- icon4 = QtGui.QIcon()
- icon4.addPixmap(QtGui.QPixmap(":/wifi_icons/media/btn_icons/wifi_settings.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.On)
- self.main_content_widget.addTab(self.wifiTab, icon4, "")
- MainWindow.setCentralWidget(self.main_widget)
-
- self.retranslateUi(MainWindow)
- self.main_content_widget.setCurrentIndex(0)
- QtCore.QMetaObject.connectSlotsByName(MainWindow)
-
- def retranslateUi(self, MainWindow):
- _translate = QtCore.QCoreApplication.translate
- MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
- self.nozzle_size_icon.setProperty("button_type", _translate("MainWindow", "icon_text"))
- self.filament_type_icon.setProperty("name", _translate("MainWindow", "filament_type_display"))
- self.filament_type_icon.setProperty("button_type", _translate("MainWindow", "icon_text"))
- self.wifi_button.setProperty("button_type", _translate("MainWindow", "icon"))
- self.bed_temp_display.setProperty("name", _translate("MainWindow", "bed_temperature_display"))
- self.bed_temp_display.setProperty("button_type", _translate("MainWindow", "secondary_display"))
- self.extruder_temp_display.setProperty("name", _translate("MainWindow", "extruder_temperature_display"))
- self.extruder_temp_display.setProperty("button_type", _translate("MainWindow", "secondary_display"))
- self.main_content_widget.setTabText(self.main_content_widget.indexOf(self.wifiTab), _translate("MainWindow", "Page"))
-from utils.blocks_button import BlocksCustomButton
diff --git a/BlocksScreen/lib/ui/option_card.ui b/BlocksScreen/lib/ui/option_card.ui
deleted file mode 100644
index f0076876..00000000
--- a/BlocksScreen/lib/ui/option_card.ui
+++ /dev/null
@@ -1,126 +0,0 @@
-
-
- option_card
-
-
-
- 0
- 0
- 200
- 300
-
-
-
-
- 0
- 0
-
-
-
-
- 200
- 300
-
-
-
-
- 400
- 500
-
-
-
- Frame
-
-
-
- 0
-
-
- 0
-
- -
-
-
-
- 200
- 150
-
-
-
- TextLabel
-
-
-
- -
-
-
-
- 200
- 0
-
-
-
- Qt::Horizontal
-
-
-
- -
-
-
-
- 200
- 50
-
-
-
- TextLabel
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 200
- 80
-
-
-
-
-
-
- true
-
-
- icon
-
-
- :/arrow_icons/media/btn_icons/right move axis.svg
-
-
-
-
-
-
-
- BlocksCustomButton
- QPushButton
-
-
-
- BlocksLabel
- QLabel
-
-
-
-
-
-
-
-
diff --git a/BlocksScreen/lib/ui/option_card_ui.py b/BlocksScreen/lib/ui/option_card_ui.py
deleted file mode 100644
index b6a39f3a..00000000
--- a/BlocksScreen/lib/ui/option_card_ui.py
+++ /dev/null
@@ -1,62 +0,0 @@
-# Form implementation generated from reading ui file '/home/bugo/github/Blocks_Screen/BlocksScreen/lib/ui/option_card.ui'
-#
-# Created by: PyQt6 UI code generator 6.4.2
-#
-# WARNING: Any manual changes made to this file will be lost when pyuic6 is
-# run again. Do not edit this file unless you know what you are doing.
-
-
-from PyQt6 import QtCore, QtGui, QtWidgets
-
-
-class Ui_option_card(object):
- def setupUi(self, option_card):
- option_card.setObjectName("option_card")
- option_card.resize(200, 300)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Ignored)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(option_card.sizePolicy().hasHeightForWidth())
- option_card.setSizePolicy(sizePolicy)
- option_card.setMinimumSize(QtCore.QSize(200, 300))
- option_card.setMaximumSize(QtCore.QSize(400, 500))
- self.verticalLayout = QtWidgets.QVBoxLayout(option_card)
- self.verticalLayout.setContentsMargins(0, 0, -1, -1)
- self.verticalLayout.setObjectName("verticalLayout")
- self.option_icon = BlocksLabel(parent=option_card)
- self.option_icon.setMinimumSize(QtCore.QSize(200, 150))
- self.option_icon.setObjectName("option_icon")
- self.verticalLayout.addWidget(self.option_icon, 0, QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.line = QtWidgets.QFrame(parent=option_card)
- self.line.setMinimumSize(QtCore.QSize(200, 0))
- self.line.setFrameShape(QtWidgets.QFrame.Shape.HLine)
- self.line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
- self.line.setObjectName("line")
- self.verticalLayout.addWidget(self.line, 0, QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.option_text = QtWidgets.QLabel(parent=option_card)
- self.option_text.setMinimumSize(QtCore.QSize(200, 50))
- self.option_text.setObjectName("option_text")
- self.verticalLayout.addWidget(self.option_text)
- self.continue_button = BlocksCustomButton(parent=option_card)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.continue_button.sizePolicy().hasHeightForWidth())
- self.continue_button.setSizePolicy(sizePolicy)
- self.continue_button.setMinimumSize(QtCore.QSize(200, 80))
- self.continue_button.setText("")
- self.continue_button.setFlat(True)
- self.continue_button.setProperty("icon_pixmap", QtGui.QPixmap(":/arrow_icons/media/btn_icons/right move axis.svg"))
- self.continue_button.setObjectName("continue_button")
- self.verticalLayout.addWidget(self.continue_button)
-
- self.retranslateUi(option_card)
- QtCore.QMetaObject.connectSlotsByName(option_card)
-
- def retranslateUi(self, option_card):
- _translate = QtCore.QCoreApplication.translate
- option_card.setWindowTitle(_translate("option_card", "Frame"))
- self.option_icon.setText(_translate("option_card", "TextLabel"))
- self.option_text.setText(_translate("option_card", "TextLabel"))
- self.continue_button.setProperty("button_type", _translate("option_card", "icon"))
-from lib.utils.ui import BlocksCustomButton, BlocksLabel
diff --git a/BlocksScreen/lib/ui/printStackedWidget.ui b/BlocksScreen/lib/ui/printStackedWidget.ui
deleted file mode 100644
index 01c231d3..00000000
--- a/BlocksScreen/lib/ui/printStackedWidget.ui
+++ /dev/null
@@ -1,2671 +0,0 @@
-
-
- printStackedWidget
-
-
- Qt::WindowModal
-
-
-
- 0
- 0
- 710
- 411
-
-
-
-
- 0
- 0
-
-
-
-
- 710
- 410
-
-
-
-
- 720
- 420
-
-
-
- StackedWidget
-
-
- 0
-
-
- :/background/media/graphics/scroll_list_window.svg
-
-
-
-
- 1
- 1
-
-
-
-
- 710
- 400
-
-
-
-
- 720
- 420
-
-
-
-
-
- 230
- 120
- 250
- 80
-
-
-
-
- 0
- 0
-
-
-
-
- 250
- 80
-
-
-
-
- 250
- 80
-
-
-
-
- MS Shell Dlg 2
- 18
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
-
-
-
- Print
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- :/ui/media/btn_icons/print.svg
-
-
-
-
- true
-
-
-
- 105
- 180
- 500
- 200
-
-
-
-
- 0
- 0
-
-
-
-
- 0
- 200
-
-
-
-
- 500
- 200
-
-
-
-
- Montserrat
- 19
-
-
-
- background: transparent; color: white;
-
-
- Printer ready
-
-
- Qt::AlignCenter
-
-
- Qt::NoTextInteraction
-
-
-
-
-
-
- 1
- 1
-
-
-
-
- 710
- 400
-
-
-
-
- 720
- 420
-
-
-
-
- PreferAntialias
-
-
-
- Qt::LeftToRight
-
-
- false
-
-
- #file_page{
- background-color: transparent;
-}
-
-
- -
-
-
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
- Back
-
-
- true
-
-
- back_btn
-
-
- icon
-
-
- :/ui/media/btn_icons/back.svg
-
-
-
- -
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
- Reload
-
-
- true
-
-
- icon
-
-
- :/ui/media/btn_icons/refresh.svg
-
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
- Qt::Horizontal
-
-
-
- -
-
-
- 5
-
-
- 5
-
-
- 5
-
-
- 5
-
-
-
-
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
-
- QListWidget{background-color: transparent;}
-
-QLabel{
-color: #ffffff;
-}
-
-
- QAbstractItemView::NoEditTriggers
-
-
- false
-
-
- Qt::IgnoreAction
-
-
- true
-
-
-
-
-
-
-
-
-
-
- 1
- 1
-
-
-
-
- 710
- 400
-
-
-
-
- 720
- 420
-
-
-
- Qt::LeftToRight
-
-
- -
-
-
-
-
-
-
- 0
- 60
-
-
-
-
- 16777215
- 60
-
-
-
-
- Momcake
- 24
-
-
-
- Qt::RightToLeft
-
-
- background: transparent; color: white;
-
-
- CONFIRM
-
-
- Qt::AlignCenter
-
-
- title_text
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
- true
-
-
-
- 230
- 60
-
-
-
-
- 250
- 60
-
-
-
-
- Montserrat
- 14
-
-
-
- background: transparent; color: white;
-
-
- Do you want to print this file?
-
-
- Qt::AlignCenter
-
-
- true
-
-
-
- -
-
-
- true
-
-
-
- 250
- 80
-
-
-
-
- 250
- 80
-
-
-
-
- Montserrat
- 14
-
-
-
- background: transparent; color: white;
-
-
- Dinossauro Falico
-
-
- Qt::AlignCenter
-
-
- true
-
-
-
- -
-
-
- 2
-
-
- QLayout::SetFixedSize
-
-
- 0
-
-
- 0
-
-
- 0
-
-
- 0
-
-
-
-
-
-
- 200
- 100
-
-
-
-
- 200
- 100
-
-
-
-
- MS Shell Dlg 2
- 18
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
-
-
-
- Yes
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- normal
-
-
- :/dialog/media/btn_icons/yes.svg
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 200
- 100
-
-
-
-
- 200
- 100
-
-
-
-
- MS Shell Dlg 2
- 18
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
-
-
-
- No
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- normal
-
-
- :/dialog/media/btn_icons/no.svg
-
-
-
-
-
-
-
- -
-
-
-
- 1
- 1
-
-
-
-
- 400
- 300
-
-
-
-
- 400
- 300
-
-
-
- QGraphicsView{
-background-color: transparent;
-}
-
-
- QFrame::NoFrame
-
-
- QFrame::Plain
-
-
- Qt::ScrollBarAlwaysOff
-
-
- Qt::ScrollBarAlwaysOff
-
-
- QAbstractScrollArea::AdjustIgnored
-
-
-
-
- 0
- 0
- 0
-
-
-
-
- QPainter::Antialiasing|QPainter::SmoothPixmapTransform|QPainter::TextAntialiasing
-
-
- QGraphicsView::SmartViewportUpdate
-
-
-
-
-
-
-
-
-
-
- 1
- 1
-
-
-
-
- 710
- 400
-
-
-
-
- 720
- 420
-
-
-
- Qt::LeftToRight
-
-
- -
-
-
- 20
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
- Momcake
- 14
-
-
-
- Qt::RightToLeft
-
-
- background: transparent; color: white;
-
-
-
-
-
- Qt::AlignCenter
-
-
- title_text
-
-
- :/files/media/btn_icons/file_icon.svg
-
-
-
- -
-
-
- true
-
-
-
- 0
- 0
-
-
-
-
- 200
- 60
-
-
-
-
- 16777215
- 60
-
-
-
-
- Montserrat
- 14
-
-
-
- background: transparent; color: white;
-
-
- Currently printing file
-
-
- Qt::AlignCenter
-
-
-
-
-
- -
-
-
- 5
-
-
- QLayout::SetMinimumSize
-
-
- 5
-
-
- 5
-
-
- 5
-
-
- 5
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 680
- 100
-
-
-
- QFrame::NoFrame
-
-
- QFrame::Plain
-
-
- 0
-
-
-
- 5
-
-
- 0
-
-
- 0
-
-
- 0
-
-
- 0
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 200
- 70
-
-
-
-
- 16777215
- 70
-
-
-
-
- MS Shell Dlg 2
- 18
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
-
-
-
- Pause
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- normal
-
-
- :/ui/media/btn_icons/pause.svg
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 200
- 70
-
-
-
-
- 16777215
- 70
-
-
-
-
- MS Shell Dlg 2
- 18
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
-
-
-
- Stop
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- normal
-
-
- :/ui/media/btn_icons/stop.svg
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 200
- 70
-
-
-
-
- 16777215
- 70
-
-
-
-
- MS Shell Dlg 2
- 18
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
-
-
-
- Tune
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- normal
-
-
- :/ui/media/btn_icons/tune.svg
-
-
-
-
-
-
- -
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- Momcake
- 16
-
-
-
- Qt::RightToLeft
-
-
- background: transparent; color: white;
-
-
- Progress
-
-
- Qt::AlignCenter
-
-
- title_text
-
-
-
- -
-
-
- true
-
-
-
- 0
- 0
-
-
-
-
- Montserrat
- 14
-
-
-
- background: transparent; color: white;
-
-
- 0
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
- Qt::LeftToRight
-
-
- 24
-
-
-
-
-
- -
-
-
-
-
-
- false
-
-
-
- 0
- 0
-
-
-
-
- 150
- 40
-
-
-
-
- 150
- 40
-
-
-
-
-
-
- false
-
-
- true
-
-
- display_secondary
-
-
- :/ui/media/btn_icons/layers.svg
-
-
- layer_count_display_button
-
-
-
- -
-
-
- false
-
-
-
- 0
- 0
-
-
-
-
- 150
- 40
-
-
-
- SplitHCursor
-
-
-
-
-
- false
-
-
- true
-
-
- display
-
-
- :/ui/media/btn_icons/time.svg
-
-
-
-
-
-
-
-
-
-
-
-
- 1
- 1
-
-
-
-
- 710
- 400
-
-
-
-
- 720
- 420
-
-
-
- Qt::LeftToRight
-
-
- #BlocksPushButton{
- font-color: rgb(255,255,255,255);
-}
-
-
- -
-
-
- 20
-
-
-
-
-
-
- 0
- 60
-
-
-
-
- 16777215
- 60
-
-
-
-
- Momcake
- 24
-
-
-
- Qt::RightToLeft
-
-
- background: transparent; color: white;
-
-
- TUNE
-
-
- Qt::AlignCenter
-
-
- title_text
-
-
-
- -
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
-
- 32
- 32
-
-
-
- true
-
-
-
-
-
- icon
-
-
- :/ui/media/btn_icons/back.svg
-
-
-
-
-
- -
-
-
-
-
-
-
- 200
- 70
-
-
-
-
- 200
- 70
-
-
-
-
- MS Shell Dlg 2
- 18
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
-
-
-
- Babystep
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- normal
-
-
- :/z_levelling/media/btn_icons/baby_step_icon.svg
-
-
-
- -
-
-
-
- 200
- 70
-
-
-
-
- 200
- 70
-
-
-
-
- MS Shell Dlg 2
- 18
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
-
-
-
- Filament
-Change
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- normal
-
-
- :/filament_related/media/btn_icons/change_filament.svg
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
- Momcake
- 20
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
-
-
-
-
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- icon
-
-
- :/filament_related/media/btn_icons/filament_sensor.svg
-
-
-
-
-
- -
-
-
- QLayout::SetDefaultConstraint
-
-
- 2
-
-
- 2
-
-
- 2
-
-
- 2
-
-
- 1
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 150
- 60
-
-
-
-
- 150
- 60
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
-
-
-
-
-
- 60
- 60
-
-
-
- true
-
-
- :/temperature_related/media/btn_icons/temperature_plate.svg
-
-
- bed_temperature_display
-
-
- display
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 150
- 60
-
-
-
-
- 150
- 60
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
-
-
-
-
- true
-
-
- :/temperature_related/media/btn_icons/temperature.svg
-
-
- extruder_temperature_display
-
-
- display
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 150
- 60
-
-
-
-
- 150
- 60
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
-
-
- PreferAntialias
-
-
-
-
-
-
- true
-
-
- :/motion/media/btn_icons/speed.svg
-
-
- print_speed_display
-
-
- display
-
-
-
-
-
-
-
-
-
-
- 1
- 1
-
-
-
-
- 710
- 400
-
-
-
-
- 720
- 420
-
-
-
- Qt::LeftToRight
-
-
-
-
-
- -
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 200
- 60
-
-
-
-
- 16777215
- 16777215
-
-
-
-
- 24
-
-
-
- background: transparent; color: white;
-
-
- Z Babystep
-
-
- Qt::AlignCenter
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
- true
-
-
- icon
-
-
- :/ui/media/btn_icons/back.svg
-
-
-
-
-
- -
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 350
- 160
-
-
-
-
- 350
- 160
-
-
-
- QFrame::StyledPanel
-
-
- QFrame::Raised
-
-
-
-
- 0
- 30
- 371
- 121
-
-
-
- Qt::RightToLeft
-
-
-
-
-
- :/graphics/media/graphics/babystep_graphic.png
-
-
- false
-
-
- Qt::AlignCenter
-
-
-
-
-
- 130
- 70
- 200
- 60
-
-
-
-
- 0
- 0
-
-
-
-
- 150
- 60
-
-
-
-
- 200
- 60
-
-
-
-
- 13
-
-
-
- background: transparent; color: white;
-
-
-
-
-
- :/graphics/media/btn_icons/z_offset_adjust.svg
-
-
- Qt::AlignCenter
-
-
-
-
-
-
-
- -
-
-
- 5
-
-
- 5
-
-
- 5
-
-
- 5
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 80
- 80
-
-
-
-
- 80
- 80
-
-
-
- ~^
-
-
- true
-
-
- icon
-
-
- :/arrow_icons/media/btn_icons/up_arrow.svg
-
-
- bbp_option_button_group
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 80
- 80
-
-
-
-
- 80
- 80
-
-
-
- ^
-
-
- true
-
-
- :/arrow_icons/media/btn_icons/down_arrow.svg
-
-
- icon
-
-
- bbp_option_button_group
-
-
-
-
-
-
-
- -
-
-
- 9
-
-
- 9
-
-
- 9
-
-
- 9
-
-
-
-
-
-
- 60
- 60
-
-
-
-
- 100
- 80
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
-
-
- 14
-
-
-
- 0.01
-
-
- true
-
-
- true
-
-
-
-
-
-
-
-
- bbp_offset_value_selector_group
-
-
-
- -
-
-
- Qt::Vertical
-
-
-
- -
-
-
-
- 60
- 60
-
-
-
-
- 100
- 80
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
-
-
- 14
-
-
-
- 0.025
-
-
- true
-
-
- true
-
-
-
-
-
-
-
-
- bbp_offset_value_selector_group
-
-
-
- -
-
-
- Qt::Vertical
-
-
-
- -
-
-
-
- 60
- 60
-
-
-
-
- 100
- 80
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
-
-
- 14
-
-
-
- 0.05
-
-
- true
-
-
- true
-
-
-
-
-
-
-
-
- bbp_offset_value_selector_group
-
-
-
- -
-
-
- Qt::Vertical
-
-
-
- -
-
-
-
- 60
- 60
-
-
-
-
- 100
- 80
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
-
-
- 14
-
-
-
- 0.1
-
-
- true
-
-
- true
-
-
- true
-
-
-
-
-
-
-
-
- bbp_offset_value_selector_group
-
-
-
-
-
-
-
-
-
-
- BlocksCustomButton
- QPushButton
-
-
-
- IconButton
- QPushButton
-
-
-
- DisplayButton
- QPushButton
-
-
-
- BlocksLabel
- QLabel
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/BlocksScreen/lib/ui/printStackedWidget_ui.py b/BlocksScreen/lib/ui/printStackedWidget_ui.py
deleted file mode 100644
index 6bb24069..00000000
--- a/BlocksScreen/lib/ui/printStackedWidget_ui.py
+++ /dev/null
@@ -1,1074 +0,0 @@
-# Form implementation generated from reading ui file '/home/levi/main/Blocks_Screen/BlocksScreen/lib/ui/printStackedWidget.ui'
-#
-# Created by: PyQt6 UI code generator 6.7.1
-#
-# WARNING: Any manual changes made to this file will be lost when pyuic6 is
-# run again. Do not edit this file unless you know what you are doing.
-
-
-from PyQt6 import QtCore, QtGui, QtWidgets
-
-
-class Ui_printStackedWidget(object):
- def setupUi(self, printStackedWidget):
- printStackedWidget.setObjectName("printStackedWidget")
- printStackedWidget.setWindowModality(QtCore.Qt.WindowModality.WindowModal)
- printStackedWidget.resize(710, 411)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(printStackedWidget.sizePolicy().hasHeightForWidth())
- printStackedWidget.setSizePolicy(sizePolicy)
- printStackedWidget.setMinimumSize(QtCore.QSize(710, 410))
- printStackedWidget.setMaximumSize(QtCore.QSize(720, 420))
- printStackedWidget.setProperty("backgroundPixmap", QtGui.QPixmap(":/background/media/graphics/scroll_list_window.svg"))
- self.print_page = QtWidgets.QWidget()
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.print_page.sizePolicy().hasHeightForWidth())
- self.print_page.setSizePolicy(sizePolicy)
- self.print_page.setMinimumSize(QtCore.QSize(710, 400))
- self.print_page.setMaximumSize(QtCore.QSize(720, 420))
- self.print_page.setObjectName("print_page")
- self.main_print_btn = BlocksCustomButton(parent=self.print_page)
- self.main_print_btn.setGeometry(QtCore.QRect(230, 120, 250, 80))
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.main_print_btn.sizePolicy().hasHeightForWidth())
- self.main_print_btn.setSizePolicy(sizePolicy)
- self.main_print_btn.setMinimumSize(QtCore.QSize(250, 80))
- self.main_print_btn.setMaximumSize(QtCore.QSize(250, 80))
- font = QtGui.QFont()
- font.setFamily("MS Shell Dlg 2")
- font.setPointSize(18)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.main_print_btn.setFont(font)
- self.main_print_btn.setMouseTracking(False)
- self.main_print_btn.setTabletTracking(True)
- self.main_print_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.main_print_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.main_print_btn.setStyleSheet("")
- self.main_print_btn.setAutoDefault(False)
- self.main_print_btn.setFlat(True)
- self.main_print_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/print.svg"))
- self.main_print_btn.setObjectName("main_print_btn")
- self.main_text_label = QtWidgets.QLabel(parent=self.print_page)
- self.main_text_label.setEnabled(True)
- self.main_text_label.setGeometry(QtCore.QRect(105, 180, 500, 200))
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.main_text_label.sizePolicy().hasHeightForWidth())
- self.main_text_label.setSizePolicy(sizePolicy)
- self.main_text_label.setMinimumSize(QtCore.QSize(0, 200))
- self.main_text_label.setMaximumSize(QtCore.QSize(500, 200))
- font = QtGui.QFont()
- font.setFamily("Montserrat")
- font.setPointSize(19)
- self.main_text_label.setFont(font)
- self.main_text_label.setStyleSheet("background: transparent; color: white;")
- self.main_text_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.main_text_label.setTextInteractionFlags(QtCore.Qt.TextInteractionFlag.NoTextInteraction)
- self.main_text_label.setObjectName("main_text_label")
- printStackedWidget.addWidget(self.print_page)
- self.files_page = QtWidgets.QWidget()
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.files_page.sizePolicy().hasHeightForWidth())
- self.files_page.setSizePolicy(sizePolicy)
- self.files_page.setMinimumSize(QtCore.QSize(710, 400))
- self.files_page.setMaximumSize(QtCore.QSize(720, 420))
- font = QtGui.QFont()
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.files_page.setFont(font)
- self.files_page.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.files_page.setAutoFillBackground(False)
- self.files_page.setStyleSheet("#file_page{\n"
-" background-color: transparent;\n"
-"}")
- self.files_page.setObjectName("files_page")
- self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.files_page)
- self.verticalLayout_5.setObjectName("verticalLayout_5")
- self.fp_header_layout = QtWidgets.QHBoxLayout()
- self.fp_header_layout.setObjectName("fp_header_layout")
- self.back_btn = IconButton(parent=self.files_page)
- self.back_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.back_btn.setMaximumSize(QtCore.QSize(60, 60))
- self.back_btn.setFlat(True)
- self.back_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/back.svg"))
- self.back_btn.setObjectName("back_btn")
- self.fp_header_layout.addWidget(self.back_btn, 0, QtCore.Qt.AlignmentFlag.AlignLeft)
- self.ReloadButton = IconButton(parent=self.files_page)
- self.ReloadButton.setMinimumSize(QtCore.QSize(60, 60))
- self.ReloadButton.setMaximumSize(QtCore.QSize(60, 60))
- self.ReloadButton.setFlat(True)
- self.ReloadButton.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/refresh.svg"))
- self.ReloadButton.setObjectName("ReloadButton")
- self.fp_header_layout.addWidget(self.ReloadButton, 0, QtCore.Qt.AlignmentFlag.AlignRight)
- self.verticalLayout_5.addLayout(self.fp_header_layout)
- self.line = QtWidgets.QFrame(parent=self.files_page)
- self.line.setMinimumSize(QtCore.QSize(0, 0))
- self.line.setFrameShape(QtWidgets.QFrame.Shape.HLine)
- self.line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
- self.line.setObjectName("line")
- self.verticalLayout_5.addWidget(self.line)
- self.fp_content_layout = QtWidgets.QVBoxLayout()
- self.fp_content_layout.setContentsMargins(5, 5, 5, 5)
- self.fp_content_layout.setObjectName("fp_content_layout")
- self.listWidget = QtWidgets.QListWidget(parent=self.files_page)
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.NoBrush)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Base, brush)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Window, brush)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.NoBrush)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Base, brush)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Window, brush)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Button, brush)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.NoBrush)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Base, brush)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Window, brush)
- self.listWidget.setPalette(palette)
- self.listWidget.setStyleSheet("QListWidget{background-color: transparent;}\n"
-"\n"
-"QLabel{\n"
-"color: #ffffff;\n"
-"}")
- self.listWidget.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers)
- self.listWidget.setProperty("showDropIndicator", False)
- self.listWidget.setDefaultDropAction(QtCore.Qt.DropAction.IgnoreAction)
- self.listWidget.setUniformItemSizes(True)
- self.listWidget.setObjectName("listWidget")
- self.fp_content_layout.addWidget(self.listWidget)
- self.verticalLayout_5.addLayout(self.fp_content_layout)
- printStackedWidget.addWidget(self.files_page)
- self.confirm_page = QtWidgets.QWidget()
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.confirm_page.sizePolicy().hasHeightForWidth())
- self.confirm_page.setSizePolicy(sizePolicy)
- self.confirm_page.setMinimumSize(QtCore.QSize(710, 400))
- self.confirm_page.setMaximumSize(QtCore.QSize(720, 420))
- self.confirm_page.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.confirm_page.setObjectName("confirm_page")
- self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.confirm_page)
- self.verticalLayout_4.setObjectName("verticalLayout_4")
- self.cf_header_title = QtWidgets.QHBoxLayout()
- self.cf_header_title.setObjectName("cf_header_title")
- self.confirm_title_label = QtWidgets.QLabel(parent=self.confirm_page)
- self.confirm_title_label.setMinimumSize(QtCore.QSize(0, 60))
- self.confirm_title_label.setMaximumSize(QtCore.QSize(16777215, 60))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(24)
- self.confirm_title_label.setFont(font)
- self.confirm_title_label.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.confirm_title_label.setStyleSheet("background: transparent; color: white;")
- self.confirm_title_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.confirm_title_label.setObjectName("confirm_title_label")
- self.cf_header_title.addWidget(self.confirm_title_label)
- self.verticalLayout_4.addLayout(self.cf_header_title)
- self.cf_content_vertical_layout = QtWidgets.QHBoxLayout()
- self.cf_content_vertical_layout.setObjectName("cf_content_vertical_layout")
- self.cf_content_horizontal_layout = QtWidgets.QVBoxLayout()
- self.cf_content_horizontal_layout.setObjectName("cf_content_horizontal_layout")
- self.cf_info = QtWidgets.QLabel(parent=self.confirm_page)
- self.cf_info.setEnabled(True)
- self.cf_info.setMinimumSize(QtCore.QSize(230, 60))
- self.cf_info.setMaximumSize(QtCore.QSize(250, 60))
- font = QtGui.QFont()
- font.setFamily("Montserrat")
- font.setPointSize(14)
- self.cf_info.setFont(font)
- self.cf_info.setStyleSheet("background: transparent; color: white;")
- self.cf_info.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.cf_info.setWordWrap(True)
- self.cf_info.setObjectName("cf_info")
- self.cf_content_horizontal_layout.addWidget(self.cf_info, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.cf_file_name = BlocksLabel(parent=self.confirm_page)
- self.cf_file_name.setEnabled(True)
- self.cf_file_name.setMinimumSize(QtCore.QSize(250, 80))
- self.cf_file_name.setMaximumSize(QtCore.QSize(250, 80))
- font = QtGui.QFont()
- font.setFamily("Montserrat")
- font.setPointSize(14)
- self.cf_file_name.setFont(font)
- self.cf_file_name.setStyleSheet("background: transparent; color: white;")
- self.cf_file_name.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.cf_file_name.setWordWrap(True)
- self.cf_file_name.setObjectName("cf_file_name")
- self.cf_content_horizontal_layout.addWidget(self.cf_file_name, 0, QtCore.Qt.AlignmentFlag.AlignHCenter)
- self.cf_confirm_layout = QtWidgets.QVBoxLayout()
- self.cf_confirm_layout.setSizeConstraint(QtWidgets.QLayout.SizeConstraint.SetFixedSize)
- self.cf_confirm_layout.setContentsMargins(0, 0, 0, 0)
- self.cf_confirm_layout.setSpacing(2)
- self.cf_confirm_layout.setObjectName("cf_confirm_layout")
- self.confirm_yes_text_label = BlocksCustomButton(parent=self.confirm_page)
- self.confirm_yes_text_label.setMinimumSize(QtCore.QSize(200, 100))
- self.confirm_yes_text_label.setMaximumSize(QtCore.QSize(200, 100))
- font = QtGui.QFont()
- font.setFamily("MS Shell Dlg 2")
- font.setPointSize(18)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.confirm_yes_text_label.setFont(font)
- self.confirm_yes_text_label.setMouseTracking(False)
- self.confirm_yes_text_label.setTabletTracking(True)
- self.confirm_yes_text_label.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.confirm_yes_text_label.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.confirm_yes_text_label.setStyleSheet("")
- self.confirm_yes_text_label.setAutoDefault(False)
- self.confirm_yes_text_label.setFlat(True)
- self.confirm_yes_text_label.setProperty("icon_pixmap", QtGui.QPixmap(":/dialog/media/btn_icons/yes.svg"))
- self.confirm_yes_text_label.setObjectName("confirm_yes_text_label")
- self.cf_confirm_layout.addWidget(self.confirm_yes_text_label, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.confirm_no_text_label = BlocksCustomButton(parent=self.confirm_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.confirm_no_text_label.sizePolicy().hasHeightForWidth())
- self.confirm_no_text_label.setSizePolicy(sizePolicy)
- self.confirm_no_text_label.setMinimumSize(QtCore.QSize(200, 100))
- self.confirm_no_text_label.setMaximumSize(QtCore.QSize(200, 100))
- font = QtGui.QFont()
- font.setFamily("MS Shell Dlg 2")
- font.setPointSize(18)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.confirm_no_text_label.setFont(font)
- self.confirm_no_text_label.setMouseTracking(False)
- self.confirm_no_text_label.setTabletTracking(True)
- self.confirm_no_text_label.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.confirm_no_text_label.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.confirm_no_text_label.setStyleSheet("")
- self.confirm_no_text_label.setAutoDefault(False)
- self.confirm_no_text_label.setFlat(True)
- self.confirm_no_text_label.setProperty("icon_pixmap", QtGui.QPixmap(":/dialog/media/btn_icons/no.svg"))
- self.confirm_no_text_label.setObjectName("confirm_no_text_label")
- self.cf_confirm_layout.addWidget(self.confirm_no_text_label, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.cf_content_horizontal_layout.addLayout(self.cf_confirm_layout)
- self.cf_content_vertical_layout.addLayout(self.cf_content_horizontal_layout)
- self.cf_thumbnail = QtWidgets.QGraphicsView(parent=self.confirm_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.cf_thumbnail.sizePolicy().hasHeightForWidth())
- self.cf_thumbnail.setSizePolicy(sizePolicy)
- self.cf_thumbnail.setMinimumSize(QtCore.QSize(400, 300))
- self.cf_thumbnail.setMaximumSize(QtCore.QSize(400, 300))
- self.cf_thumbnail.setStyleSheet("QGraphicsView{\n"
-"background-color: transparent;\n"
-"}")
- self.cf_thumbnail.setFrameShape(QtWidgets.QFrame.Shape.NoFrame)
- self.cf_thumbnail.setFrameShadow(QtWidgets.QFrame.Shadow.Plain)
- self.cf_thumbnail.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff)
- self.cf_thumbnail.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff)
- self.cf_thumbnail.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.SizeAdjustPolicy.AdjustIgnored)
- brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 0))
- brush.setStyle(QtCore.Qt.BrushStyle.NoBrush)
- self.cf_thumbnail.setBackgroundBrush(brush)
- self.cf_thumbnail.setRenderHints(QtGui.QPainter.RenderHint.Antialiasing|QtGui.QPainter.RenderHint.SmoothPixmapTransform|QtGui.QPainter.RenderHint.TextAntialiasing)
- self.cf_thumbnail.setViewportUpdateMode(QtWidgets.QGraphicsView.ViewportUpdateMode.SmartViewportUpdate)
- self.cf_thumbnail.setObjectName("cf_thumbnail")
- self.cf_content_vertical_layout.addWidget(self.cf_thumbnail, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.verticalLayout_4.addLayout(self.cf_content_vertical_layout)
- printStackedWidget.addWidget(self.confirm_page)
- self.job_status_page = QtWidgets.QWidget()
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.job_status_page.sizePolicy().hasHeightForWidth())
- self.job_status_page.setSizePolicy(sizePolicy)
- self.job_status_page.setMinimumSize(QtCore.QSize(710, 400))
- self.job_status_page.setMaximumSize(QtCore.QSize(720, 420))
- self.job_status_page.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.job_status_page.setObjectName("job_status_page")
- self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.job_status_page)
- self.verticalLayout_3.setObjectName("verticalLayout_3")
- self.job_status_header_layout = QtWidgets.QHBoxLayout()
- self.job_status_header_layout.setContentsMargins(1, 1, 1, 1)
- self.job_status_header_layout.setSpacing(20)
- self.job_status_header_layout.setObjectName("job_status_header_layout")
- self.js_file_name_icon = BlocksLabel(parent=self.job_status_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.js_file_name_icon.sizePolicy().hasHeightForWidth())
- self.js_file_name_icon.setSizePolicy(sizePolicy)
- self.js_file_name_icon.setMinimumSize(QtCore.QSize(60, 60))
- self.js_file_name_icon.setMaximumSize(QtCore.QSize(60, 60))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(14)
- self.js_file_name_icon.setFont(font)
- self.js_file_name_icon.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.js_file_name_icon.setStyleSheet("background: transparent; color: white;")
- self.js_file_name_icon.setText("")
- self.js_file_name_icon.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.js_file_name_icon.setProperty("icon_pixmap", QtGui.QPixmap(":/files/media/btn_icons/file_icon.svg"))
- self.js_file_name_icon.setObjectName("js_file_name_icon")
- self.job_status_header_layout.addWidget(self.js_file_name_icon)
- self.js_file_name_label = BlocksLabel(parent=self.job_status_page)
- self.js_file_name_label.setEnabled(True)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.js_file_name_label.sizePolicy().hasHeightForWidth())
- self.js_file_name_label.setSizePolicy(sizePolicy)
- self.js_file_name_label.setMinimumSize(QtCore.QSize(200, 60))
- self.js_file_name_label.setMaximumSize(QtCore.QSize(16777215, 60))
- font = QtGui.QFont()
- font.setFamily("Montserrat")
- font.setPointSize(14)
- self.js_file_name_label.setFont(font)
- self.js_file_name_label.setStyleSheet("background: transparent; color: white;")
- self.js_file_name_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.js_file_name_label.setObjectName("js_file_name_label")
- self.job_status_header_layout.addWidget(self.js_file_name_label)
- self.verticalLayout_3.addLayout(self.job_status_header_layout)
- self.job_status_content_layout = QtWidgets.QVBoxLayout()
- self.job_status_content_layout.setSizeConstraint(QtWidgets.QLayout.SizeConstraint.SetMinimumSize)
- self.job_status_content_layout.setContentsMargins(5, 5, 5, 5)
- self.job_status_content_layout.setSpacing(5)
- self.job_status_content_layout.setObjectName("job_status_content_layout")
- self.job_status_control_buttons_layout = QtWidgets.QFrame(parent=self.job_status_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.job_status_control_buttons_layout.sizePolicy().hasHeightForWidth())
- self.job_status_control_buttons_layout.setSizePolicy(sizePolicy)
- self.job_status_control_buttons_layout.setMinimumSize(QtCore.QSize(680, 100))
- self.job_status_control_buttons_layout.setFrameShape(QtWidgets.QFrame.Shape.NoFrame)
- self.job_status_control_buttons_layout.setFrameShadow(QtWidgets.QFrame.Shadow.Plain)
- self.job_status_control_buttons_layout.setLineWidth(0)
- self.job_status_control_buttons_layout.setObjectName("job_status_control_buttons_layout")
- self.horizontalLayout = QtWidgets.QHBoxLayout(self.job_status_control_buttons_layout)
- self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
- self.horizontalLayout.setSpacing(5)
- self.horizontalLayout.setObjectName("horizontalLayout")
- self.pause_printing_btn = BlocksCustomButton(parent=self.job_status_control_buttons_layout)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.pause_printing_btn.sizePolicy().hasHeightForWidth())
- self.pause_printing_btn.setSizePolicy(sizePolicy)
- self.pause_printing_btn.setMinimumSize(QtCore.QSize(200, 70))
- self.pause_printing_btn.setMaximumSize(QtCore.QSize(16777215, 70))
- font = QtGui.QFont()
- font.setFamily("MS Shell Dlg 2")
- font.setPointSize(18)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.pause_printing_btn.setFont(font)
- self.pause_printing_btn.setMouseTracking(False)
- self.pause_printing_btn.setTabletTracking(True)
- self.pause_printing_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.pause_printing_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.pause_printing_btn.setStyleSheet("")
- self.pause_printing_btn.setAutoDefault(False)
- self.pause_printing_btn.setFlat(True)
- self.pause_printing_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/pause.svg"))
- self.pause_printing_btn.setObjectName("pause_printing_btn")
- self.horizontalLayout.addWidget(self.pause_printing_btn)
- self.stop_printing_btn = BlocksCustomButton(parent=self.job_status_control_buttons_layout)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.stop_printing_btn.sizePolicy().hasHeightForWidth())
- self.stop_printing_btn.setSizePolicy(sizePolicy)
- self.stop_printing_btn.setMinimumSize(QtCore.QSize(200, 70))
- self.stop_printing_btn.setMaximumSize(QtCore.QSize(16777215, 70))
- font = QtGui.QFont()
- font.setFamily("MS Shell Dlg 2")
- font.setPointSize(18)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.stop_printing_btn.setFont(font)
- self.stop_printing_btn.setMouseTracking(False)
- self.stop_printing_btn.setTabletTracking(True)
- self.stop_printing_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.stop_printing_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.stop_printing_btn.setStyleSheet("")
- self.stop_printing_btn.setAutoDefault(False)
- self.stop_printing_btn.setFlat(True)
- self.stop_printing_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/stop.svg"))
- self.stop_printing_btn.setObjectName("stop_printing_btn")
- self.horizontalLayout.addWidget(self.stop_printing_btn)
- self.tune_menu_btn = BlocksCustomButton(parent=self.job_status_control_buttons_layout)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.tune_menu_btn.sizePolicy().hasHeightForWidth())
- self.tune_menu_btn.setSizePolicy(sizePolicy)
- self.tune_menu_btn.setMinimumSize(QtCore.QSize(200, 70))
- self.tune_menu_btn.setMaximumSize(QtCore.QSize(16777215, 70))
- font = QtGui.QFont()
- font.setFamily("MS Shell Dlg 2")
- font.setPointSize(18)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.tune_menu_btn.setFont(font)
- self.tune_menu_btn.setMouseTracking(False)
- self.tune_menu_btn.setTabletTracking(True)
- self.tune_menu_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.tune_menu_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.tune_menu_btn.setStyleSheet("")
- self.tune_menu_btn.setAutoDefault(False)
- self.tune_menu_btn.setFlat(True)
- self.tune_menu_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/tune.svg"))
- self.tune_menu_btn.setObjectName("tune_menu_btn")
- self.horizontalLayout.addWidget(self.tune_menu_btn)
- self.horizontalLayout.setStretch(0, 1)
- self.horizontalLayout.setStretch(1, 1)
- self.horizontalLayout.setStretch(2, 1)
- self.job_status_content_layout.addWidget(self.job_status_control_buttons_layout, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.job_status_progress_layout = QtWidgets.QGridLayout()
- self.job_status_progress_layout.setObjectName("job_status_progress_layout")
- self.progress_text_label = QtWidgets.QLabel(parent=self.job_status_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.progress_text_label.sizePolicy().hasHeightForWidth())
- self.progress_text_label.setSizePolicy(sizePolicy)
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(16)
- self.progress_text_label.setFont(font)
- self.progress_text_label.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.progress_text_label.setStyleSheet("background: transparent; color: white;")
- self.progress_text_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.progress_text_label.setObjectName("progress_text_label")
- self.job_status_progress_layout.addWidget(self.progress_text_label, 0, 0, 1, 1, QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.progress_value_label = QtWidgets.QLabel(parent=self.job_status_page)
- self.progress_value_label.setEnabled(True)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.progress_value_label.sizePolicy().hasHeightForWidth())
- self.progress_value_label.setSizePolicy(sizePolicy)
- font = QtGui.QFont()
- font.setFamily("Montserrat")
- font.setPointSize(14)
- self.progress_value_label.setFont(font)
- self.progress_value_label.setStyleSheet("background: transparent; color: white;")
- self.progress_value_label.setObjectName("progress_value_label")
- self.job_status_progress_layout.addWidget(self.progress_value_label, 0, 1, 1, 1)
- self.printing_progress_bar = QtWidgets.QProgressBar(parent=self.job_status_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.printing_progress_bar.sizePolicy().hasHeightForWidth())
- self.printing_progress_bar.setSizePolicy(sizePolicy)
- self.printing_progress_bar.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.printing_progress_bar.setProperty("value", 24)
- self.printing_progress_bar.setObjectName("printing_progress_bar")
- self.job_status_progress_layout.addWidget(self.printing_progress_bar, 0, 2, 1, 1, QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.job_status_content_layout.addLayout(self.job_status_progress_layout)
- self.job_stats_display_layout = QtWidgets.QHBoxLayout()
- self.job_stats_display_layout.setObjectName("job_stats_display_layout")
- self.layer_display_button = DisplayButton(parent=self.job_status_page)
- self.layer_display_button.setEnabled(False)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.layer_display_button.sizePolicy().hasHeightForWidth())
- self.layer_display_button.setSizePolicy(sizePolicy)
- self.layer_display_button.setMinimumSize(QtCore.QSize(150, 40))
- self.layer_display_button.setMaximumSize(QtCore.QSize(150, 40))
- self.layer_display_button.setText("")
- self.layer_display_button.setCheckable(False)
- self.layer_display_button.setFlat(True)
- self.layer_display_button.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/layers.svg"))
- self.layer_display_button.setObjectName("layer_display_button")
- self.job_stats_display_layout.addWidget(self.layer_display_button, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.print_time_display_button = DisplayButton(parent=self.job_status_page)
- self.print_time_display_button.setEnabled(False)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.print_time_display_button.sizePolicy().hasHeightForWidth())
- self.print_time_display_button.setSizePolicy(sizePolicy)
- self.print_time_display_button.setMinimumSize(QtCore.QSize(150, 40))
- self.print_time_display_button.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.SplitHCursor))
- self.print_time_display_button.setText("")
- self.print_time_display_button.setCheckable(False)
- self.print_time_display_button.setFlat(True)
- self.print_time_display_button.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/time.svg"))
- self.print_time_display_button.setObjectName("print_time_display_button")
- self.job_stats_display_layout.addWidget(self.print_time_display_button, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.job_status_content_layout.addLayout(self.job_stats_display_layout)
- self.job_status_content_layout.setStretch(0, 1)
- self.job_status_content_layout.setStretch(1, 1)
- self.job_status_content_layout.setStretch(2, 1)
- self.verticalLayout_3.addLayout(self.job_status_content_layout)
- printStackedWidget.addWidget(self.job_status_page)
- self.tune_page = QtWidgets.QWidget()
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.tune_page.sizePolicy().hasHeightForWidth())
- self.tune_page.setSizePolicy(sizePolicy)
- self.tune_page.setMinimumSize(QtCore.QSize(710, 400))
- self.tune_page.setMaximumSize(QtCore.QSize(720, 420))
- self.tune_page.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.tune_page.setStyleSheet("#BlocksPushButton{\n"
-" font-color: rgb(255,255,255,255);\n"
-"}")
- self.tune_page.setObjectName("tune_page")
- self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.tune_page)
- self.verticalLayout_2.setObjectName("verticalLayout_2")
- self.tune_header = QtWidgets.QHBoxLayout()
- self.tune_header.setSpacing(20)
- self.tune_header.setObjectName("tune_header")
- self.tune_title_label = QtWidgets.QLabel(parent=self.tune_page)
- self.tune_title_label.setMinimumSize(QtCore.QSize(0, 60))
- self.tune_title_label.setMaximumSize(QtCore.QSize(16777215, 60))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(24)
- self.tune_title_label.setFont(font)
- self.tune_title_label.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.tune_title_label.setStyleSheet("background: transparent; color: white;")
- self.tune_title_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.tune_title_label.setObjectName("tune_title_label")
- self.tune_header.addWidget(self.tune_title_label, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.tune_back_btn = IconButton(parent=self.tune_page)
- self.tune_back_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.tune_back_btn.setMaximumSize(QtCore.QSize(60, 60))
- self.tune_back_btn.setText("")
- self.tune_back_btn.setIconSize(QtCore.QSize(32, 32))
- self.tune_back_btn.setFlat(True)
- self.tune_back_btn.setProperty("class", "")
- self.tune_back_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/back.svg"))
- self.tune_back_btn.setObjectName("tune_back_btn")
- self.tune_header.addWidget(self.tune_back_btn, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.tune_header.setStretch(0, 1)
- self.verticalLayout_2.addLayout(self.tune_header)
- self.tune_menu_buttons = QtWidgets.QHBoxLayout()
- self.tune_menu_buttons.setObjectName("tune_menu_buttons")
- self.tune_babystep_menu_btn = BlocksCustomButton(parent=self.tune_page)
- self.tune_babystep_menu_btn.setMinimumSize(QtCore.QSize(200, 70))
- self.tune_babystep_menu_btn.setMaximumSize(QtCore.QSize(200, 70))
- font = QtGui.QFont()
- font.setFamily("MS Shell Dlg 2")
- font.setPointSize(18)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.tune_babystep_menu_btn.setFont(font)
- self.tune_babystep_menu_btn.setMouseTracking(False)
- self.tune_babystep_menu_btn.setTabletTracking(True)
- self.tune_babystep_menu_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.tune_babystep_menu_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.tune_babystep_menu_btn.setStyleSheet("")
- self.tune_babystep_menu_btn.setAutoDefault(False)
- self.tune_babystep_menu_btn.setFlat(True)
- self.tune_babystep_menu_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/z_levelling/media/btn_icons/baby_step_icon.svg"))
- self.tune_babystep_menu_btn.setObjectName("tune_babystep_menu_btn")
- self.tune_menu_buttons.addWidget(self.tune_babystep_menu_btn, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.tune_change_filament_btn = BlocksCustomButton(parent=self.tune_page)
- self.tune_change_filament_btn.setMinimumSize(QtCore.QSize(200, 70))
- self.tune_change_filament_btn.setMaximumSize(QtCore.QSize(200, 70))
- font = QtGui.QFont()
- font.setFamily("MS Shell Dlg 2")
- font.setPointSize(18)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.tune_change_filament_btn.setFont(font)
- self.tune_change_filament_btn.setMouseTracking(False)
- self.tune_change_filament_btn.setTabletTracking(True)
- self.tune_change_filament_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.tune_change_filament_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.tune_change_filament_btn.setStyleSheet("")
- self.tune_change_filament_btn.setAutoDefault(False)
- self.tune_change_filament_btn.setFlat(True)
- self.tune_change_filament_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/filament_related/media/btn_icons/change_filament.svg"))
- self.tune_change_filament_btn.setObjectName("tune_change_filament_btn")
- self.tune_menu_buttons.addWidget(self.tune_change_filament_btn, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.sensors_menu_btn = IconButton(parent=self.tune_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.sensors_menu_btn.sizePolicy().hasHeightForWidth())
- self.sensors_menu_btn.setSizePolicy(sizePolicy)
- self.sensors_menu_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.sensors_menu_btn.setMaximumSize(QtCore.QSize(60, 60))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(20)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.sensors_menu_btn.setFont(font)
- self.sensors_menu_btn.setMouseTracking(False)
- self.sensors_menu_btn.setTabletTracking(True)
- self.sensors_menu_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.sensors_menu_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.sensors_menu_btn.setStyleSheet("")
- self.sensors_menu_btn.setText("")
- self.sensors_menu_btn.setAutoDefault(False)
- self.sensors_menu_btn.setFlat(True)
- self.sensors_menu_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/filament_related/media/btn_icons/filament_sensor.svg"))
- self.sensors_menu_btn.setObjectName("sensors_menu_btn")
- self.tune_menu_buttons.addWidget(self.sensors_menu_btn)
- self.tune_menu_buttons.setStretch(0, 1)
- self.tune_menu_buttons.setStretch(1, 1)
- self.verticalLayout_2.addLayout(self.tune_menu_buttons)
- self.tune_display_buttons_layout = QtWidgets.QGridLayout()
- self.tune_display_buttons_layout.setSizeConstraint(QtWidgets.QLayout.SizeConstraint.SetDefaultConstraint)
- self.tune_display_buttons_layout.setContentsMargins(2, 2, 2, 2)
- self.tune_display_buttons_layout.setSpacing(1)
- self.tune_display_buttons_layout.setObjectName("tune_display_buttons_layout")
- self.bed_display = DisplayButton(parent=self.tune_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.bed_display.sizePolicy().hasHeightForWidth())
- self.bed_display.setSizePolicy(sizePolicy)
- self.bed_display.setMinimumSize(QtCore.QSize(150, 60))
- self.bed_display.setMaximumSize(QtCore.QSize(150, 60))
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush)
- self.bed_display.setPalette(palette)
- self.bed_display.setText("")
- self.bed_display.setIconSize(QtCore.QSize(60, 60))
- self.bed_display.setFlat(True)
- self.bed_display.setProperty("icon_pixmap", QtGui.QPixmap(":/temperature_related/media/btn_icons/temperature_plate.svg"))
- self.bed_display.setObjectName("bed_display")
- self.tune_display_buttons_layout.addWidget(self.bed_display, 0, 1, 1, 1)
- self.extruder_display = DisplayButton(parent=self.tune_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.extruder_display.sizePolicy().hasHeightForWidth())
- self.extruder_display.setSizePolicy(sizePolicy)
- self.extruder_display.setMinimumSize(QtCore.QSize(150, 60))
- self.extruder_display.setMaximumSize(QtCore.QSize(150, 60))
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush)
- self.extruder_display.setPalette(palette)
- self.extruder_display.setText("")
- self.extruder_display.setFlat(True)
- self.extruder_display.setProperty("icon_pixmap", QtGui.QPixmap(":/temperature_related/media/btn_icons/temperature.svg"))
- self.extruder_display.setObjectName("extruder_display")
- self.tune_display_buttons_layout.addWidget(self.extruder_display, 0, 0, 1, 1)
- self.speed_display = DisplayButton(parent=self.tune_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.speed_display.sizePolicy().hasHeightForWidth())
- self.speed_display.setSizePolicy(sizePolicy)
- self.speed_display.setMinimumSize(QtCore.QSize(150, 60))
- self.speed_display.setMaximumSize(QtCore.QSize(150, 60))
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush)
- self.speed_display.setPalette(palette)
- font = QtGui.QFont()
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.speed_display.setFont(font)
- self.speed_display.setText("")
- self.speed_display.setFlat(True)
- self.speed_display.setProperty("icon_pixmap", QtGui.QPixmap(":/motion/media/btn_icons/speed.svg"))
- self.speed_display.setObjectName("speed_display")
- self.tune_display_buttons_layout.addWidget(self.speed_display, 0, 2, 1, 1)
- self.verticalLayout_2.addLayout(self.tune_display_buttons_layout)
- printStackedWidget.addWidget(self.tune_page)
- self.babystep_page = QtWidgets.QWidget()
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(1)
- sizePolicy.setVerticalStretch(1)
- sizePolicy.setHeightForWidth(self.babystep_page.sizePolicy().hasHeightForWidth())
- self.babystep_page.setSizePolicy(sizePolicy)
- self.babystep_page.setMinimumSize(QtCore.QSize(710, 400))
- self.babystep_page.setMaximumSize(QtCore.QSize(720, 420))
- self.babystep_page.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.babystep_page.setStyleSheet("")
- self.babystep_page.setObjectName("babystep_page")
- self.verticalLayout = QtWidgets.QVBoxLayout(self.babystep_page)
- self.verticalLayout.setObjectName("verticalLayout")
- self.bbp_header_layout = QtWidgets.QHBoxLayout()
- self.bbp_header_layout.setObjectName("bbp_header_layout")
- self.bbp_header_title = QtWidgets.QLabel(parent=self.babystep_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.bbp_header_title.sizePolicy().hasHeightForWidth())
- self.bbp_header_title.setSizePolicy(sizePolicy)
- self.bbp_header_title.setMinimumSize(QtCore.QSize(200, 60))
- self.bbp_header_title.setMaximumSize(QtCore.QSize(16777215, 16777215))
- font = QtGui.QFont()
- font.setPointSize(24)
- self.bbp_header_title.setFont(font)
- self.bbp_header_title.setStyleSheet("background: transparent; color: white;")
- self.bbp_header_title.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.bbp_header_title.setObjectName("bbp_header_title")
- self.bbp_header_layout.addWidget(self.bbp_header_title, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.babystep_back_btn = BlocksCustomButton(parent=self.babystep_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.babystep_back_btn.sizePolicy().hasHeightForWidth())
- self.babystep_back_btn.setSizePolicy(sizePolicy)
- self.babystep_back_btn.setMinimumSize(QtCore.QSize(60, 60))
- self.babystep_back_btn.setMaximumSize(QtCore.QSize(60, 60))
- self.babystep_back_btn.setText("")
- self.babystep_back_btn.setFlat(True)
- self.babystep_back_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/back.svg"))
- self.babystep_back_btn.setObjectName("babystep_back_btn")
- self.bbp_header_layout.addWidget(self.babystep_back_btn, 0, QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.bbp_header_layout.setStretch(0, 1)
- self.verticalLayout.addLayout(self.bbp_header_layout)
- self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
- self.horizontalLayout_2.setObjectName("horizontalLayout_2")
- self.frame_2 = QtWidgets.QFrame(parent=self.babystep_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.frame_2.sizePolicy().hasHeightForWidth())
- self.frame_2.setSizePolicy(sizePolicy)
- self.frame_2.setMinimumSize(QtCore.QSize(350, 160))
- self.frame_2.setMaximumSize(QtCore.QSize(350, 160))
- self.frame_2.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
- self.frame_2.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
- self.frame_2.setObjectName("frame_2")
- self.bbp_babystep_graphic = QtWidgets.QLabel(parent=self.frame_2)
- self.bbp_babystep_graphic.setGeometry(QtCore.QRect(0, 30, 371, 121))
- self.bbp_babystep_graphic.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
- self.bbp_babystep_graphic.setText("")
- self.bbp_babystep_graphic.setPixmap(QtGui.QPixmap(":/graphics/media/graphics/babystep_graphic.png"))
- self.bbp_babystep_graphic.setScaledContents(False)
- self.bbp_babystep_graphic.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.bbp_babystep_graphic.setObjectName("bbp_babystep_graphic")
- self.bbp_z_offset_current_value = BlocksLabel(parent=self.frame_2)
- self.bbp_z_offset_current_value.setGeometry(QtCore.QRect(130, 70, 200, 60))
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.bbp_z_offset_current_value.sizePolicy().hasHeightForWidth())
- self.bbp_z_offset_current_value.setSizePolicy(sizePolicy)
- self.bbp_z_offset_current_value.setMinimumSize(QtCore.QSize(150, 60))
- self.bbp_z_offset_current_value.setMaximumSize(QtCore.QSize(200, 60))
- font = QtGui.QFont()
- font.setPointSize(13)
- self.bbp_z_offset_current_value.setFont(font)
- self.bbp_z_offset_current_value.setStyleSheet("background: transparent; color: white;")
- self.bbp_z_offset_current_value.setText("")
- self.bbp_z_offset_current_value.setPixmap(QtGui.QPixmap(":/graphics/media/btn_icons/z_offset_adjust.svg"))
- self.bbp_z_offset_current_value.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.bbp_z_offset_current_value.setObjectName("bbp_z_offset_current_value")
- self.horizontalLayout_2.addWidget(self.frame_2, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.bbp_buttons_layout = QtWidgets.QVBoxLayout()
- self.bbp_buttons_layout.setContentsMargins(5, 5, 5, 5)
- self.bbp_buttons_layout.setObjectName("bbp_buttons_layout")
- self.bbp_away_from_bed = BlocksCustomButton(parent=self.babystep_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.bbp_away_from_bed.sizePolicy().hasHeightForWidth())
- self.bbp_away_from_bed.setSizePolicy(sizePolicy)
- self.bbp_away_from_bed.setMinimumSize(QtCore.QSize(80, 80))
- self.bbp_away_from_bed.setMaximumSize(QtCore.QSize(80, 80))
- self.bbp_away_from_bed.setFlat(True)
- self.bbp_away_from_bed.setProperty("icon_pixmap", QtGui.QPixmap(":/arrow_icons/media/btn_icons/up_arrow.svg"))
- self.bbp_away_from_bed.setObjectName("bbp_away_from_bed")
- self.bbp_option_button_group = QtWidgets.QButtonGroup(printStackedWidget)
- self.bbp_option_button_group.setObjectName("bbp_option_button_group")
- self.bbp_option_button_group.addButton(self.bbp_away_from_bed)
- self.bbp_buttons_layout.addWidget(self.bbp_away_from_bed, 0, QtCore.Qt.AlignmentFlag.AlignRight)
- self.bbp_close_to_bed = BlocksCustomButton(parent=self.babystep_page)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.bbp_close_to_bed.sizePolicy().hasHeightForWidth())
- self.bbp_close_to_bed.setSizePolicy(sizePolicy)
- self.bbp_close_to_bed.setMinimumSize(QtCore.QSize(80, 80))
- self.bbp_close_to_bed.setMaximumSize(QtCore.QSize(80, 80))
- self.bbp_close_to_bed.setFlat(True)
- self.bbp_close_to_bed.setProperty("icon_pixmap", QtGui.QPixmap(":/arrow_icons/media/btn_icons/down_arrow.svg"))
- self.bbp_close_to_bed.setObjectName("bbp_close_to_bed")
- self.bbp_option_button_group.addButton(self.bbp_close_to_bed)
- self.bbp_buttons_layout.addWidget(self.bbp_close_to_bed, 0, QtCore.Qt.AlignmentFlag.AlignRight)
- self.bbp_buttons_layout.setStretch(0, 1)
- self.bbp_buttons_layout.setStretch(1, 1)
- self.horizontalLayout_2.addLayout(self.bbp_buttons_layout)
- self.horizontalLayout_2.setStretch(0, 1)
- self.verticalLayout.addLayout(self.horizontalLayout_2)
- self.bbp_offset_steps_buttons = QtWidgets.QHBoxLayout()
- self.bbp_offset_steps_buttons.setContentsMargins(9, 9, 9, 9)
- self.bbp_offset_steps_buttons.setObjectName("bbp_offset_steps_buttons")
- self.bbp_nozzle_offset_01 = QtWidgets.QPushButton(parent=self.babystep_page)
- self.bbp_nozzle_offset_01.setMinimumSize(QtCore.QSize(60, 60))
- self.bbp_nozzle_offset_01.setMaximumSize(QtCore.QSize(100, 80))
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush)
- self.bbp_nozzle_offset_01.setPalette(palette)
- font = QtGui.QFont()
- font.setPointSize(14)
- self.bbp_nozzle_offset_01.setFont(font)
- self.bbp_nozzle_offset_01.setCheckable(True)
- self.bbp_nozzle_offset_01.setFlat(True)
- self.bbp_nozzle_offset_01.setProperty("button_type", "")
- self.bbp_nozzle_offset_01.setObjectName("bbp_nozzle_offset_01")
- self.bbp_offset_value_selector_group = QtWidgets.QButtonGroup(printStackedWidget)
- self.bbp_offset_value_selector_group.setObjectName("bbp_offset_value_selector_group")
- self.bbp_offset_value_selector_group.addButton(self.bbp_nozzle_offset_01)
- self.bbp_offset_steps_buttons.addWidget(self.bbp_nozzle_offset_01)
- self.line_3 = QtWidgets.QFrame(parent=self.babystep_page)
- self.line_3.setFrameShape(QtWidgets.QFrame.Shape.VLine)
- self.line_3.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
- self.line_3.setObjectName("line_3")
- self.bbp_offset_steps_buttons.addWidget(self.line_3)
- self.bbp_nozzle_offset_025 = QtWidgets.QPushButton(parent=self.babystep_page)
- self.bbp_nozzle_offset_025.setMinimumSize(QtCore.QSize(60, 60))
- self.bbp_nozzle_offset_025.setMaximumSize(QtCore.QSize(100, 80))
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush)
- self.bbp_nozzle_offset_025.setPalette(palette)
- font = QtGui.QFont()
- font.setPointSize(14)
- self.bbp_nozzle_offset_025.setFont(font)
- self.bbp_nozzle_offset_025.setCheckable(True)
- self.bbp_nozzle_offset_025.setFlat(True)
- self.bbp_nozzle_offset_025.setProperty("button_type", "")
- self.bbp_nozzle_offset_025.setObjectName("bbp_nozzle_offset_025")
- self.bbp_offset_value_selector_group.addButton(self.bbp_nozzle_offset_025)
- self.bbp_offset_steps_buttons.addWidget(self.bbp_nozzle_offset_025)
- self.line_4 = QtWidgets.QFrame(parent=self.babystep_page)
- self.line_4.setFrameShape(QtWidgets.QFrame.Shape.VLine)
- self.line_4.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
- self.line_4.setObjectName("line_4")
- self.bbp_offset_steps_buttons.addWidget(self.line_4)
- self.bbp_nozzle_offset_05 = QtWidgets.QPushButton(parent=self.babystep_page)
- self.bbp_nozzle_offset_05.setMinimumSize(QtCore.QSize(60, 60))
- self.bbp_nozzle_offset_05.setMaximumSize(QtCore.QSize(100, 80))
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush)
- self.bbp_nozzle_offset_05.setPalette(palette)
- font = QtGui.QFont()
- font.setPointSize(14)
- self.bbp_nozzle_offset_05.setFont(font)
- self.bbp_nozzle_offset_05.setCheckable(True)
- self.bbp_nozzle_offset_05.setFlat(True)
- self.bbp_nozzle_offset_05.setProperty("button_type", "")
- self.bbp_nozzle_offset_05.setObjectName("bbp_nozzle_offset_05")
- self.bbp_offset_value_selector_group.addButton(self.bbp_nozzle_offset_05)
- self.bbp_offset_steps_buttons.addWidget(self.bbp_nozzle_offset_05)
- self.line_5 = QtWidgets.QFrame(parent=self.babystep_page)
- self.line_5.setFrameShape(QtWidgets.QFrame.Shape.VLine)
- self.line_5.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
- self.line_5.setObjectName("line_5")
- self.bbp_offset_steps_buttons.addWidget(self.line_5)
- self.bbp_nozzle_offset_1 = QtWidgets.QPushButton(parent=self.babystep_page)
- self.bbp_nozzle_offset_1.setMinimumSize(QtCore.QSize(60, 60))
- self.bbp_nozzle_offset_1.setMaximumSize(QtCore.QSize(100, 80))
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush)
- self.bbp_nozzle_offset_1.setPalette(palette)
- font = QtGui.QFont()
- font.setPointSize(14)
- self.bbp_nozzle_offset_1.setFont(font)
- self.bbp_nozzle_offset_1.setCheckable(True)
- self.bbp_nozzle_offset_1.setChecked(True)
- self.bbp_nozzle_offset_1.setFlat(True)
- self.bbp_nozzle_offset_1.setProperty("button_type", "")
- self.bbp_nozzle_offset_1.setObjectName("bbp_nozzle_offset_1")
- self.bbp_offset_value_selector_group.addButton(self.bbp_nozzle_offset_1)
- self.bbp_offset_steps_buttons.addWidget(self.bbp_nozzle_offset_1)
- self.verticalLayout.addLayout(self.bbp_offset_steps_buttons)
- self.verticalLayout.setStretch(1, 1)
- printStackedWidget.addWidget(self.babystep_page)
-
- self.retranslateUi(printStackedWidget)
- printStackedWidget.setCurrentIndex(0)
- QtCore.QMetaObject.connectSlotsByName(printStackedWidget)
-
- def retranslateUi(self, printStackedWidget):
- _translate = QtCore.QCoreApplication.translate
- printStackedWidget.setWindowTitle(_translate("printStackedWidget", "StackedWidget"))
- self.main_print_btn.setText(_translate("printStackedWidget", "Print"))
- self.main_print_btn.setProperty("class", _translate("printStackedWidget", "menu_btn"))
- self.main_text_label.setText(_translate("printStackedWidget", "Printer ready"))
- self.back_btn.setText(_translate("printStackedWidget", "Back"))
- self.back_btn.setProperty("class", _translate("printStackedWidget", "back_btn"))
- self.back_btn.setProperty("button_type", _translate("printStackedWidget", "icon"))
- self.ReloadButton.setText(_translate("printStackedWidget", "Reload"))
- self.ReloadButton.setProperty("button_type", _translate("printStackedWidget", "icon"))
- self.confirm_title_label.setText(_translate("printStackedWidget", "CONFIRM"))
- self.confirm_title_label.setProperty("class", _translate("printStackedWidget", "title_text"))
- self.cf_info.setText(_translate("printStackedWidget", "Do you want to print this file?"))
- self.cf_file_name.setText(_translate("printStackedWidget", "Dinossauro Falico"))
- self.confirm_yes_text_label.setText(_translate("printStackedWidget", "Yes"))
- self.confirm_yes_text_label.setProperty("class", _translate("printStackedWidget", "menu_btn"))
- self.confirm_yes_text_label.setProperty("button_type", _translate("printStackedWidget", "normal"))
- self.confirm_no_text_label.setText(_translate("printStackedWidget", "No"))
- self.confirm_no_text_label.setProperty("class", _translate("printStackedWidget", "menu_btn"))
- self.confirm_no_text_label.setProperty("button_type", _translate("printStackedWidget", "normal"))
- self.js_file_name_icon.setProperty("class", _translate("printStackedWidget", "title_text"))
- self.js_file_name_label.setText(_translate("printStackedWidget", "Currently printing file"))
- self.pause_printing_btn.setText(_translate("printStackedWidget", "Pause"))
- self.pause_printing_btn.setProperty("class", _translate("printStackedWidget", "menu_btn"))
- self.pause_printing_btn.setProperty("button_type", _translate("printStackedWidget", "normal"))
- self.stop_printing_btn.setText(_translate("printStackedWidget", "Stop"))
- self.stop_printing_btn.setProperty("class", _translate("printStackedWidget", "menu_btn"))
- self.stop_printing_btn.setProperty("button_type", _translate("printStackedWidget", "normal"))
- self.tune_menu_btn.setText(_translate("printStackedWidget", "Tune"))
- self.tune_menu_btn.setProperty("class", _translate("printStackedWidget", "menu_btn"))
- self.tune_menu_btn.setProperty("button_type", _translate("printStackedWidget", "normal"))
- self.progress_text_label.setText(_translate("printStackedWidget", "Progress"))
- self.progress_text_label.setProperty("class", _translate("printStackedWidget", "title_text"))
- self.progress_value_label.setText(_translate("printStackedWidget", "0"))
- self.layer_display_button.setProperty("button_type", _translate("printStackedWidget", "display_secondary"))
- self.layer_display_button.setProperty("name", _translate("printStackedWidget", "layer_count_display_button"))
- self.print_time_display_button.setProperty("button_type", _translate("printStackedWidget", "display"))
- self.tune_title_label.setText(_translate("printStackedWidget", "TUNE"))
- self.tune_title_label.setProperty("class", _translate("printStackedWidget", "title_text"))
- self.tune_back_btn.setProperty("button_type", _translate("printStackedWidget", "icon"))
- self.tune_babystep_menu_btn.setText(_translate("printStackedWidget", "Babystep"))
- self.tune_babystep_menu_btn.setProperty("class", _translate("printStackedWidget", "menu_btn"))
- self.tune_babystep_menu_btn.setProperty("button_type", _translate("printStackedWidget", "normal"))
- self.tune_change_filament_btn.setText(_translate("printStackedWidget", "Filament\n"
-"Change"))
- self.tune_change_filament_btn.setProperty("class", _translate("printStackedWidget", "menu_btn"))
- self.tune_change_filament_btn.setProperty("button_type", _translate("printStackedWidget", "normal"))
- self.sensors_menu_btn.setProperty("class", _translate("printStackedWidget", "menu_btn"))
- self.sensors_menu_btn.setProperty("button_type", _translate("printStackedWidget", "icon"))
- self.bed_display.setProperty("name", _translate("printStackedWidget", "bed_temperature_display"))
- self.bed_display.setProperty("button_type", _translate("printStackedWidget", "display"))
- self.extruder_display.setProperty("name", _translate("printStackedWidget", "extruder_temperature_display"))
- self.extruder_display.setProperty("button_type", _translate("printStackedWidget", "display"))
- self.speed_display.setProperty("name", _translate("printStackedWidget", "print_speed_display"))
- self.speed_display.setProperty("button_type", _translate("printStackedWidget", "display"))
- self.bbp_header_title.setText(_translate("printStackedWidget", "Z Babystep"))
- self.babystep_back_btn.setProperty("button_type", _translate("printStackedWidget", "icon"))
- self.bbp_away_from_bed.setText(_translate("printStackedWidget", "~^"))
- self.bbp_away_from_bed.setProperty("button_type", _translate("printStackedWidget", "icon"))
- self.bbp_close_to_bed.setText(_translate("printStackedWidget", "^"))
- self.bbp_close_to_bed.setProperty("button_type", _translate("printStackedWidget", "icon"))
- self.bbp_nozzle_offset_01.setText(_translate("printStackedWidget", "0.01"))
- self.bbp_nozzle_offset_025.setText(_translate("printStackedWidget", "0.025"))
- self.bbp_nozzle_offset_05.setText(_translate("printStackedWidget", "0.05"))
- self.bbp_nozzle_offset_1.setText(_translate("printStackedWidget", "0.1"))
-from lib.utils.blocks_button import BlocksCustomButton
-from lib.utils.blocks_label import BlocksLabel
-from lib.utils.display_button import DisplayButton
-from lib.utils.icon_button import IconButton
diff --git a/BlocksScreen/lib/ui/probeHelperPage.ui b/BlocksScreen/lib/ui/probeHelperPage.ui
deleted file mode 100644
index fd5b80f5..00000000
--- a/BlocksScreen/lib/ui/probeHelperPage.ui
+++ /dev/null
@@ -1,811 +0,0 @@
-
-
- probe_offset_page
-
-
-
- 0
- 0
- 710
- 410
-
-
-
-
- 0
- 0
-
-
-
-
- 700
- 410
-
-
-
-
- 720
- 420
-
-
-
- Form
-
-
- -
-
-
-
-
-
-
- 200
- 60
-
-
-
-
- 16777215
- 60
-
-
-
-
- 24
-
-
-
- background: transparent; color: white;
-
-
- Z Probe Offset Calibrate
-
-
-
- -
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
- PushButton
-
-
- true
-
-
- icon
-
-
- :/button_borders/media/btn_icons/back.svg
-
-
-
-
-
- -
-
-
-
- 20
-
-
-
- Qt::Horizontal
-
-
-
- -
-
-
-
-
-
- 5
-
-
- 5
-
-
- 5
-
-
- 5
-
-
-
-
-
- 5
-
-
- 5
-
-
- 5
-
-
- 5
-
-
-
-
-
-
- 9
-
-
- 9
-
-
- 9
-
-
- 9
-
-
-
-
-
-
- 80
- 80
-
-
-
-
- 80
- 80
-
-
-
- bb
-
-
- true
-
-
- icon
-
-
- :/arrow_icons/media/btn_icons/up_arrow.svg
-
-
-
- -
-
-
-
- 80
- 80
-
-
-
-
- 80
- 80
-
-
-
- bb
-
-
- true
-
-
- icon
-
-
- :/arrow_icons/media/btn_icons/down_arrow.svg
-
-
-
-
-
-
- -
-
-
-
- 400
- 200
-
-
-
-
- 16777215
- 16777215
-
-
-
- QFrame::NoFrame
-
-
- QFrame::Plain
-
-
-
-
- 40
- 0
- 346
- 211
-
-
-
-
-
-
- :/graphics/media/graphics/babystep_graphic.png
-
-
-
-
-
- 150
- 10
- 212
- 154
-
-
-
-
- 2
-
-
- 6
-
-
- 6
-
-
- 6
-
-
- 6
-
-
-
-
-
-
- 200
- 70
-
-
-
-
- 200
- 70
-
-
-
-
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
- :/graphics/media/btn_icons/old_z_offset_icon.svg
-
-
- Qt::AlignCenter
-
-
-
- -
-
-
-
- 140
- 60
-
-
-
-
- 140
- 60
-
-
-
-
- 14
-
-
-
- background: transparent; color: white;
-
-
- TextLabel
-
-
-
-
-
-
- -
-
-
-
- 200
- 70
-
-
-
-
- 200
- 70
-
-
-
-
-
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
-
-
-
- :/graphics/media/btn_icons/new_z_offset_icon.svg
-
-
- true
-
-
- Qt::AlignCenter
-
-
-
- -
-
-
-
- 140
- 60
-
-
-
-
- 140
- 60
-
-
-
-
- 14
-
-
-
- background: transparent; color: white;
-
-
- TextLabel
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
- 9
-
-
- 9
-
-
- 9
-
-
- 9
-
-
-
-
-
-
- 80
- 80
-
-
-
-
- 80
- 80
-
-
-
- Accept
-
-
- true
-
-
- icon_text
-
-
- :/dialog/media/btn_icons/new_accept_hugo.svg
-
-
- bottom
-
-
-
- 255
- 255
- 255
-
-
-
-
- -
-
-
-
- 80
- 80
-
-
-
-
- 80
- 80
-
-
-
- Abort
-
-
- true
-
-
- icon_text
-
-
- :/dialog/media/btn_icons/new_abort_hugo.svg
-
-
- bottom
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
-
- -
-
-
-
- 350
- 90
-
-
-
-
- 16777215
- 100
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
- 255
- 255
- 255
-
-
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
- 120
- 120
- 120
-
-
-
-
-
-
-
-
- 14
-
-
-
- Move Distance (mm)
-
-
- true
-
-
-
- 9
-
-
- 4
-
-
- 9
-
-
-
-
-
-
- 60
- 60
-
-
-
-
- 16777215
- 60
-
-
-
-
- 20
-
-
-
- color: white;
-
-
- 0.01
-
-
- true
-
-
- true
-
-
-
- -
-
-
-
- 60
- 60
-
-
-
-
- 16777215
- 60
-
-
-
-
- 20
-
-
-
- color: white;
-
-
- 0.025
-
-
- true
-
-
- true
-
-
-
- -
-
-
-
- 60
- 60
-
-
-
-
- 16777215
- 60
-
-
-
-
- 20
-
-
-
- color: white;
-
-
- 0.05
-
-
- true
-
-
- true
-
-
-
- -
-
-
-
- 60
- 60
-
-
-
-
- 16777215
- 60
-
-
-
-
- 20
-
-
-
- color: white;
-
-
- 0.1
-
-
- true
-
-
- false
-
-
- true
-
-
-
- -
-
-
-
- 60
- 60
-
-
-
-
- 16777215
- 60
-
-
-
-
- 20
-
-
-
- color: white;
-
-
- 1
-
-
- true
-
-
- true
-
-
- true
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- BlocksCustomButton
- QPushButton
-
-
-
- BlocksLabel
- QLabel
-
-
-
-
-
-
-
-
-
-
diff --git a/BlocksScreen/lib/ui/probeHelperPage_ui.py b/BlocksScreen/lib/ui/probeHelperPage_ui.py
deleted file mode 100644
index 4bec451f..00000000
--- a/BlocksScreen/lib/ui/probeHelperPage_ui.py
+++ /dev/null
@@ -1,290 +0,0 @@
-# Form implementation generated from reading ui file '/home/bugo/github/Blocks_Screen/BlocksScreen/lib/ui/probeHelperPage.ui'
-#
-# Created by: PyQt6 UI code generator 6.4.2
-#
-# WARNING: Any manual changes made to this file will be lost when pyuic6 is
-# run again. Do not edit this file unless you know what you are doing.
-
-
-from PyQt6 import QtCore, QtGui, QtWidgets
-
-
-class Ui_probe_offset_page(object):
- def setupUi(self, probe_offset_page):
- probe_offset_page.setObjectName("probe_offset_page")
- probe_offset_page.resize(710, 410)
- sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(probe_offset_page.sizePolicy().hasHeightForWidth())
- probe_offset_page.setSizePolicy(sizePolicy)
- probe_offset_page.setMinimumSize(QtCore.QSize(700, 410))
- probe_offset_page.setMaximumSize(QtCore.QSize(720, 420))
- self.verticalLayout = QtWidgets.QVBoxLayout(probe_offset_page)
- self.verticalLayout.setObjectName("verticalLayout")
- self.po_header_layout = QtWidgets.QHBoxLayout()
- self.po_header_layout.setObjectName("po_header_layout")
- self.po_header_title = QtWidgets.QLabel(parent=probe_offset_page)
- self.po_header_title.setMinimumSize(QtCore.QSize(200, 60))
- self.po_header_title.setMaximumSize(QtCore.QSize(16777215, 60))
- font = QtGui.QFont()
- font.setPointSize(24)
- self.po_header_title.setFont(font)
- self.po_header_title.setStyleSheet("background: transparent; color: white;")
- self.po_header_title.setObjectName("po_header_title")
- self.po_header_layout.addWidget(self.po_header_title)
- self.po_back_button = BlocksCustomButton(parent=probe_offset_page)
- self.po_back_button.setMinimumSize(QtCore.QSize(60, 60))
- self.po_back_button.setMaximumSize(QtCore.QSize(60, 60))
- self.po_back_button.setFlat(True)
- self.po_back_button.setProperty("icon_pixmap", QtGui.QPixmap(":/button_borders/media/btn_icons/back.svg"))
- self.po_back_button.setObjectName("po_back_button")
- self.po_header_layout.addWidget(self.po_back_button)
- self.verticalLayout.addLayout(self.po_header_layout)
- self.separator_line = QtWidgets.QFrame(parent=probe_offset_page)
- font = QtGui.QFont()
- font.setPointSize(20)
- self.separator_line.setFont(font)
- self.separator_line.setFrameShape(QtWidgets.QFrame.Shape.HLine)
- self.separator_line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
- self.separator_line.setObjectName("separator_line")
- self.verticalLayout.addWidget(self.separator_line)
- self.po_main_content_layout = QtWidgets.QHBoxLayout()
- self.po_main_content_layout.setObjectName("po_main_content_layout")
- self.po_tool_content_layout = QtWidgets.QVBoxLayout()
- self.po_tool_content_layout.setContentsMargins(5, 5, 5, 5)
- self.po_tool_content_layout.setObjectName("po_tool_content_layout")
- self.tool_options_content = QtWidgets.QHBoxLayout()
- self.tool_options_content.setContentsMargins(5, 5, 5, 5)
- self.tool_options_content.setObjectName("tool_options_content")
- self.tool_move = QtWidgets.QWidget(parent=probe_offset_page)
- self.tool_move.setObjectName("tool_move")
- self.move_buttons = QtWidgets.QVBoxLayout(self.tool_move)
- self.move_buttons.setContentsMargins(9, 9, 9, 9)
- self.move_buttons.setObjectName("move_buttons")
- self.mb_raise_nozzle = BlocksCustomButton(parent=self.tool_move)
- self.mb_raise_nozzle.setMinimumSize(QtCore.QSize(80, 80))
- self.mb_raise_nozzle.setMaximumSize(QtCore.QSize(80, 80))
- self.mb_raise_nozzle.setFlat(True)
- self.mb_raise_nozzle.setProperty("icon_pixmap", QtGui.QPixmap(":/arrow_icons/media/btn_icons/up_arrow.svg"))
- self.mb_raise_nozzle.setObjectName("mb_raise_nozzle")
- self.move_buttons.addWidget(self.mb_raise_nozzle)
- self.mb_lower_nozzle = BlocksCustomButton(parent=self.tool_move)
- self.mb_lower_nozzle.setMinimumSize(QtCore.QSize(80, 80))
- self.mb_lower_nozzle.setMaximumSize(QtCore.QSize(80, 80))
- self.mb_lower_nozzle.setFlat(True)
- self.mb_lower_nozzle.setProperty("icon_pixmap", QtGui.QPixmap(":/arrow_icons/media/btn_icons/down_arrow.svg"))
- self.mb_lower_nozzle.setObjectName("mb_lower_nozzle")
- self.move_buttons.addWidget(self.mb_lower_nozzle, 0, QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.tool_options_content.addWidget(self.tool_move, 0, QtCore.Qt.AlignmentFlag.AlignLeft)
- self.tool_content_info = QtWidgets.QFrame(parent=probe_offset_page)
- self.tool_content_info.setMinimumSize(QtCore.QSize(400, 200))
- self.tool_content_info.setMaximumSize(QtCore.QSize(16777215, 16777215))
- self.tool_content_info.setFrameShape(QtWidgets.QFrame.Shape.NoFrame)
- self.tool_content_info.setFrameShadow(QtWidgets.QFrame.Shadow.Plain)
- self.tool_content_info.setObjectName("tool_content_info")
- self.tool_image = QtWidgets.QLabel(parent=self.tool_content_info)
- self.tool_image.setGeometry(QtCore.QRect(40, 0, 346, 211))
- self.tool_image.setText("")
- self.tool_image.setPixmap(QtGui.QPixmap(":/graphics/media/graphics/babystep_graphic.png"))
- self.tool_image.setObjectName("tool_image")
- self.verticalLayoutWidget = QtWidgets.QWidget(parent=self.tool_content_info)
- self.verticalLayoutWidget.setGeometry(QtCore.QRect(150, 10, 212, 154))
- self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
- self.tool_content_info_box = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
- self.tool_content_info_box.setContentsMargins(6, 6, 6, 6)
- self.tool_content_info_box.setSpacing(2)
- self.tool_content_info_box.setObjectName("tool_content_info_box")
- self.old_offset_box_2 = QtWidgets.QWidget(parent=self.verticalLayoutWidget)
- self.old_offset_box_2.setMinimumSize(QtCore.QSize(200, 70))
- self.old_offset_box_2.setMaximumSize(QtCore.QSize(200, 70))
- self.old_offset_box_2.setObjectName("old_offset_box_2")
- self.old_offset_box = QtWidgets.QHBoxLayout(self.old_offset_box_2)
- self.old_offset_box.setObjectName("old_offset_box")
- self.old_offset_icon = BlocksLabel(parent=self.old_offset_box_2)
- self.old_offset_icon.setMinimumSize(QtCore.QSize(60, 60))
- self.old_offset_icon.setMaximumSize(QtCore.QSize(60, 60))
- self.old_offset_icon.setText("")
- self.old_offset_icon.setPixmap(QtGui.QPixmap(":/graphics/media/btn_icons/old_z_offset_icon.svg"))
- self.old_offset_icon.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.old_offset_icon.setObjectName("old_offset_icon")
- self.old_offset_box.addWidget(self.old_offset_icon)
- self.old_offset_info = QtWidgets.QLabel(parent=self.old_offset_box_2)
- self.old_offset_info.setMinimumSize(QtCore.QSize(140, 60))
- self.old_offset_info.setMaximumSize(QtCore.QSize(140, 60))
- font = QtGui.QFont()
- font.setPointSize(14)
- self.old_offset_info.setFont(font)
- self.old_offset_info.setStyleSheet("background: transparent; color: white;")
- self.old_offset_info.setObjectName("old_offset_info")
- self.old_offset_box.addWidget(self.old_offset_info)
- self.tool_content_info_box.addWidget(self.old_offset_box_2)
- self.current_offset_box_2 = QtWidgets.QWidget(parent=self.verticalLayoutWidget)
- self.current_offset_box_2.setMinimumSize(QtCore.QSize(200, 70))
- self.current_offset_box_2.setMaximumSize(QtCore.QSize(200, 70))
- self.current_offset_box_2.setObjectName("current_offset_box_2")
- self.current_offset_box = QtWidgets.QHBoxLayout(self.current_offset_box_2)
- self.current_offset_box.setObjectName("current_offset_box")
- self.current_offset_icon = BlocksLabel(parent=self.current_offset_box_2)
- self.current_offset_icon.setMinimumSize(QtCore.QSize(60, 60))
- self.current_offset_icon.setMaximumSize(QtCore.QSize(60, 60))
- self.current_offset_icon.setText("")
- self.current_offset_icon.setPixmap(QtGui.QPixmap(":/graphics/media/btn_icons/new_z_offset_icon.svg"))
- self.current_offset_icon.setScaledContents(True)
- self.current_offset_icon.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
- self.current_offset_icon.setObjectName("current_offset_icon")
- self.current_offset_box.addWidget(self.current_offset_icon)
- self.current_offset_info = QtWidgets.QLabel(parent=self.current_offset_box_2)
- self.current_offset_info.setMinimumSize(QtCore.QSize(140, 60))
- self.current_offset_info.setMaximumSize(QtCore.QSize(140, 60))
- font = QtGui.QFont()
- font.setPointSize(14)
- self.current_offset_info.setFont(font)
- self.current_offset_info.setStyleSheet("background: transparent; color: white;")
- self.current_offset_info.setObjectName("current_offset_info")
- self.current_offset_box.addWidget(self.current_offset_info)
- self.tool_content_info_box.addWidget(self.current_offset_box_2)
- self.tool_options_content.addWidget(self.tool_content_info, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.tool_dialog_2 = QtWidgets.QWidget(parent=probe_offset_page)
- self.tool_dialog_2.setObjectName("tool_dialog_2")
- self.tool_dialog = QtWidgets.QVBoxLayout(self.tool_dialog_2)
- self.tool_dialog.setContentsMargins(9, 9, 9, 9)
- self.tool_dialog.setObjectName("tool_dialog")
- self.accept_button = BlocksCustomButton(parent=self.tool_dialog_2)
- self.accept_button.setMinimumSize(QtCore.QSize(80, 80))
- self.accept_button.setMaximumSize(QtCore.QSize(80, 80))
- self.accept_button.setFlat(True)
- self.accept_button.setProperty("icon_pixmap", QtGui.QPixmap(":/dialog/media/btn_icons/new_accept_hugo.svg"))
- self.accept_button.setProperty("text_color", QtGui.QColor(255, 255, 255))
- self.accept_button.setObjectName("accept_button")
- self.tool_dialog.addWidget(self.accept_button, 0, QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.abort_button = BlocksCustomButton(parent=self.tool_dialog_2)
- self.abort_button.setMinimumSize(QtCore.QSize(80, 80))
- self.abort_button.setMaximumSize(QtCore.QSize(80, 80))
- self.abort_button.setFlat(True)
- self.abort_button.setProperty("icon_pixmap", QtGui.QPixmap(":/dialog/media/btn_icons/new_abort_hugo.svg"))
- self.abort_button.setProperty("text_color", QtGui.QColor(255, 255, 255))
- self.abort_button.setObjectName("abort_button")
- self.tool_dialog.addWidget(self.abort_button, 0, QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignVCenter)
- self.tool_options_content.addWidget(self.tool_dialog_2, 0, QtCore.Qt.AlignmentFlag.AlignRight)
- self.po_tool_content_layout.addLayout(self.tool_options_content)
- self.move_intervals = QtWidgets.QGroupBox(parent=probe_offset_page)
- self.move_intervals.setMinimumSize(QtCore.QSize(350, 90))
- self.move_intervals.setMaximumSize(QtCore.QSize(16777215, 100))
- palette = QtGui.QPalette()
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush)
- brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
- brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
- palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush)
- self.move_intervals.setPalette(palette)
- font = QtGui.QFont()
- font.setPointSize(14)
- self.move_intervals.setFont(font)
- self.move_intervals.setFlat(True)
- self.move_intervals.setObjectName("move_intervals")
- self.horizontalLayout = QtWidgets.QHBoxLayout(self.move_intervals)
- self.horizontalLayout.setContentsMargins(9, 4, -1, 9)
- self.horizontalLayout.setObjectName("horizontalLayout")
- self.move_option_1 = QtWidgets.QPushButton(parent=self.move_intervals)
- self.move_option_1.setMinimumSize(QtCore.QSize(60, 60))
- self.move_option_1.setMaximumSize(QtCore.QSize(16777215, 60))
- font = QtGui.QFont()
- font.setPointSize(20)
- self.move_option_1.setFont(font)
- self.move_option_1.setStyleSheet("color: white;")
- self.move_option_1.setCheckable(True)
- self.move_option_1.setFlat(True)
- self.move_option_1.setObjectName("move_option_1")
- self.horizontalLayout.addWidget(self.move_option_1)
- self.move_option_2 = QtWidgets.QPushButton(parent=self.move_intervals)
- self.move_option_2.setMinimumSize(QtCore.QSize(60, 60))
- self.move_option_2.setMaximumSize(QtCore.QSize(16777215, 60))
- font = QtGui.QFont()
- font.setPointSize(20)
- self.move_option_2.setFont(font)
- self.move_option_2.setStyleSheet("color: white;")
- self.move_option_2.setCheckable(True)
- self.move_option_2.setFlat(True)
- self.move_option_2.setObjectName("move_option_2")
- self.horizontalLayout.addWidget(self.move_option_2)
- self.move_option_3 = QtWidgets.QPushButton(parent=self.move_intervals)
- self.move_option_3.setMinimumSize(QtCore.QSize(60, 60))
- self.move_option_3.setMaximumSize(QtCore.QSize(16777215, 60))
- font = QtGui.QFont()
- font.setPointSize(20)
- self.move_option_3.setFont(font)
- self.move_option_3.setStyleSheet("color: white;")
- self.move_option_3.setCheckable(True)
- self.move_option_3.setFlat(True)
- self.move_option_3.setObjectName("move_option_3")
- self.horizontalLayout.addWidget(self.move_option_3)
- self.move_option_4 = QtWidgets.QPushButton(parent=self.move_intervals)
- self.move_option_4.setMinimumSize(QtCore.QSize(60, 60))
- self.move_option_4.setMaximumSize(QtCore.QSize(16777215, 60))
- font = QtGui.QFont()
- font.setPointSize(20)
- self.move_option_4.setFont(font)
- self.move_option_4.setStyleSheet("color: white;")
- self.move_option_4.setCheckable(True)
- self.move_option_4.setChecked(False)
- self.move_option_4.setFlat(True)
- self.move_option_4.setObjectName("move_option_4")
- self.horizontalLayout.addWidget(self.move_option_4)
- self.move_option_5 = QtWidgets.QPushButton(parent=self.move_intervals)
- self.move_option_5.setMinimumSize(QtCore.QSize(60, 60))
- self.move_option_5.setMaximumSize(QtCore.QSize(16777215, 60))
- font = QtGui.QFont()
- font.setPointSize(20)
- self.move_option_5.setFont(font)
- self.move_option_5.setStyleSheet("color: white;")
- self.move_option_5.setCheckable(True)
- self.move_option_5.setChecked(True)
- self.move_option_5.setFlat(True)
- self.move_option_5.setObjectName("move_option_5")
- self.horizontalLayout.addWidget(self.move_option_5)
- self.po_tool_content_layout.addWidget(self.move_intervals)
- self.po_main_content_layout.addLayout(self.po_tool_content_layout)
- self.verticalLayout.addLayout(self.po_main_content_layout)
-
- self.retranslateUi(probe_offset_page)
- QtCore.QMetaObject.connectSlotsByName(probe_offset_page)
-
- def retranslateUi(self, probe_offset_page):
- _translate = QtCore.QCoreApplication.translate
- probe_offset_page.setWindowTitle(_translate("probe_offset_page", "Form"))
- self.po_header_title.setText(_translate("probe_offset_page", "Z Probe Offset Calibrate"))
- self.po_back_button.setText(_translate("probe_offset_page", "PushButton"))
- self.po_back_button.setProperty("button_type", _translate("probe_offset_page", "icon"))
- self.mb_raise_nozzle.setText(_translate("probe_offset_page", "bb"))
- self.mb_raise_nozzle.setProperty("button_type", _translate("probe_offset_page", "icon"))
- self.mb_lower_nozzle.setText(_translate("probe_offset_page", "bb"))
- self.mb_lower_nozzle.setProperty("button_type", _translate("probe_offset_page", "icon"))
- self.old_offset_info.setText(_translate("probe_offset_page", "TextLabel"))
- self.current_offset_info.setText(_translate("probe_offset_page", "TextLabel"))
- self.accept_button.setText(_translate("probe_offset_page", "Accept"))
- self.accept_button.setProperty("button_type", _translate("probe_offset_page", "icon_text"))
- self.accept_button.setProperty("text_formatting", _translate("probe_offset_page", "bottom"))
- self.abort_button.setText(_translate("probe_offset_page", "Abort"))
- self.abort_button.setProperty("button_type", _translate("probe_offset_page", "icon_text"))
- self.abort_button.setProperty("text_formatting", _translate("probe_offset_page", "bottom"))
- self.move_intervals.setTitle(_translate("probe_offset_page", "Move Distance (mm)"))
- self.move_option_1.setText(_translate("probe_offset_page", "0.01"))
- self.move_option_2.setText(_translate("probe_offset_page", "0.025"))
- self.move_option_3.setText(_translate("probe_offset_page", "0.05"))
- self.move_option_4.setText(_translate("probe_offset_page", "0.1"))
- self.move_option_5.setText(_translate("probe_offset_page", "1"))
-from lib.utils.ui import BlocksCustomButton, BlocksLabel
diff --git a/BlocksScreen/lib/ui/systemUpdate.ui b/BlocksScreen/lib/ui/systemUpdate.ui
deleted file mode 100644
index 2b135068..00000000
--- a/BlocksScreen/lib/ui/systemUpdate.ui
+++ /dev/null
@@ -1,105 +0,0 @@
-
-
- systemUpdatePanel
-
-
-
- 0
- 0
- 710
- 400
-
-
-
-
- 710
- 400
-
-
-
-
- 720
- 420
-
-
-
- Form
-
-
-
-
- 10
- 10
- 681
- 61
-
-
-
- -
-
-
-
- 300
- 60
-
-
-
-
- 16777215
- 60
-
-
-
-
- 24
-
-
-
- background: transparent; color: white;
-
-
- System Update
-
-
-
- -
-
-
-
- 60
- 60
-
-
-
-
- 60
- 60
-
-
-
- PushButton
-
-
- true
-
-
- icon
-
-
-
-
-
-
-
-
-
-
-
- BlocksCustomButton
- QPushButton
-
-
-
-
-
-
diff --git a/BlocksScreen/lib/ui/systemUpdate_ui.py b/BlocksScreen/lib/ui/systemUpdate_ui.py
deleted file mode 100644
index 4984985b..00000000
--- a/BlocksScreen/lib/ui/systemUpdate_ui.py
+++ /dev/null
@@ -1,49 +0,0 @@
-# Form implementation generated from reading ui file '/home/bugo/github/Blocks_Screen/BlocksScreen/lib/ui/systemUpdate.ui'
-#
-# Created by: PyQt6 UI code generator 6.4.2
-#
-# WARNING: Any manual changes made to this file will be lost when pyuic6 is
-# run again. Do not edit this file unless you know what you are doing.
-
-
-from PyQt6 import QtCore, QtGui, QtWidgets
-
-
-class Ui_systemUpdatePanel(object):
- def setupUi(self, systemUpdatePanel):
- systemUpdatePanel.setObjectName("systemUpdatePanel")
- systemUpdatePanel.resize(710, 400)
- systemUpdatePanel.setMinimumSize(QtCore.QSize(710, 400))
- systemUpdatePanel.setMaximumSize(QtCore.QSize(720, 420))
- self.horizontalLayoutWidget = QtWidgets.QWidget(parent=systemUpdatePanel)
- self.horizontalLayoutWidget.setGeometry(QtCore.QRect(10, 10, 681, 61))
- self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
- self.horizontalLayout = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget)
- self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
- self.horizontalLayout.setObjectName("horizontalLayout")
- self.su_header_title = QtWidgets.QLabel(parent=self.horizontalLayoutWidget)
- self.su_header_title.setMinimumSize(QtCore.QSize(300, 60))
- self.su_header_title.setMaximumSize(QtCore.QSize(16777215, 60))
- font = QtGui.QFont()
- font.setPointSize(24)
- self.su_header_title.setFont(font)
- self.su_header_title.setStyleSheet("background: transparent; color: white;")
- self.su_header_title.setObjectName("su_header_title")
- self.horizontalLayout.addWidget(self.su_header_title)
- self.su_back_button = BlocksCustomButton(parent=self.horizontalLayoutWidget)
- self.su_back_button.setMinimumSize(QtCore.QSize(60, 60))
- self.su_back_button.setMaximumSize(QtCore.QSize(60, 60))
- self.su_back_button.setFlat(True)
- self.su_back_button.setObjectName("su_back_button")
- self.horizontalLayout.addWidget(self.su_back_button)
-
- self.retranslateUi(systemUpdatePanel)
- QtCore.QMetaObject.connectSlotsByName(systemUpdatePanel)
-
- def retranslateUi(self, systemUpdatePanel):
- _translate = QtCore.QCoreApplication.translate
- systemUpdatePanel.setWindowTitle(_translate("systemUpdatePanel", "Form"))
- self.su_header_title.setText(_translate("systemUpdatePanel", "System Update"))
- self.su_back_button.setText(_translate("systemUpdatePanel", "PushButton"))
- self.su_back_button.setProperty("button_type", _translate("systemUpdatePanel", "icon"))
-from lib.utils.ui import BlocksCustomButton
diff --git a/BlocksScreen/lib/ui/waitConfirmWindow.ui b/BlocksScreen/lib/ui/waitConfirmWindow.ui
deleted file mode 100644
index f878f16f..00000000
--- a/BlocksScreen/lib/ui/waitConfirmWindow.ui
+++ /dev/null
@@ -1,629 +0,0 @@
-
-
- utilitiesStackedWidget
-
-
-
- 0
- 0
- 796
- 412
-
-
-
- StackedWidget
-
-
- 2
-
-
-
-
-
- 320
- 70
- 171
- 61
-
-
-
-
- Momcake
- 24
-
-
-
- background: transparent; color: white;
-
-
- PLEASE WAIT
-
-
- title_text
-
-
-
-
- true
-
-
-
- 200
- 170
- 411
- 91
-
-
-
-
- Montserrat
- 14
-
-
-
- background: transparent; color: white;
-
-
- Printer is homing
-
-
-
-
-
- 680
- 40
- 101
- 71
-
-
-
-
- 10
- 10
-
-
-
-
- Momcake
- 20
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
-
-
-
- Cancel
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- :/button_borders/media/buttons/btn_part1.svg
-
-
- :/button_borders/media/buttons/btn_part2.svg
-
-
- :/button_borders/media/buttons/btn_part3.svg
-
-
- normal
-
-
-
-
-
-
-
- 320
- 60
- 171
- 61
-
-
-
-
- Momcake
- 24
-
-
-
- background: transparent; color: white;
-
-
- Temperature
-
-
- title_text
-
-
-
-
- true
-
-
-
- 220
- 170
- 411
- 91
-
-
-
-
- Montserrat
- 14
-
-
-
- background: transparent; color: white;
-
-
- Hotends heating to load filament
-
-
-
-
- true
-
-
-
- 470
- 310
- 31
- 41
-
-
-
-
- Montserrat
- 14
-
-
-
- background: transparent; color: white;
-
-
- 0
-
-
-
-
- true
-
-
-
- 240
- 310
- 31
- 41
-
-
-
-
- Montserrat
- 14
-
-
-
- background: transparent; color: white;
-
-
- 0
-
-
-
-
- true
-
-
-
- 430
- 310
- 31
- 41
-
-
-
-
- Montserrat
- 14
-
-
-
- background: transparent; color: white;
-
-
- 0
-
-
-
-
- true
-
-
-
- 200
- 310
- 31
- 41
-
-
-
-
- Montserrat
- 14
-
-
-
- background: transparent; color: white;
-
-
- 0
-
-
-
-
-
- 340
- 300
- 91
- 61
-
-
-
- Hontend 2 Icon
-
-
-
-
-
- 90
- 300
- 91
- 61
-
-
-
- Hotend 1 Icon
-
-
-
-
- true
-
-
-
- 690
- 310
- 31
- 41
-
-
-
-
- Montserrat
- 14
-
-
-
- background: transparent; color: white;
-
-
- 0
-
-
-
-
-
- 560
- 300
- 91
- 61
-
-
-
- Hotbed Icon
-
-
-
-
- true
-
-
-
- 650
- 310
- 31
- 41
-
-
-
-
- Montserrat
- 14
-
-
-
- background: transparent; color: white;
-
-
- 0
-
-
-
-
-
- 670
- 30
- 101
- 71
-
-
-
-
- 10
- 10
-
-
-
-
- Momcake
- 20
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
-
-
-
- Cancel
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- :/button_borders/media/buttons/btn_part1.svg
-
-
- :/button_borders/media/buttons/btn_part2.svg
-
-
- :/button_borders/media/buttons/btn_part3.svg
-
-
- normal
-
-
-
-
-
-
-
- 330
- 50
- 111
- 61
-
-
-
-
- Momcake
- 24
-
-
-
- background: transparent; color: white;
-
-
- CONFIRM
-
-
- title_text
-
-
-
-
- true
-
-
-
- 170
- 150
- 411
- 91
-
-
-
-
- Montserrat
- 14
-
-
-
- background: transparent; color: white;
-
-
- Do you want to apply changes?
-
-
-
-
-
- 110
- 290
- 211
- 71
-
-
-
-
- 10
- 10
-
-
-
-
- Momcake
- 20
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
-
-
-
- YES
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- :/button_borders/media/buttons/btn_part1.svg
-
-
- :/button_borders/media/buttons/btn_part2.svg
-
-
- :/button_borders/media/buttons/btn_part3.svg
-
-
- normal
-
-
-
-
-
- 440
- 290
- 211
- 71
-
-
-
-
- 10
- 10
-
-
-
-
- Momcake
- 20
- false
- PreferAntialias
-
-
-
- false
-
-
- true
-
-
- Qt::NoContextMenu
-
-
- Qt::LeftToRight
-
-
-
-
-
- NO
-
-
- false
-
-
- true
-
-
- menu_btn
-
-
- :/button_borders/media/buttons/btn_part1.svg
-
-
- :/button_borders/media/buttons/btn_part2.svg
-
-
- :/button_borders/media/buttons/btn_part3.svg
-
-
-
-
-
-
-
-
-
- BlocksCustomButton
- QPushButton
-
-
-
-
-
-
-
-
-
diff --git a/BlocksScreen/lib/ui/waitConfirmWindow_ui.py b/BlocksScreen/lib/ui/waitConfirmWindow_ui.py
deleted file mode 100644
index 4683d752..00000000
--- a/BlocksScreen/lib/ui/waitConfirmWindow_ui.py
+++ /dev/null
@@ -1,257 +0,0 @@
-# Form implementation generated from reading ui file '/home/bugo/github/Blocks_Screen/BlocksScreen/lib/ui/waitConfirmWindow.ui'
-#
-# Created by: PyQt6 UI code generator 6.4.2
-#
-# WARNING: Any manual changes made to this file will be lost when pyuic6 is
-# run again. Do not edit this file unless you know what you are doing.
-
-
-from PyQt6 import QtCore, QtGui, QtWidgets
-
-
-class Ui_utilitiesStackedWidget(object):
- def setupUi(self, utilitiesStackedWidget):
- utilitiesStackedWidget.setObjectName("utilitiesStackedWidget")
- utilitiesStackedWidget.resize(796, 412)
- self.wait_page = QtWidgets.QWidget()
- self.wait_page.setObjectName("wait_page")
- self.wait_title_label = QtWidgets.QLabel(parent=self.wait_page)
- self.wait_title_label.setGeometry(QtCore.QRect(320, 70, 171, 61))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(24)
- self.wait_title_label.setFont(font)
- self.wait_title_label.setStyleSheet("background: transparent; color: white;")
- self.wait_title_label.setObjectName("wait_title_label")
- self.wait_text_label = QtWidgets.QLabel(parent=self.wait_page)
- self.wait_text_label.setEnabled(True)
- self.wait_text_label.setGeometry(QtCore.QRect(200, 170, 411, 91))
- font = QtGui.QFont()
- font.setFamily("Montserrat")
- font.setPointSize(14)
- self.wait_text_label.setFont(font)
- self.wait_text_label.setStyleSheet("background: transparent; color: white;")
- self.wait_text_label.setObjectName("wait_text_label")
- self.wait_cancel_btn = BlocksCustomButton(parent=self.wait_page)
- self.wait_cancel_btn.setGeometry(QtCore.QRect(680, 40, 101, 71))
- self.wait_cancel_btn.setMinimumSize(QtCore.QSize(10, 10))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(20)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.wait_cancel_btn.setFont(font)
- self.wait_cancel_btn.setMouseTracking(False)
- self.wait_cancel_btn.setTabletTracking(True)
- self.wait_cancel_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.wait_cancel_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.wait_cancel_btn.setStyleSheet("")
- self.wait_cancel_btn.setAutoDefault(False)
- self.wait_cancel_btn.setFlat(True)
- self.wait_cancel_btn.setProperty("borderLeftPixmap", QtGui.QPixmap(":/button_borders/media/buttons/btn_part1.svg"))
- self.wait_cancel_btn.setProperty("borderCenterPixmap", QtGui.QPixmap(":/button_borders/media/buttons/btn_part2.svg"))
- self.wait_cancel_btn.setProperty("borderRightPixmap", QtGui.QPixmap(":/button_borders/media/buttons/btn_part3.svg"))
- self.wait_cancel_btn.setObjectName("wait_cancel_btn")
- utilitiesStackedWidget.addWidget(self.wait_page)
- self.wait_temperature_page = QtWidgets.QWidget()
- self.wait_temperature_page.setObjectName("wait_temperature_page")
- self.wait_temp_title_label = QtWidgets.QLabel(parent=self.wait_temperature_page)
- self.wait_temp_title_label.setGeometry(QtCore.QRect(320, 60, 171, 61))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(24)
- self.wait_temp_title_label.setFont(font)
- self.wait_temp_title_label.setStyleSheet("background: transparent; color: white;")
- self.wait_temp_title_label.setObjectName("wait_temp_title_label")
- self.wait_temp_text_label = QtWidgets.QLabel(parent=self.wait_temperature_page)
- self.wait_temp_text_label.setEnabled(True)
- self.wait_temp_text_label.setGeometry(QtCore.QRect(220, 170, 411, 91))
- font = QtGui.QFont()
- font.setFamily("Montserrat")
- font.setPointSize(14)
- self.wait_temp_text_label.setFont(font)
- self.wait_temp_text_label.setStyleSheet("background: transparent; color: white;")
- self.wait_temp_text_label.setObjectName("wait_temp_text_label")
- self.wait_temp_t2_target_value_label = QtWidgets.QLabel(parent=self.wait_temperature_page)
- self.wait_temp_t2_target_value_label.setEnabled(True)
- self.wait_temp_t2_target_value_label.setGeometry(QtCore.QRect(470, 310, 31, 41))
- font = QtGui.QFont()
- font.setFamily("Montserrat")
- font.setPointSize(14)
- self.wait_temp_t2_target_value_label.setFont(font)
- self.wait_temp_t2_target_value_label.setStyleSheet("background: transparent; color: white;")
- self.wait_temp_t2_target_value_label.setObjectName("wait_temp_t2_target_value_label")
- self.wait_temp_t1_target_value_label = QtWidgets.QLabel(parent=self.wait_temperature_page)
- self.wait_temp_t1_target_value_label.setEnabled(True)
- self.wait_temp_t1_target_value_label.setGeometry(QtCore.QRect(240, 310, 31, 41))
- font = QtGui.QFont()
- font.setFamily("Montserrat")
- font.setPointSize(14)
- self.wait_temp_t1_target_value_label.setFont(font)
- self.wait_temp_t1_target_value_label.setStyleSheet("background: transparent; color: white;")
- self.wait_temp_t1_target_value_label.setObjectName("wait_temp_t1_target_value_label")
- self.wait_temp_t2_temp_value_label = QtWidgets.QLabel(parent=self.wait_temperature_page)
- self.wait_temp_t2_temp_value_label.setEnabled(True)
- self.wait_temp_t2_temp_value_label.setGeometry(QtCore.QRect(430, 310, 31, 41))
- font = QtGui.QFont()
- font.setFamily("Montserrat")
- font.setPointSize(14)
- self.wait_temp_t2_temp_value_label.setFont(font)
- self.wait_temp_t2_temp_value_label.setStyleSheet("background: transparent; color: white;")
- self.wait_temp_t2_temp_value_label.setObjectName("wait_temp_t2_temp_value_label")
- self.wait_temp_t1_temp_value_label = QtWidgets.QLabel(parent=self.wait_temperature_page)
- self.wait_temp_t1_temp_value_label.setEnabled(True)
- self.wait_temp_t1_temp_value_label.setGeometry(QtCore.QRect(200, 310, 31, 41))
- font = QtGui.QFont()
- font.setFamily("Montserrat")
- font.setPointSize(14)
- self.wait_temp_t1_temp_value_label.setFont(font)
- self.wait_temp_t1_temp_value_label.setStyleSheet("background: transparent; color: white;")
- self.wait_temp_t1_temp_value_label.setObjectName("wait_temp_t1_temp_value_label")
- self.wait_temp_t2_icon_label = QtWidgets.QLabel(parent=self.wait_temperature_page)
- self.wait_temp_t2_icon_label.setGeometry(QtCore.QRect(340, 300, 91, 61))
- self.wait_temp_t2_icon_label.setObjectName("wait_temp_t2_icon_label")
- self.wait_temp_t1_icon_label = QtWidgets.QLabel(parent=self.wait_temperature_page)
- self.wait_temp_t1_icon_label.setGeometry(QtCore.QRect(90, 300, 91, 61))
- self.wait_temp_t1_icon_label.setObjectName("wait_temp_t1_icon_label")
- self.wait_temp_bed_target_value_label = QtWidgets.QLabel(parent=self.wait_temperature_page)
- self.wait_temp_bed_target_value_label.setEnabled(True)
- self.wait_temp_bed_target_value_label.setGeometry(QtCore.QRect(690, 310, 31, 41))
- font = QtGui.QFont()
- font.setFamily("Montserrat")
- font.setPointSize(14)
- self.wait_temp_bed_target_value_label.setFont(font)
- self.wait_temp_bed_target_value_label.setStyleSheet("background: transparent; color: white;")
- self.wait_temp_bed_target_value_label.setObjectName("wait_temp_bed_target_value_label")
- self.wait_temp_bed_icon_label = QtWidgets.QLabel(parent=self.wait_temperature_page)
- self.wait_temp_bed_icon_label.setGeometry(QtCore.QRect(560, 300, 91, 61))
- self.wait_temp_bed_icon_label.setObjectName("wait_temp_bed_icon_label")
- self.wait_temp_bed_temp_value_label = QtWidgets.QLabel(parent=self.wait_temperature_page)
- self.wait_temp_bed_temp_value_label.setEnabled(True)
- self.wait_temp_bed_temp_value_label.setGeometry(QtCore.QRect(650, 310, 31, 41))
- font = QtGui.QFont()
- font.setFamily("Montserrat")
- font.setPointSize(14)
- self.wait_temp_bed_temp_value_label.setFont(font)
- self.wait_temp_bed_temp_value_label.setStyleSheet("background: transparent; color: white;")
- self.wait_temp_bed_temp_value_label.setObjectName("wait_temp_bed_temp_value_label")
- self.wait_temp_cancel_btn = BlocksCustomButton(parent=self.wait_temperature_page)
- self.wait_temp_cancel_btn.setGeometry(QtCore.QRect(670, 30, 101, 71))
- self.wait_temp_cancel_btn.setMinimumSize(QtCore.QSize(10, 10))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(20)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.wait_temp_cancel_btn.setFont(font)
- self.wait_temp_cancel_btn.setMouseTracking(False)
- self.wait_temp_cancel_btn.setTabletTracking(True)
- self.wait_temp_cancel_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.wait_temp_cancel_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.wait_temp_cancel_btn.setStyleSheet("")
- self.wait_temp_cancel_btn.setAutoDefault(False)
- self.wait_temp_cancel_btn.setFlat(True)
- self.wait_temp_cancel_btn.setProperty("borderLeftPixmap", QtGui.QPixmap(":/button_borders/media/buttons/btn_part1.svg"))
- self.wait_temp_cancel_btn.setProperty("borderCenterPixmap", QtGui.QPixmap(":/button_borders/media/buttons/btn_part2.svg"))
- self.wait_temp_cancel_btn.setProperty("borderRightPixmap", QtGui.QPixmap(":/button_borders/media/buttons/btn_part3.svg"))
- self.wait_temp_cancel_btn.setObjectName("wait_temp_cancel_btn")
- utilitiesStackedWidget.addWidget(self.wait_temperature_page)
- self.confirm_page = QtWidgets.QWidget()
- self.confirm_page.setObjectName("confirm_page")
- self.confirm_title_label = QtWidgets.QLabel(parent=self.confirm_page)
- self.confirm_title_label.setGeometry(QtCore.QRect(330, 50, 111, 61))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(24)
- self.confirm_title_label.setFont(font)
- self.confirm_title_label.setStyleSheet("background: transparent; color: white;")
- self.confirm_title_label.setObjectName("confirm_title_label")
- self.confirm_text_label = QtWidgets.QLabel(parent=self.confirm_page)
- self.confirm_text_label.setEnabled(True)
- self.confirm_text_label.setGeometry(QtCore.QRect(170, 150, 411, 91))
- font = QtGui.QFont()
- font.setFamily("Montserrat")
- font.setPointSize(14)
- self.confirm_text_label.setFont(font)
- self.confirm_text_label.setStyleSheet("background: transparent; color: white;")
- self.confirm_text_label.setObjectName("confirm_text_label")
- self.confirm_yes_btn = BlocksCustomButton(parent=self.confirm_page)
- self.confirm_yes_btn.setGeometry(QtCore.QRect(110, 290, 211, 71))
- self.confirm_yes_btn.setMinimumSize(QtCore.QSize(10, 10))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(20)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.confirm_yes_btn.setFont(font)
- self.confirm_yes_btn.setMouseTracking(False)
- self.confirm_yes_btn.setTabletTracking(True)
- self.confirm_yes_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.confirm_yes_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.confirm_yes_btn.setStyleSheet("")
- self.confirm_yes_btn.setAutoDefault(False)
- self.confirm_yes_btn.setFlat(True)
- self.confirm_yes_btn.setProperty("borderLeftPixmap", QtGui.QPixmap(":/button_borders/media/buttons/btn_part1.svg"))
- self.confirm_yes_btn.setProperty("borderCenterPixmap", QtGui.QPixmap(":/button_borders/media/buttons/btn_part2.svg"))
- self.confirm_yes_btn.setProperty("borderRightPixmap", QtGui.QPixmap(":/button_borders/media/buttons/btn_part3.svg"))
- self.confirm_yes_btn.setObjectName("confirm_yes_btn")
- self.confirm_no_btn = BlocksCustomButton(parent=self.confirm_page)
- self.confirm_no_btn.setGeometry(QtCore.QRect(440, 290, 211, 71))
- self.confirm_no_btn.setMinimumSize(QtCore.QSize(10, 10))
- font = QtGui.QFont()
- font.setFamily("Momcake")
- font.setPointSize(20)
- font.setItalic(False)
- font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias)
- self.confirm_no_btn.setFont(font)
- self.confirm_no_btn.setMouseTracking(False)
- self.confirm_no_btn.setTabletTracking(True)
- self.confirm_no_btn.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu)
- self.confirm_no_btn.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
- self.confirm_no_btn.setStyleSheet("")
- self.confirm_no_btn.setAutoDefault(False)
- self.confirm_no_btn.setFlat(True)
- self.confirm_no_btn.setProperty("borderLeftPixmap", QtGui.QPixmap(":/button_borders/media/buttons/btn_part1.svg"))
- self.confirm_no_btn.setProperty("borderCenterPixmap", QtGui.QPixmap(":/button_borders/media/buttons/btn_part2.svg"))
- self.confirm_no_btn.setProperty("borderRightPixmap", QtGui.QPixmap(":/button_borders/media/buttons/btn_part3.svg"))
- self.confirm_no_btn.setProperty("normal", "")
- self.confirm_no_btn.setObjectName("confirm_no_btn")
- utilitiesStackedWidget.addWidget(self.confirm_page)
-
- self.retranslateUi(utilitiesStackedWidget)
- utilitiesStackedWidget.setCurrentIndex(2)
- QtCore.QMetaObject.connectSlotsByName(utilitiesStackedWidget)
-
- def retranslateUi(self, utilitiesStackedWidget):
- _translate = QtCore.QCoreApplication.translate
- utilitiesStackedWidget.setWindowTitle(_translate("utilitiesStackedWidget", "StackedWidget"))
- self.wait_title_label.setText(_translate("utilitiesStackedWidget", "PLEASE WAIT"))
- self.wait_title_label.setProperty("class", _translate("utilitiesStackedWidget", "title_text"))
- self.wait_text_label.setText(_translate("utilitiesStackedWidget", "Printer is homing"))
- self.wait_cancel_btn.setText(_translate("utilitiesStackedWidget", "Cancel"))
- self.wait_cancel_btn.setProperty("class", _translate("utilitiesStackedWidget", "menu_btn"))
- self.wait_cancel_btn.setProperty("button_type", _translate("utilitiesStackedWidget", "normal"))
- self.wait_temp_title_label.setText(_translate("utilitiesStackedWidget", "Temperature"))
- self.wait_temp_title_label.setProperty("class", _translate("utilitiesStackedWidget", "title_text"))
- self.wait_temp_text_label.setText(_translate("utilitiesStackedWidget", "Hotends heating to load filament"))
- self.wait_temp_t2_target_value_label.setText(_translate("utilitiesStackedWidget", "0"))
- self.wait_temp_t1_target_value_label.setText(_translate("utilitiesStackedWidget", "0"))
- self.wait_temp_t2_temp_value_label.setText(_translate("utilitiesStackedWidget", "0"))
- self.wait_temp_t1_temp_value_label.setText(_translate("utilitiesStackedWidget", "0"))
- self.wait_temp_t2_icon_label.setText(_translate("utilitiesStackedWidget", "Hontend 2 Icon"))
- self.wait_temp_t1_icon_label.setText(_translate("utilitiesStackedWidget", "Hotend 1 Icon"))
- self.wait_temp_bed_target_value_label.setText(_translate("utilitiesStackedWidget", "0"))
- self.wait_temp_bed_icon_label.setText(_translate("utilitiesStackedWidget", "Hotbed Icon"))
- self.wait_temp_bed_temp_value_label.setText(_translate("utilitiesStackedWidget", "0"))
- self.wait_temp_cancel_btn.setText(_translate("utilitiesStackedWidget", "Cancel"))
- self.wait_temp_cancel_btn.setProperty("class", _translate("utilitiesStackedWidget", "menu_btn"))
- self.wait_temp_cancel_btn.setProperty("button_type", _translate("utilitiesStackedWidget", "normal"))
- self.confirm_title_label.setText(_translate("utilitiesStackedWidget", "CONFIRM"))
- self.confirm_title_label.setProperty("class", _translate("utilitiesStackedWidget", "title_text"))
- self.confirm_text_label.setText(_translate("utilitiesStackedWidget", "Do you want to apply changes?"))
- self.confirm_yes_btn.setText(_translate("utilitiesStackedWidget", "YES"))
- self.confirm_yes_btn.setProperty("class", _translate("utilitiesStackedWidget", "menu_btn"))
- self.confirm_yes_btn.setProperty("button_type", _translate("utilitiesStackedWidget", "normal"))
- self.confirm_no_btn.setText(_translate("utilitiesStackedWidget", "NO"))
- self.confirm_no_btn.setProperty("class", _translate("utilitiesStackedWidget", "menu_btn"))
-from lib.utils.ui import BlocksCustomButton
diff --git a/mutation.sqlite b/mutation.sqlite
new file mode 100644
index 00000000..0a83b0f0
Binary files /dev/null and b/mutation.sqlite differ
diff --git a/tests/panels/conftest.py b/tests/panels/conftest.py
index 2c53f7ac..ed4b24e5 100644
--- a/tests/panels/conftest.py
+++ b/tests/panels/conftest.py
@@ -9,6 +9,7 @@
import sys
import types
+from pathlib import Path
from unittest.mock import MagicMock
_STUB_MODULES = (
@@ -31,14 +32,14 @@
"lib.panels.utilitiesTab",
"lib.panels.widgets",
"lib.panels.widgets.basePopup",
- "lib.panels.widgets.cancelPage",
- "lib.panels.widgets.connectionPage",
"lib.panels.widgets.loadWidget",
- "lib.panels.widgets.notificationPage",
- "lib.panels.widgets.updatePage",
+ "lib.panels.widgets.MainWindow",
+ "lib.panels.widgets.MainWindow.cancelPage",
+ "lib.panels.widgets.MainWindow.connectionPage",
+ "lib.panels.widgets.MainWindow.notificationPage",
+ "lib.panels.widgets.MainWindow.updatePage",
"lib.printer",
"lib.ui",
- "lib.ui.mainWindow_ui",
"lib.ui.resources",
"lib.ui.resources.background_resources_rc",
"lib.ui.resources.font_rc",
@@ -56,6 +57,13 @@
_mod.__path__ = [] # marks it as a package so submodule imports resolve
sys.modules[_name] = _mod
+# MainWindow builds pure-PyQt6 widgets from lib.utils directly, so those stay
+# real: re-point lib.utils at the source tree (earlier suites may have left a
+# MagicMock there, which is not importable as a package).
+_utils = types.ModuleType("lib.utils")
+_utils.__path__ = [str(Path(__file__).parents[2] / "BlocksScreen" / "lib" / "utils")]
+sys.modules["lib.utils"] = _utils
+
# events.* is referenced as a bare attribute in type annotations
# (e.g. ``event: events.WebSocketMessageReceived``), evaluated eagerly at
# class-definition time — needs to resolve any attribute, not just a fixed set.
@@ -79,12 +87,12 @@
sys.modules["lib.panels.printTab"].PrintTab = MagicMock
sys.modules["lib.panels.utilitiesTab"].UtilitiesTab = MagicMock
sys.modules["lib.panels.widgets.basePopup"].BasePopup = MagicMock
-sys.modules["lib.panels.widgets.cancelPage"].CancelPage = MagicMock
-sys.modules["lib.panels.widgets.connectionPage"].ConnectionPage = MagicMock
sys.modules["lib.panels.widgets.loadWidget"].LoadingOverlayWidget = MagicMock
-sys.modules["lib.panels.widgets.notificationPage"].NotificationPage = MagicMock
-sys.modules["lib.panels.widgets.updatePage"].UpdatePage = MagicMock
+_MW = "lib.panels.widgets.MainWindow"
+sys.modules[f"{_MW}.cancelPage"].CancelPage = MagicMock
+sys.modules[f"{_MW}.connectionPage"].ConnectionPage = MagicMock
+sys.modules[f"{_MW}.notificationPage"].NotificationPage = MagicMock
+sys.modules[f"{_MW}.updatePage"].UpdatePage = MagicMock
sys.modules["lib.printer"].Printer = MagicMock
-sys.modules["lib.ui.mainWindow_ui"].Ui_MainWindow = MagicMock
sys.modules["lib.updater_worker"].UpdaterWorker = MagicMock
sys.modules["screensaver"].ScreenSaver = MagicMock
diff --git a/tests/panels/test_main_window_unit.py b/tests/panels/test_main_window_unit.py
index 2668f373..260c8067 100644
--- a/tests/panels/test_main_window_unit.py
+++ b/tests/panels/test_main_window_unit.py
@@ -62,7 +62,8 @@ def _make_nav_window(print_state: str) -> SimpleNamespace:
_print_state=print_state,
printPanel=print_panel,
filamentPanel=MagicMock(),
- ui=SimpleNamespace(main_content_widget=main_content, printTab=print_tab),
+ main_content_widget=main_content,
+ printTab=print_tab,
)
for name in (
"_is_job_active",
diff --git a/tests/widgets/test_connection_page.py b/tests/widgets/test_connection_page.py
index 7b4c98dd..bcfe7932 100644
--- a/tests/widgets/test_connection_page.py
+++ b/tests/widgets/test_connection_page.py
@@ -1,7 +1,7 @@
import pytest
from unittest.mock import MagicMock
from events import KlippyDisconnected, KlippyReady
-from BlocksScreen.lib.panels.widgets.connectionPage import (
+from BlocksScreen.lib.panels.widgets.MainWindow.connectionPage import (
ConnectionState,
ConnectionPage,
)
diff --git a/tests/widgets/test_job_status_page_unit.py b/tests/widgets/test_job_status_page_unit.py
index 070e3a9a..4860b5a4 100644
--- a/tests/widgets/test_job_status_page_unit.py
+++ b/tests/widgets/test_job_status_page_unit.py
@@ -55,7 +55,7 @@ def set_progress(self, *a): # real CustomProgressBar takes a 0-1 float
sys.modules[_name] = _mod # force-set so network conftest stubs don't win
import events # noqa: F401, E402 # ensure events is importable before jobStatusPage loads
-from lib.panels.widgets.jobStatusPage import JobStatusWidget # noqa: E402
+from lib.panels.widgets.PrintTab.jobStatusPage import JobStatusWidget # noqa: E402
@pytest.fixture()
diff --git a/tests/widgets/test_slider_page_request_unit.py b/tests/widgets/test_slider_page_request_unit.py
index d1eefaf1..26994a22 100644
--- a/tests/widgets/test_slider_page_request_unit.py
+++ b/tests/widgets/test_slider_page_request_unit.py
@@ -36,12 +36,12 @@
# tests/panels/conftest.py permanently stubs these as MagicMock/empty-package
# stand-ins in sys.modules at collection time; when that directory collects
# first, the stubs outlive it for the rest of the session. Evict them so the
-# real classes -- and controlTab's real lib.ui.controlStackedWidget_ui import
-# -- resolve here instead of hitting the empty stub package.
+# real classes resolve here instead of hitting the empty stub package.
sys.modules.pop("lib.panels.printTab", None)
sys.modules.pop("lib.panels.controlTab", None)
sys.modules.pop("lib.ui", None)
-sys.modules.pop("lib.ui.controlStackedWidget_ui", None)
+for _stubbed in [_m for _m in sys.modules if _m.startswith("lib.panels.widgets")]:
+ sys.modules.pop(_stubbed, None)
from lib.panels.controlTab import ControlTab # noqa: E402
from lib.panels.printTab import PrintTab # noqa: E402
diff --git a/tests/widgets/test_update_page_unit.py b/tests/widgets/test_update_page_unit.py
index 2a35e7cd..e1c30895 100644
--- a/tests/widgets/test_update_page_unit.py
+++ b/tests/widgets/test_update_page_unit.py
@@ -11,14 +11,18 @@
def page(qapp):
"""UpdatePage instance with all heavy UI deps mocked."""
patches = [
- patch("BlocksScreen.lib.panels.widgets.updatePage.LoadingOverlayWidget"),
- patch("BlocksScreen.lib.panels.widgets.updatePage.BlocksCustomButton"),
- patch("BlocksScreen.lib.panels.widgets.updatePage.IconButton"),
+ patch(
+ "BlocksScreen.lib.panels.widgets.MainWindow.updatePage.LoadingOverlayWidget"
+ ),
+ patch(
+ "BlocksScreen.lib.panels.widgets.MainWindow.updatePage.BlocksCustomButton"
+ ),
+ patch("BlocksScreen.lib.panels.widgets.MainWindow.updatePage.IconButton"),
]
for p in patches:
p.start()
- from BlocksScreen.lib.panels.widgets.updatePage import UpdatePage
+ from BlocksScreen.lib.panels.widgets.MainWindow.updatePage import UpdatePage
def _mock_setup(self):
for attr in (
@@ -312,7 +316,7 @@ def test_false_emits_call_load_panel_when_overlay_shown(self, page, qtbot):
page._overlay_shown = True
with qtbot.waitSignal(page.call_load_panel, timeout=200) as blocker:
page.handle_busy_changed(False)
- assert blocker.args == [False, "",False]
+ assert blocker.args == [False, "", False]
assert page._overlay_shown is False
def test_true_starts_elapsed_timer(self, page):
@@ -413,13 +417,13 @@ class TestHandleStepComplete:
def test_emits_call_load_panel_with_step_message(self, page, qtbot):
with qtbot.waitSignal(page.call_load_panel, timeout=200) as blocker:
page.handle_step_complete("klipper", 1, 4)
- assert blocker.args == [True, "klipper: fetching",False]
+ assert blocker.args == [True, "klipper: fetching", False]
page._progress_label.setText.assert_called_with("Step 1/4")
def test_unknown_steps_falls_back_to_working(self, page, qtbot):
with qtbot.waitSignal(page.call_load_panel, timeout=200) as blocker:
page.handle_step_complete("moonraker", 99, 4)
- assert blocker.args == [True, "moonraker: working",False]
+ assert blocker.args == [True, "moonraker: working", False]
page._progress_label.setText.assert_called_with("Step 99/4")
@@ -498,7 +502,9 @@ def test_bad_payload_keeps_statuses_and_toasts(self, page):
class TestConfirmPopupCleanup:
def test_second_confirm_deletes_previous_popup(self, page):
- with patch("BlocksScreen.lib.panels.widgets.updatePage.BasePopup") as popup_cls:
+ with patch(
+ "BlocksScreen.lib.panels.widgets.MainWindow.updatePage.BasePopup"
+ ) as popup_cls:
first = MagicMock()
second = MagicMock()
popup_cls.side_effect = [first, second]