From 242d5095af0d778fcd0fd0c892e9170d2a4d0df4 Mon Sep 17 00:00:00 2001 From: Miguel Date: Tue, 10 Jun 2025 23:48:10 +0200 Subject: [PATCH] =?UTF-8?q?Actualizaci=C3=B3n=20del=20historial=20de=20c?= =?UTF-8?q?=C3=A1lculos=20con=20nuevas=20expresiones=20y=20ajustes=20en=20?= =?UTF-8?q?la=20configuraci=C3=B3n=20de=20la=20interfaz.=20Se=20modifica?= =?UTF-8?q?=20la=20geometr=C3=ADa=20de=20la=20ventana=20y=20se=20a=C3=B1ad?= =?UTF-8?q?en=20nuevos=20formatos=20de=20texto=20en=20la=20calculadora.=20?= =?UTF-8?q?Se=20optimiza=20el=20sistema=20de=20autocompletado=20y=20se=20c?= =?UTF-8?q?orrige=20la=20inicializaci=C3=B3n=20del=20popup=20de=20autocomp?= =?UTF-8?q?letado.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hybrid_calc_history.txt | 7 ++++--- hybrid_calc_settings.json | 10 +++++----- main_calc_app_pyside6.py | 5 +++-- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/hybrid_calc_history.txt b/hybrid_calc_history.txt index 6c06043..f51deb8 100644 --- a/hybrid_calc_history.txt +++ b/hybrid_calc_history.txt @@ -1,8 +1,9 @@ -$$Brix = \frac{Brix_{syrup} \cdot \delta_{syrup} + (Brix_{water} \cdot \delta_{water} \cdot Rateo)}{\delta_{syrup} + \delta_{water} \cdot Rateo}$$ +61.6/2.54 +k=2.54 -m=((sqrt(t)/(2+8))/e**2+sqrt(k**w))/((sqrt(t)/(2+8))/e**2+sqrt(k**(w+2))) +1080/1440 -t=? +1920/(3/4) diff --git a/hybrid_calc_settings.json b/hybrid_calc_settings.json index ad4041a..7af5413 100644 --- a/hybrid_calc_settings.json +++ b/hybrid_calc_settings.json @@ -1,15 +1,15 @@ { "window_geometry": { - "x": 393, - "y": 234, - "width": 1000, + "x": 732, + "y": 205, + "width": 741, "height": 700 }, "debug_mode": false, "latex_panel_visible": true, "sash_pos_x": 450, "splitter_sizes": [ - 284, - 210 + 210, + 155 ] } \ No newline at end of file diff --git a/main_calc_app_pyside6.py b/main_calc_app_pyside6.py index b06e34a..12199dc 100644 --- a/main_calc_app_pyside6.py +++ b/main_calc_app_pyside6.py @@ -373,7 +373,7 @@ class AutocompletePopup(QWidget): item_selected = Signal(str) # Emite el texto seleccionado def __init__(self, parent=None): - super().__init__(parent, Qt.Tool | Qt.FramelessWindowHint | Qt.WindowStaysOnTopHint) + super().__init__(None, Qt.Tool | Qt.FramelessWindowHint | Qt.WindowStaysOnTopHint) self.setAttribute(Qt.WA_ShowWithoutActivating, True) self.setFocusPolicy(Qt.NoFocus) @@ -644,7 +644,8 @@ class HybridCalculatorPySide6(QMainWindow): 'custom_type': self._create_format("#4ec9b0"), 'plot': self._create_format("#569cd6", underline=True), 'type_indicator': self._create_format("#808080"), - 'clickable': self._create_format("#4fc3f7", underline=True) + 'clickable': self._create_format("#4fc3f7", underline=True), + 'helper': self._create_format("#ffd700", italic=True) } def _create_format(self, color: str, bold: bool = False, italic: bool = False, underline: bool = False) -> QTextCharFormat: