We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5fda15 commit f82c581Copy full SHA for f82c581
src/main.py
@@ -13,6 +13,7 @@
13
QPushButton,
14
QMessageBox,
15
)
16
+from PySide2.QtCore import Signal
17
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
18
19
# Suppress font warnings
@@ -27,6 +28,8 @@ class FunctionPlotter(QMainWindow):
27
28
using PySide2 for the GUI and Matplotlib for plotting.
29
"""
30
31
+ error_message_signal = Signal(str)
32
+
33
def __init__(self):
34
super().__init__()
35
self.setWindowTitle("Function Plotter")
@@ -165,6 +168,7 @@ def show_error_message(self, message):
165
168
- message (str): The error message to display.
166
169
167
170
QMessageBox.critical(self, "Error", message)
171
+ self.error_message_signal.emit(message)
172
173
174
if __name__ == "__main__":
0 commit comments